Add ac toggle script
This commit is contained in:
parent
45dd000400
commit
7b2dbbc6bb
@ -35,3 +35,20 @@ ac_on:
|
|||||||
- 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
|
||||||
|
Loading…
Reference in New Issue
Block a user