I have a simple automation that when my motion sensor detects occupancy, my light switch turns on, then 2 minutes after its state clears it turns the light off.
I would like to create some sort of override so that if you manually turn on the light it will stay on for at least an hour (maybe end of day). No matter is that is using the z-wave switch, the HA panels, or triggering it via Alexa.
Right now if you override the setting at a switch, the motion clear state still turns off the light and starts the motion automation over.
(So far I think I am looking at setting an input_boolean helper, then just having automations that toggle it, and having the motion automation look at that boolean state in an if/then conditional… Though I am curious if there is a cleaner way.)
Thank you!