From ff2d1c1a4fa5d4076636695e2a22fd2ae56f3ac1 Mon Sep 17 00:00:00 2001 From: andreas Date: Fri, 5 Dec 2025 10:46:29 +0100 Subject: [PATCH] Update ha-smart-thermostat-control.yaml react to all state changes --- ha-smart-thermostat-control.yaml | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/ha-smart-thermostat-control.yaml b/ha-smart-thermostat-control.yaml index fa3953a..1a9f3df 100644 --- a/ha-smart-thermostat-control.yaml +++ b/ha-smart-thermostat-control.yaml @@ -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: trigger - id: manual_adjustment + - 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 }}"