If I test the template {{ states(‘input_number.gulvarme_stuen’) | float }} it returns 26.0. But when I call this service with this automation I get this error;
Invalid data for call_service at pos 2: expected float for dictionary value @ data[‘temperature’]
But the template is returning a float, so I cannot see where it whent wrong.
I use pretty much as yourself (nearly got) and Tediore corrected.
# name: Heat Temperature Set
- alias: au_heat_temperature_set
trigger:
- platform: state
entity_id: input_number.in_heat_temp_control_val
action:
- service: climate.set_temperature
data_template:
entity_id: climate.house_heat
temperature: "{{ states('input_number.in_heat_temp_control_val') | float }}"
Though my input_number.in_heat_temp_control_val changes throughout the day according to conditions. (door open, unoccupied, night, day and evening) 24/365