Skip to content

Widget displays incorrect value for power sensors above 999W #4391

@tobiii90

Description

@tobiii90

The Home Assistant widget incorrectly displays power sensor values of 1000W or above. Only the first digit before the decimal separator is shown. For example, a value of 2448W is displayed as 2W in the widget. Values below 1000W are displayed correctly.
This feature is currently in beta (displaying entity states in widgets).
Steps to Reproduce
1. Add a power sensor entity (device_class: power, unit: W) to a widget
2. Ensure the sensor value is above 1000W
3. Observe the widget displaying only the first digit (e.g. 2448W → 2W)
Expected Behavior
The widget should display the full value, e.g. 2448 W
Actual Behavior
The widget displays only the first digit before the decimal point, e.g. 2W instead of 2448W. Values below 1000W are displayed correctly.
Environment
∙ Device: iPhone 16 Pro
∙ iOS Version: 26.3
∙ Companion App Version: 2026.2.1 (2026.1766)
∙ Home Assistant Core: 2026.2.3
∙ Supervisor: 2026.02.2
∙ Operating System: 17.1
∙ Frontend: 20260128.6
∙ Installation Method: Home Assistant OS
Entity Configuration
∙ Integration: KNX
∙ DPT: 14.056 (Power, 4 Byte)
∙ device_class: power
∙ state_class: measurement
∙ unit_of_measurement: W
Additional Notes
A template helper sensor with | int conversion (removing decimal places) displayed the correct value briefly after creation, but reverted to showing 2W shortly after. This suggests a possible widget caching issue combined with the value truncation bug.

Image
Image

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions