-
Notifications
You must be signed in to change notification settings - Fork 34
climate.pyvicare_heating current_temperature rounded #87
Comments
Did you try to set a temperature? I assume it will also change temp in 0.1 steps now which the api does not support. |
The thermostat target temperature always changes in steps of 0.5°C, both with the PRECISION_WHOLE and PRECISION_TENTHS configuration. I also tried using Service climate.set_temperature with setting 21,9°C, no errors are generated and target temperature in vicare changes to 21°C (My vicare app supports tenth precision for current_temperature and whole precision for target temperatures) |
This is thightly connected to home-assistant/core#64282 |
Please see #88 |
I've just noticed that the same applies to the water_heater entity. The API returns current temperature value with .1 precision but the entity config is defined as PRECISION_WHOLE. Could we also separate the target temperature precision from current temperature for water_heater? |
Btw, I've just tested and adjusting water_heater.py in exactly the same way works :) |
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_WHOLE
toPRECISION_TENTHS
in climate.py (line 26)from homeassistant.const import ATTR_TEMPERATURE, PRECISION_WHOLE, TEMP_CELSIUS
and 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?
The text was updated successfully, but these errors were encountered: