45 lines
1.1 KiB
YAML
45 lines
1.1 KiB
YAML
|
|
# Climate and plug automations.
|
||
|
|
|
||
|
|
- id: hermes_ac_controls_matter_plugs
|
||
|
|
alias: AC controls Matter plugs
|
||
|
|
description: Turn the four Tapo Matter plugs on while the Ecobee is actively cooling, and off when cooling stops.
|
||
|
|
mode: restart
|
||
|
|
triggers:
|
||
|
|
- trigger: state
|
||
|
|
entity_id: climate.meat_heater
|
||
|
|
attribute: hvac_action
|
||
|
|
to: cooling
|
||
|
|
id: ac_on
|
||
|
|
- trigger: state
|
||
|
|
entity_id: climate.meat_heater
|
||
|
|
attribute: hvac_action
|
||
|
|
from: cooling
|
||
|
|
id: ac_off
|
||
|
|
conditions: []
|
||
|
|
actions:
|
||
|
|
- choose:
|
||
|
|
- conditions:
|
||
|
|
- condition: trigger
|
||
|
|
id: ac_on
|
||
|
|
sequence:
|
||
|
|
- action: switch.turn_on
|
||
|
|
continue_on_error: true
|
||
|
|
target:
|
||
|
|
entity_id:
|
||
|
|
- switch.smart_wi_fi_plug
|
||
|
|
- switch.smart_wi_fi_plug_2
|
||
|
|
- switch.smart_wi_fi_plug_3
|
||
|
|
- switch.smart_wi_fi_plug_4
|
||
|
|
- conditions:
|
||
|
|
- condition: trigger
|
||
|
|
id: ac_off
|
||
|
|
sequence:
|
||
|
|
- action: switch.turn_off
|
||
|
|
continue_on_error: true
|
||
|
|
target:
|
||
|
|
entity_id:
|
||
|
|
- switch.smart_wi_fi_plug
|
||
|
|
- switch.smart_wi_fi_plug_2
|
||
|
|
- switch.smart_wi_fi_plug_3
|
||
|
|
- switch.smart_wi_fi_plug_4
|