This is a simple app that is meant to solve the following situation: If you have an automation that turns lights off after x minutes of inactivity, and you are still in the room (just not moving around), you can immediately move around a little to turn the lights back on. Limited use case, but I created it for myself and why not share it.
I did do this in Rule Machine initially, but it required several rules to get it working and still couldn’t do things exactly how I wanted. It didn’t take much time to put this together and is a more elegant solution.
The App has a couple things to prevent false positives:
- It has to be an automation that triggers the light being turned off. If you turn it
off at the switch or manually through the app, then it won’t activate.
- There is a configurable timeout. This timeout starts once the light is turned off.
The default is 60 seconds, so if motion is activated more than 60 seconds after the
lights are turned off, then it won’t turn them back on.
The App is meant to be configured with light & motion sensor “pairs”. The app refers to the “pairs” as “rooms” as I figured that would be the most common use case, but it is really just an “area” of a home.