deCONZ sensors precision rounded to 1 decimal


How come HA rounds the sensor values from deCONZ to 1 decimal?
When I use the deCONZ REST API the values have a 2 decimal (0.01) precision.

E.g. aqara temperature humidity sensor:


Edit: created an issue in the package repo: Sensor precision, number of decimals · Issue #127 · Kane610/deconz · GitHub

1 Like

It’s probably a conscious decision somewhere in the code to provide a consistent representation. Precision is not the same as accuracy — it’s very unlikely these sensors are accurate to that level of precision, so it’s pointless pretending that they are by displaying it.

I understand that precision is not accuracy. I just don’t think that necessarily means it is pointless to include the precision available.