Files
2026-07-09 16:26:31 -04:00

49 lines
1.0 KiB
YAML

alias: Reset Climate
id: automation_reset_climate
trigger:
- platform: state
entity_id: group.my_hvac_affecting_openings
to: "off"
for: "00:00:03"
condition:
- condition: state
entity_id: group.my_hvac_affecting_openings
state: "off"
- condition: state
entity_id: climate.thermostat
state: "off"
action:
- action: climate.turn_on
target:
entity_id: climate.thermostat
- choose:
- conditions:
- condition: state
entity_id: input_boolean.home_occupied
state: "on"
sequence:
- action: climate.set_preset_mode
target:
entity_id: climate.thermostat
data:
preset_mode: "home"
- conditions:
- condition: state
entity_id: input_boolean.home_occupied
state: "off"
sequence:
- action: climate.set_preset_mode
target:
entity_id: climate.thermostat
data:
preset_mode: "away"