Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 102856

Automation - reset timer when valve status changed

$
0
0

Hi, trying to reset the timer countdown when valve status changed to off but it’s not working.

timer:
  vtime2:
    duration: "00:00:00"
  
  
automation test:
  - alias: Turn off the timer
    trigger:
      - platform: state
        entity_id: switch.valve_2
        to: 'off'
    action:
      - service: timer.cancel
        data:
          entity_id: timer.vtime2

Any help would be appreciated!

3 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 102856

Trending Articles



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