You could probably create a template sensor (with device_class: temperature) which reflects the number as temperature, however tied both ways is tricky, you’ll end up with an endless loop, unless you’re careful (maybe using last_changed as safeguard?).
Change Temp Sensor - push change to number.variheat_water_temp_set_point
If the temp is changed on the unit then the next time i change it form HA it will in effect correct itself.
I dont follow what the thermostat must have a temp sensor and cant just manipulate number.variheat_water_temp_set_point directly - but i did not write the code for HA!
I put this in the config file
template:
sensor:
name: "Pool Set Temperature "
unit_of_measurement: “°C”
state: ‘{{ number.variheat_water_temp_set_point | round(1, default=28) }}’
Generic Thermostat minimally requires a source of temperature and a switch to control a source of heat (or cooling). The source of temperature is typically a sensor entity that reports the ambient room temperature. It’s not an entity whose value you can set in Home Assistant’s UI (or programmatically).
I suggest you change the Template Sensor’s configuration to this:
template:
- sensor:
- name: Pool Set Temperature
unit_of_measurement: '°C'
device_class: temperature
state: "{{ states('number.variheat_water_temp_set_point') | round(1, default=28) }}"
It seems like you already have an actual physical thermostat, which you want represented in HA. If you want HA to send the setpoint to the real thermostat, then generic thermostat is not what you need. That is used when you have a switch controlling a heating device and a current temperature.
If you want HA to relay the setpoint to the actual thermostat, then think you need something like:
With that you can relay the setpoint to the real thermostat.
The reality is i dont want a thermostat at all ! It is just that the graphic representation of the thermostat and how it works is what i want if that makes sense.