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)