I've been playing with this a bit but having some troubles implementing in RM4.
I have a motion sensor in my garage, the interior garage lights are connected to a Enbrighten Smart Dimmer configured to act as an on/off switch. I'm using the dimmer since it's no-neutral.
In any case, I want to implement the following behaviors:
If the motion sensor is triggered, turn on the interior lights.
Turn off the lights after 5 minutes.
However, if I plan to be in the garage longer than 5 minutes I would like to be able to simply press the ON button on the switch and they will stay on until I turn them off.
I am able to turn the light on when motion is detected, just not sure how to add the logic so that it only stays on for 5 minutes unless the on button is pressed, in which it stays on. I suspect a cancelable timer, but not sure quite how to do that, and I am assuming that the light being on as a result of motion is a digital on vs. the button press which would be something different.
Thanks in advance for any help.