Cleaning up washer notification so it doesnt exec if its already running

This commit is contained in:
Jeffrey Stone 2019-11-11 21:45:41 -05:00
parent f99708d81d
commit 35bb82b4f2
1 changed files with 9 additions and 0 deletions

View File

@ -4,6 +4,15 @@
- above: 5 - above: 5
entity_id: sensor.washer_power entity_id: sensor.washer_power
platform: numeric_state platform: numeric_state
condition:
condition: or
conditions:
- condition: state
entity_id: sensor.washer_status
state: idle
- condition: state
entity_id: sensor.washer_status
state: complete
action: action:
- service: script.washer_running - service: script.washer_running
initial_state: true initial_state: true