1
0

Add ac toggle script

This commit is contained in:
Przemek Grondek 2022-09-05 23:38:34 +02:00
parent 45dd000400
commit 7b2dbbc6bb

View File

@ -34,4 +34,21 @@ ac_on:
- delay: '0:00:30' - delay: '0:00:30'
- service: climate.turn_on - service: climate.turn_on
target: target:
entity_id: climate.ac entity_id: climate.ac
ac_toggle:
alias: AC toggle
sequence:
- choose:
- conditions:
- condition: state
entity_id: switch.ac_power_outlet
state: 'on'
sequence:
- service: script.ac_off
- conditions:
- condition: state
entity_id: switch.ac_power_outlet
state: 'off'
sequence:
- service: script.ac_on