You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 15, 2024. It is now read-only.
I want my lovelace thermostat to show 20.6 (not 21)
current_temperature & room_temperature are set in climate.py (line 188) to the same value
if _room_temperature is not None:
self._current_temperature = _room_temperature
...
self._attributes["room_temperature"] = _room_temperature
I have to change PRECISION_WHOLE to PRECISION_TENTHS in climate.py (line 26) from homeassistant.const import ATTR_TEMPERATURE, PRECISION_WHOLE, TEMP_CELSIUS
and climate.py (line 309)
@property
def precision(self):
"""Return the precision of the system."""
return PRECISION_WHOLE
When I do that, I can see the current_temperature in my thermostat with tenth precision:
(also resulting in nicer history graphs)
Is there a reason for using PRECISION_WHOLE and not PRECISION_TENTHS?
The climate.pyvicare_heating entity is showing:
I want my lovelace thermostat to show 20.6 (not 21)
current_temperature & room_temperature are set in climate.py (line 188) to the same value
I have to change
PRECISION_WHOLEtoPRECISION_TENTHSin climate.py (line 26)from homeassistant.const import ATTR_TEMPERATURE, PRECISION_WHOLE, TEMP_CELSIUSand climate.py (line 309)
When I do that, I can see the current_temperature in my thermostat with tenth precision:

(also resulting in nicer history graphs)
Is there a reason for using PRECISION_WHOLE and not PRECISION_TENTHS?