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.67k stars 29.95k forks source link

Energy Dashboard: wrong summation of energy production #125876

Open rburgst opened 1 week ago

rburgst commented 1 week ago

The problem

my grid production values are wrongly summarized when I choose the date range 25.7.-31.8.2024. However, the value from 27.7.-31.8. look ok, when I do 25.7.-27.7. all is ok as well. Somewhere there seems to be a wrong aggregation.

image image

What version of Home Assistant Core has the issue?

core-2024.9.1

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

Integration causing the issue

Energy Dashboard

Link to integration documentation on our website

https://www.home-assistant.io/docs/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

progspont commented 1 week ago

Exactly the same problem EnergyStrong

karwosts commented 1 week ago

This is duplicate of frontend https://github.com/home-assistant/frontend/issues/18883

When selecting over I think 35 days, it switches to monthly resolution. In monthly view you can only get whole months of data. So your 25 July - 31 August is really "All of July" + "All of August"

rburgst commented 1 week ago

If that is the case then the dashboard should show this in a note to infor the user about this fact. ideally it would still show the correct value. For many measurements it’s simply „take the value of the entity on the end date - the value from the start date“.