I'm currently using the Room app to turn off multiple lights when no motions is detected. However there are multiple instances where people are still in the room - they just didn't move enough to trigger the motion sensor, which creates a false positive motion inactive event and is quite annoying.
Is it possible for that person to wave their arms to turn the lights back on within a short timeframe (e.g. 10 secs)? I don't want the lights to turn on by motion in general. So it should only turn on if it recently turned off the lights due to motion inactive.
I guess I need to write custom rules, since the built-in app doesn't support it? The general idea I think would look like:
- when no motion is detected, start a timeout wait for motions, when timed out:
- save the status for each of the lights/switch in scope.
- start another timeout wait (e.g. 10 sec) to detect any motion, when motion is detected within that time period, restore the switch to the saved status, otherwise, they remain turned off for good.
Not sure if there are other corner cases that I need to handle - e.g. handle manual turn on/offs. Would love to get pointers if there are existing rules/apps supporting this already.
Thanks!