Update ha-smart-thermostat-control.yaml

This commit is contained in:
Andreas Gammelgaard Damsbo 2025-12-05 12:06:11 +01:00
parent 5337dab977
commit cd480a5573

View file

@ -221,6 +221,8 @@ variables:
day_temp_input: !input day_temp day_temp_input: !input day_temp
night_temp_input: !input night_temp night_temp_input: !input night_temp
away_temp_input: !input away_temp away_temp_input: !input away_temp
schedule_helper_id: !input schedule_helper
away_calendar_id: !input away_calendar
condition: [] condition: []
@ -236,9 +238,9 @@ action:
# Only if the new temp is different from current schedule targets # Only if the new temp is different from current schedule targets
- condition: template - condition: template
value_template: > value_template: >
{% if is_state(input_away_calendar, 'on') %} {% if is_state(away_calendar_id, 'on') %}
{{ (new_temperature - away_temp_input) | abs > 0.1 }} {{ (new_temperature - away_temp_input) | abs > 0.1 }}
{% elif is_state(input_schedule_helper, 'on') %} {% elif is_state(schedule_helper_id, 'on') %}
{{ (new_temperature - day_temp_input) | abs > 0.1 }} {{ (new_temperature - day_temp_input) | abs > 0.1 }}
{% else %} {% else %}
{{ (new_temperature - night_temp_input) | abs > 0.1 }} {{ (new_temperature - night_temp_input) | abs > 0.1 }}