home-assistant / frontend

:lollipop: Frontend for Home Assistant
https://demo.home-assistant.io
Other
3.81k stars 2.61k forks source link

Energy Dashboard not showing the correct data after restarting HA #20886

Open marc965 opened 1 month ago

marc965 commented 1 month ago

Checklist

Describe the issue you are experiencing

After restarting Homeassistant, the statistics in the energy dashboard are sometimes reset. As a result, the values displayed are not correct. For me, this is always triggered by restarting Homeassistant. Then the statistics start counting again, hence these high values. I have known this behavior since version 2024...

Describe the behavior you expected

HA has to restart counting at the same position when shutting down, it seems HA is starting back at zero.

Steps to reproduce the issue

  1. restart HA
  2. look at the energy dashboard

What version of Home Assistant Core has the issue?

2024.x.x

What was the last working version of Home Assistant Core?

dont know whwn it began, but i tried many things, nothing works

In which browser are you experiencing the issue with?

Chrome, Firefox, Safari

Which operating system are you using to run this browser?

windows, iOS

State of relevant entities

No response

Problem-relevant frontend configuration

No response

Javascript errors shown in your browser console/inspector

No response

Additional information

Some picture show that: This displays only one day: image image image

Without Restarting HA all statistics are ok: image image image

karwosts commented 1 month ago

FYI this has nothing to do with the energy dashboard, it's just bad data that got recorded in your entity statistics (look at a statistics graph card to confirm, you should see similar erroneous value). That would need a core issue to address that.