Update ha-smart-thermostat-control.yaml

react to all state changes
This commit is contained in:
Andreas Gammelgaard Damsbo 2025-12-05 10:46:29 +01:00
parent 2f0ad5d87b
commit ff2d1c1a4f

View file

@ -50,7 +50,7 @@ blueprint:
min: 10.0
max: 25.0
unit_of_measurement: °C or °F
mode: box
mode: slider
wintermode_delay:
name: Winter Mode Delay
description: 'Time the outside temperature needs to stay above the winter mode temperature to turn the heating off.'
@ -79,7 +79,7 @@ blueprint:
min: 10.0
max: 30.0
unit_of_measurement: °C or °F
mode: box
mode: slider
night_temp:
name: Night Time Temperature Target
default: 18
@ -89,7 +89,7 @@ blueprint:
min: 10.0
max: 30.0
unit_of_measurement: °C or °F
mode: box
mode: slider
away_temp:
name: Away Temperature Target
description: Temperature when away/on holiday.
@ -100,7 +100,7 @@ blueprint:
min: 10.0
max: 30.0
unit_of_measurement: °C or °F
mode: box
mode: slider
away_calendar:
name: Holiday or Away Calendar
description: Calendar entity that indicates away/holiday periods.
@ -159,6 +159,10 @@ trigger:
id: manual_adjustment
for:
seconds: !input sync_delay
- platform: state
entity_id: !input thermostat
to:
id: manual_state_change
- platform: calendar
event: end
entity_id: !input away_calendar
@ -187,8 +191,12 @@ action:
- choose:
# Priority 0: Manual Adjustment - Sync all thermostats
- conditions:
- condition: or
conditions:
- condition: trigger
id: manual_adjustment
- condition: trigger
id: manual_state_change
# Only sync if the temperature actually changed
- condition: template
value_template: "{{ (new_temperature - old_temperature) | abs > 0.1 }}"