dolezsa / thermal_comfort

Thermal Comfort sensor for HA (absolute humidity, heat index, dew point, thermal perception)
Other
552 stars 106 forks source link

Thermal comfort entities display all decimal digits #287

Closed Motik68 closed 1 year ago

Motik68 commented 1 year ago

Hi,

Since 2.1.1 all my thermal comfort sensors display their all decimal digits whatever precision I configure for them:

image

image

image

Any idea why?

rautesamtr commented 1 year ago

https://developers.home-assistant.io/blog/2023/02/08/sensor_presentation_rounding/

Are you using a template function to display the value? Otherwise the frontend should handle the rounding. Developer States will allways show the full decimals.

jossiee commented 1 year ago

same issue here!

image

edit: never mind issue is because of the multiple entity row card this does not respect the precision

https://github.com/benct/lovelace-multiple-entity-row/issues/286

Motik68 commented 1 year ago

https://developers.home-assistant.io/blog/2023/02/08/sensor_presentation_rounding/

Are you using a template function to display the value? Otherwise the frontend should handle the rounding. Developer States will allways show the full decimals.

I didn't use a template, but your answer made me wonder if the unexpected behaviour could be due to the cards I used not handling yet the new rounding properties. I did a test with a simple entity card and all was fine with the correct number of digits 👍

So the thermal comfort add-on works as expected. I will close this issue, and open one for each of the front end add-ons in which I do not get the correct rounding.