screekworkshop / screek-human-sensor

121 stars 28 forks source link

Feature idea/request: Events for entering/exiting zones with direction #19

Open evelant opened 3 months ago

evelant commented 3 months ago

It would be really cool to be able to do automation based on the direction a target is moving when it enters or exits a zone.

For example:

1. Target moving into zone 1 toward sensor, turn light on (entering from a doorway)
2. Target moving out of zone 1 away from sensor, turn light off (exiting the room through a doorway)
3. Target moving out of zone **2** away from sensor, do not turn light off immediately, set a timer for turn off if not detected again (exiting the room to a closet or bathroom, likely to reenter room soon)
screekworkshop commented 3 months ago

This looks like a great idea to enable relevant interactions by determining that a target leaving will enter the zone, if we have time we will try to see if we can do such an implementation and are welcome to try to build it. At the moment we are experimenting with some low power sensors and are rather busy.