If you replaced the existing switch with a simple motion/occupancy sensor, would it be able to see a person entering the room from either side? Is there a reason you are looking for a "smart" solution? I have a lot of smart switches, bulbs, motion sensors, etc. but for certain use cases, I just have simple occupancy switches or dimmers (bathrooms, closets, pantries, garages)