diff --git a/ha-smart-thermostat-control.yaml b/ha-smart-thermostat-control.yaml index 26d17b2..fde938b 100644 --- a/ha-smart-thermostat-control.yaml +++ b/ha-smart-thermostat-control.yaml @@ -171,7 +171,8 @@ variables: away_calendar_id: !input away_calendar # --- REVISED VARIABLE: Get state value from helper --- - day_temp_input: "{{ states(!input day_temp_helper) | float(21) }}" + day_temp_id: !input day_temp_helper + day_temp_input: "{{ states(day_temp_id) | float(1) }}" # --- END REVISED VARIABLE --- night_temp_input: !input night_temp @@ -255,7 +256,7 @@ action: entity_id: !input thermostat data: # --- REVISED ACTION: Use the variable which holds the helper state --- - temperature: "{{ day_temp_input }}" + temperature: !input day_temp_helper # --- END REVISED ACTION --- hvac_mode: heat - service: logbook.log