archanglmr / homebridge-occupancy-delay

Occupancy sensor linked to one or more switches with a built-in delay not-unoccupied delay for Homebridge
GNU General Public License v3.0
54 stars 12 forks source link

How do you deal with cases where you trigger the motion upon leaving? #2

Open gigecogary opened 4 years ago

gigecogary commented 4 years ago

I think you coded this plugin with the assumption that you can turn off the lights on the way out of an area without trigger motion.

And that's indeed the case if you have some sort of motion sensor overlooking the entire room.

However a lot of cases, the motion sensor is monitoring the entry way for entry and exit. Some sensors even are mounted on doors specifically. In those cases, you can't actually turn off the lights and exit the room because it will instantly retrigger it.

Do you have a solution for this scenario? Thanks