37 lines
909 B
YAML
37 lines
909 B
YAML
ac_off:
|
|
alias: AC turn off
|
|
sequence:
|
|
- service: climate.turn_off
|
|
target:
|
|
entity_id: climate.ac
|
|
- delay: '0:05:00'
|
|
- choose:
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: climate.ac
|
|
state: 'off'
|
|
sequence:
|
|
- service: switch.turn_off
|
|
entity_id: switch.ac_power_outlet
|
|
|
|
ac_on:
|
|
alias: AC turn on
|
|
sequence:
|
|
- choose:
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: switch.ac_power_outlet
|
|
state: 'off'
|
|
sequence:
|
|
- service: switch.turn_on
|
|
entity_id: switch.ac_power_outlet
|
|
- repeat:
|
|
until:
|
|
- condition: state
|
|
entity_id: climate.ac
|
|
state: unavailable
|
|
sequence:
|
|
- delay: '0:00:30'
|
|
- service: climate.turn_on
|
|
target:
|
|
entity_id: climate.ac |