Add ac toggle script
This commit is contained in:
parent
45dd000400
commit
7b2dbbc6bb
@ -34,4 +34,21 @@ ac_on:
|
||||
- delay: '0:00:30'
|
||||
- service: climate.turn_on
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user