I have five sensors (outdoor) that control a light. Any of the sensors will turn on the lights for a fixed duration, say 10 minutes, then turn it off. If another sensor is triggered during the ten minutes, the countdown should start again at 10 minutes. Any easy solution?
A simple script action of 1) turn on 2) wait 10 mins 3) turn off will not work, because the first instance will turn the light off after ten minutes. I don’t think the second sensor’s action instance is allowed to cancel the the first script, because it will also cancel itself?
What kind of sensors do you have and how do they behave?
Probably you can group them and use this group as trigger for the automation but that depends on the behavior of the sensors.
Door sensors Aeotec. I didn’t think about grouping them, but it’s an idea I’ll flesh out after experimenting.
I was thinking about firing off a custom event which fires a script that would wait the ten minutes and then turn off. The second sensor trigger could then cancel that custom-event-script, then start its own custom event. (New to HA, yet to try custom event, just read about them)