Quantcast
Channel: ESPHome - Home Assistant Community
Viewing all articles
Browse latest Browse all 1486

On_turn_on and delayed off

$
0
0

@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

Read full topic


Viewing all articles
Browse latest Browse all 1486

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>