Energy dashboard: price unit label should dynamically adapt to the sensor's unit of measurement (e.g. EUR/L instead of EUR/m³) #52071
Replies: 1 comment
-
|
I believe the label is correct because m3 really is expected, regardless of the unit of the source sensor. To change that would be a core issue with a real behavioral change, not simply a frontend issue with a label. Note electric is the same here, as it is labelled Simply changing the behavior would probably be a breaking change, but maybe one could add a unit selector there to go with the number textbox, so user can enter the price in a unit of their choice. If you want a different behavior here, probably best to request at https://github.com/orgs/home-assistant/discussions |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
When configuring water consumption in the Energy dashboard, the price unit label always shows EUR/m³, even when the selected sensor measures in liters (L). The label does not adapt dynamically to the unit of measurement of the selected sensor.
Steps to reproduce
Expected behavior
The price unit label should dynamically reflect the unit of measurement of the selected sensor. For example:
Why this matters
This creates a confusing user experience: users who switch to a liters-based sensor have to manually divide their price per m³ by 1000, and the label still shows EUR/m³, making it unclear whether the entered value is per m³ or per L. This can easily lead to incorrect cost calculations.
Related
Beta Was this translation helpful? Give feedback.
All reactions