PimDoos / onesmartcontrolha

Home Assisttant integration for One Smart Control server
Apache License 2.0
4 stars 1 forks source link

Can digits behind Rpm be rounded to 0? #42

Closed dutch-erik closed 1 year ago

dutch-erik commented 1 year ago

Hi Pim,

COMFOAIR Inlet Ventilator Rpm -> 1.238,44121532365 rpm COMFOAIR Outlet Ventilator Rpm -> 1.033,62734288864 rpm

Many digits behind the comma, can this be rounded to 0?

PimDoos commented 1 year ago

Home Assistant 2023.2 introduces a feature to change precision of an entity. This should make this significantly (pun not intended) easier to implement, so I'll have a look at it when I have the time

PimDoos commented 1 year ago

Fixed in HA 2023.3 and OneSmartControlHA 0.3.4:

You can change the desired precision in the entity settings menu. image

PimDoos commented 1 year ago

See also https://www.home-assistant.io/blog/2023/03/01/release-20233/#sensor-display-precision