2026-06-28 14:27:20 -04:00
# Climate and plug automations.
2026-08-25 20:01:16 -04:00
- id : ac_controls_matter_plugs
2026-06-28 14:27:20 -04:00
alias : AC controls Matter plugs
2026-10-02 08:57:53 -04:00
description : Reconcile each plug with current cooling activity after HVAC changes, startup, reload and plug recovery. Keep existing plug states if climate status is unknown.
2026-06-28 14:27:20 -04:00
mode : restart
triggers :
- trigger : state
entity_id : climate.meat_heater
attribute : hvac_action
2026-10-02 08:57:53 -04:00
to : null
2026-06-28 14:27:20 -04:00
- trigger : state
entity_id : climate.meat_heater
2026-10-02 08:57:53 -04:00
to : null
- trigger : state
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
to : null
- trigger : homeassistant
event : start
- trigger : event
event_type : automation_reloaded
2026-06-28 14:27:20 -04:00
conditions : []
actions :
2026-10-02 08:57:53 -04:00
- condition : template
value_template : >-
{{ has_value('climate.meat_heater')
and (is_state('climate.meat_heater', 'off')
or state_attr('climate.meat_heater', 'hvac_action')
not in [none, 'unknown', 'unavailable', '']) }}
- variables :
desired_state : "{{ 'on' if is_state_attr('climate.meat_heater', 'hvac_action', 'cooling') and not is_state('climate.meat_heater', 'off') else 'off' }}"
- repeat :
for_each :
- switch.smart_wi_fi_plug
- switch.smart_wi_fi_plug_2
- switch.smart_wi_fi_plug_3
- switch.smart_wi_fi_plug_4
2026-06-28 14:27:20 -04:00
sequence :
2026-10-02 08:57:53 -04:00
- if :
- condition : template
value_template : "{{ has_value(repeat.item) and not is_state(repeat.item, desired_state) }}"
then :
- action : "{{ 'switch.turn_on' if desired_state == 'on' else 'switch.turn_off' }}"
continue_on_error : true
target :
entity_id : "{{ repeat.item }}"
2026-07-14 12:39:36 -04:00
- id : dehumidifier_tank_full_shutoff
alias : Dehumidifier Tank Full - Shut Off Parents Window Fan
2026-10-02 08:57:53 -04:00
description : Keep the outlet off while wet and report whether shutdown was confirmed.
use_blueprint :
path : local/tank_full_interlock.yaml
input :
moisture_sensor : binary_sensor.water_leak_sensor_moisture
outlet : switch.parents_window_fan
2026-07-14 12:39:36 -04:00
title : Dehumidifier tank is full
2026-10-02 08:57:53 -04:00
equipment_name : Dehumidifier
2026-08-25 20:02:05 -04:00
2026-09-07 16:53:24 -04:00
- id : ac_tank_full_shutoff
2026-10-05 16:11:37 -04:00
alias : AC Tank Full
description : Alert when the AC tank sensor is wet. This does not switch an outlet.
mode : single
triggers :
- trigger : state
entity_id : binary_sensor.ac_tank_sensor_moisture
to : "on"
conditions : []
actions :
- action : script.notify_events_alerts
data :
2026-09-07 16:53:24 -04:00
title : AC tank is full
2026-10-05 16:11:37 -04:00
message : AC tank sensor detected water.
2026-09-07 16:53:24 -04:00
2026-08-25 20:02:05 -04:00
- id : dehumidifier_tank_sensor_low_battery
alias : Dehumidifier Tank Sensor Low Battery
description : Alert when the dehumidifier tank level sensor battery is at 10% or lower.
mode : single
triggers :
- trigger : numeric_state
entity_id : sensor.water_leak_sensor_battery
below : 10.1
conditions : []
actions :
2026-10-02 08:57:53 -04:00
- action : script.notify_events_alerts
2026-08-25 20:02:05 -04:00
data :
title : Dehumidifier tank sensor battery low
message : Dehumidifier tank level sensor battery is at {{ states('sensor.water_leak_sensor_battery') }}%. Replace soon.
2026-09-07 16:53:24 -04:00
- id : ac_tank_sensor_low_battery
alias : AC Tank Sensor Low Battery
description : Alert when the AC tank sensor battery is at 10% or lower.
mode : single
triggers :
- trigger : numeric_state
entity_id : sensor.ac_tank_sensor_battery
below : 10.1
conditions : []
actions :
2026-10-02 08:57:53 -04:00
- action : script.notify_events_alerts
2026-09-07 16:53:24 -04:00
data :
title : AC tank sensor battery low
message : AC Tank Sensor battery is at {{ states('sensor.ac_tank_sensor_battery') }}%. Replace soon.