I am trying to perform the set target temperature action with the temperature value supplied by another entity or variable. This does not seem to be an option. The temperature entry seems only to accept a direct floating numeric value.
I could swear that I had this working before I managed to blow up my entire HA instance (long story).
action: water_heater.set_temperature
target:
entity_id: water_heater.demo
data:
temperature: "{{ states('input_number.example') | float }}"
That is exactly what I did but there is an error message flashing up wanting a floating input.
I will double check my code but that looks like my code.
Thanks, that works. I’m not sure how my code did not work. Perhaps I forgot the double quotes.
Interesting that the template shows up in the gui target data field when edited in yaml but in the gui mode it won’t accept anything but numeric entry. When doing this on my phone it even shifts the keyboard to numeric only.