@mrrodge wrote:
Probably a silly question.
If I have an automation in my YAML that turns on a switch, then an automation on the switch so that on_turn_on it delays for 20 minutes and then turns off, how does it handle extra turn_ons?
For example I have a PIR to turn on a relay, then the relay starts its 20 minute delay before turning back off. If the PIR triggers again after ten minutes will ESPHome register a second on_turn_on event and start the 20 minutes again resulting in the relay being on for 30 minutes, or will the turn_on be ignored as the switch is already on?
Thanks!
Posts: 1
Participants: 1