home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.46k stars 29.9k forks source link

Energy dashboard reports kWh from solar panels instead of Wh since 2022.10 #79706

Closed lvlie closed 1 year ago

lvlie commented 1 year ago

The problem

Since upgrading to 2022.10 my energy dashboard is quite broken, as HA thinks I produce 1000x more solar energy: image

Because its not going into the grid, it thinks my home consumes all this energy. Unfortunately the same issue has spread to all my old data, so this year I produced 4.500.000 kWh of Solar power instead of 4.500 kWh.

Solaredge lifetime energy still seems to report in Wh: image

Does that mean the energy dashboard just reports it wrong now?

What version of Home Assistant Core has the issue?

2022.10.0

What was the last working version of Home Assistant Core?

2022.9

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Energy

Link to integration documentation on our website

https://www.home-assistant.io/dashboards/energy/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

lwsrbrts commented 1 year ago

I am seeing the same issue with the Energy Dashboard on 2022.10.0 but it was working just fine on 2022.9.7.

The integration I'm using is hassio-ecoflow installable from HACS which reports its values in Wh, not kWh.

I've reverted for now so I don't have any screenshots to share unfortunately.

lvlie commented 1 year ago

Then the issue seems to be in the dashboard itself only, will adjust title of the issue

lvlie commented 1 year ago

Strange, the issue is gone now without any update, restart, or whatever. Did it fix itself for @lwsrbrts as well?

ChristophCaina commented 1 year ago

same happens for me. Here's a screenshot from my energy dashboard:

grafik The main issue in my case is not the solaredge integration, nor the solaredge modbus integration - but my meross plugs. All provided values will be multiplied by 1000

grafik

And here's an example from one of the plug sensors. grafik

It is using Wh - with the current value of nearly 250 Wh In my Dashboard, this is shown correctly as 0.25 kWh - since I have a template sensor which will calculate the Wh to kWh grafik

the Energy Dashboard is using the Wh Sensor value - but calculates the kWh wrongly

lwsrbrts commented 1 year ago

Strange, the issue is gone now without any update, restart, or whatever. Did it fix itself for @lwsrbrts as well?

I've just installed 2022.10.0 again and decided to kill my browser after it was installed successfully. I want to give it another hour before I say for sure but the graphs do look better. I wonder if it could have been a caching issue?

I'll come back if the bar charts go wobbly again.

lwsrbrts commented 1 year ago

I'm going to say it's a display/rendering/caching issue. I just opened the HA app on my Pixel 6 Pro after the update and saw this: image

After clicking Reload, the graphs are rendering fine again.

image

ChristophCaina commented 1 year ago

agree. after you wrote your result, I cleared my browser-cache and reloaded HA. Now the energy dashboard does show all values as expected.

grafik grafik

lvlie commented 1 year ago

Alright, since this seems to be a caching issue in the frontend only I'll close the issue. At least if other are affected they should be able to find this issue