I’m trying to automate my hallway lights and what seems like a straight forward thing to do turns increasingly complex the more I think about it. I was wondering if some of you have some ideas/input to point me in the right direction:
I have several triggers to turn the lights on and off:
- Aeotec wallmote smart switch
- Motion sensor
- Pressure pad under the stairs
Currently the Aeotec wallmote smart switch simply turns the light on and off. However what I would like to achieve is the following:
The light comes on automatically when either
- The pressure pad gets triggered
- The motion sensor gets triggered
and it stays on for 5 min. Any fresh motion trigger resets the 5 min timer.
I’m not sure how to deal with the timer, re-setting it with each new motion trigger and pack this in a HA automation - any ideas?