Add option to configure number of decimals per sensor e.g. in ZHA

The problem

As of Home Assistant 2025.5.x, sensor values (especially from ZHA) are shown with 2 decimal places by default, which adds clutter to the UI for temperature, humidity, etc.

Currently, there is no way to globally or per-sensor define a default decimal rounding setting β€” apart from using template helpers or custom cards.

Proposed solution

Introduce a configuration option in Home Assistant or ZHA to:

  • Define the number of decimals for a sensor (e.g. 1 for temperature)
  • Optionally support global default per integration (like number_of_decimals per platform)
  • Apply this in the UI for cleaner default display without requiring template sensors

Alternatives considered

  • Manually creating template helpers for each sensor (scales poorly)
  • Using custom cards like button-card or mushroom (not ideal for new users)

I can do it by going into devise settings and then display precision. Not sure if its possible with ZHA as I don’t use it but for everything else its available.

1 Like

Thanks Arh,
Indeed it seems possible to do set this in sensor properties of the device in ZHA.
This is an OK workaround.