You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have updated to the latest available Home Assistant version.
I have cleared the cache of my browser.
I have tried a different browser to see if it is related to my browser.
The problem
Graphs do not always show the correct units. This seems to be caused when the units are overridden in some way. In the first screenshot below, on the left you can see the units selected by the graph and on the right you can see the final units in Home Assistant. My temperature sensors come into HA as Celsius, and then my locale settings convert them to Fahrenheit. For the pressure sensor, I have set a customization to change it from hPa to mbar, which the graph also ignores.
Cards
This issue appears to apply to the unit shown in the top left of the graph and the logic to combine/split graphs but not the actual value of the data/unit ticks shown. The entities card has no issue with selecting the correct units.
History pane
It looks like the locale issue and manual customization issue takes place in a different part in the code. The locales are taken into account in the main History pane but the customizations are not.
Expected behavior
Graphs should show the configured, expected units.
Steps to reproduce
Add your devices/sensors to Home Assistant
Override the units
Environment
Home Assistant release with the issue: 0.107.7
Last working Home Assistant release (if known): Unknown
Browser and browser version: Firefox Nightly 76.0a1(2020-03-25) (64-bit)
On further testing, it appears that wiping the Home Assistant database fixes the issue. So, is it possible that the graphs are receiving the units from the database (which may have old, incorrect units are simply the incoming units) instead of the sensor itself?
The text was updated successfully, but these errors were encountered:
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue now has been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
Checklist
The problem
Graphs do not always show the correct units. This seems to be caused when the units are overridden in some way. In the first screenshot below, on the left you can see the units selected by the graph and on the right you can see the final units in Home Assistant. My temperature sensors come into HA as Celsius, and then my locale settings convert them to Fahrenheit. For the pressure sensor, I have set a customization to change it from hPa to mbar, which the graph also ignores.
Cards
This issue appears to apply to the unit shown in the top left of the graph and the logic to combine/split graphs but not the actual value of the data/unit ticks shown. The entities card has no issue with selecting the correct units.
![units issue](https://user-images.githubusercontent.com/4472083/77862800-cd124000-71eb-11ea-8131-1006a12506fb.png)
History pane
It looks like the locale issue and manual customization issue takes place in a different part in the code. The locales are taken into account in the main History pane but the customizations are not.
![history units issue](https://user-images.githubusercontent.com/4472083/77862812-ed41ff00-71eb-11ea-914e-c143dc525ce3.png)
Expected behavior
Graphs should show the configured, expected units.
Steps to reproduce
Environment
Problem-relevant configuration
customize.yaml
Additionally, setting preferred units in Home Assistant that do not match the incoming sensor units.
Javascript errors shown in your browser console/inspector
None
Additional information
Previous stale issue: #2394
On further testing, it appears that wiping the Home Assistant database fixes the issue. So, is it possible that the graphs are receiving the units from the database (which may have old, incorrect units are simply the incoming units) instead of the sensor itself?
The text was updated successfully, but these errors were encountered: