Getting Climate entity to show decimal points for temperature

I added a CT101 thermostat to my home. It’s a Z-Wave thermostat. (It’s pretty crappy just like most Radio Thermostat products and requires polling for everything, but that’s a topic for another day.)

I see in the OZW log that it reports temperatures with 0.5 degree Fahrenheit precision (and shows them as such on the actual screen too). But the climate entity it creates in Home Assistant rounds this up or down to the closest integer, and checking the attributes for the entity shows that it shows a rounded integer for current temperature.

Where can I modify the logic that determines how HA parses the OZW results? I don’t know if it’s OpenZwave code or HA itself’s code, or even just an XML file somewhere.

You can’t easily. You can either enter an enhancement request against the current solution or you can write your own custom control.

I’m running into the same issue. Have you found any solution? Thanks.

Mine shows one decimal place as required : -


Ooops wrong image give me a tick

Yep, that’s it

The issue is with the conversion from F to C. Ideally, I would have like the conversion to round up to the closest 0.5 C. There should be a way to do this behind the scene…

For example, I set it to 16C (at 0.5 increments) and it rounds up and shows 15.8C instead. The CT101 thermostat itself shows the C values in 0.5 increments.

Yep, template it
Eg

{% set x = 0.8725 + 0.5 %} 
{% set y = ((2 * x) | int | float) / 2) 
{{ y }} 

There’s probably an easier way, check out jinja2 reference

Yes I would do that but I don’t have direct access to the value coming from the thermostat; it’s built in the climate component.

Yes you do it will be a sensor from the same device look at your unused entities or better still entities of this node under z wave control panel

I never use thermostats as anything more than just the sensor bit

thanks @Mutt. I have the temperature sensor coming from the thermostat, which I can template to show increments of 0.5. With that, I can create a generic thermostat like this: https://www.home-assistant.io/integrations/generic_thermostat/. Is that what you meant? If so, which switch do I use for the heater? The Climate component does not return a switch that I can use.

Thanks!

Eh ?
This is ‘one’ of my thermostats


From it I use the (1st) battery sensor and the (4th) temperature sensor
I feed these into the ‘generic_thrermostat’ so I can adjust the temperture through the day, if a door or window opens or if we are greater than 1200m from home. The ‘switch’ I use is wired into the boiler

If you are using your ‘thermostat’ as a ‘thermostat’ then you can’t adjust the sensor value (it has to work on the correct value) but you can create another sensor from it for display purposes.
That’s the best you can do

Ah, so you have a separate switch to control the boiler? I am using the thermostat as the “switch” to control my heater and the Climate component does not give me a switch to control (which is expected). So, I can’t use a Generic thermostat like you do.

Thanks!

Sorry, still not with you, I thought this thread wanted a means of ‘displaying’ temperature values in a certain way.? Which I thought I’d explianed

However, You could easily install say a sonoff r3 (cheap and overrideable (not certain that’s a real word)) by your boiler to the same effect