Hello everyone,
Note: Since I am unfortunately only allowed to include two media elements as a new user, I have inserted all images of the Energy Dashboard as Base64 strings.
I’m not sure whether I’m making a mistake here or whether this is actually a bug.
After a certain period of time, I can only view the states of entities in the history every hour instead of every minute or second, depending on how often the entity has been updated.
I can currently look back up to 12 days with detailed data. The statuses of entities that are older than 13 days are only displayed in hourly resolution. This is intentional so that the database doesn’t take on astronomical proportions after a few years.
I’ve been using the Energy Dashboard for about a year now, and today I noticed something: If the data of entities that I have defined for different areas (battery, solar, power grid …) are only available as long-term statistics (older than 12 days), then they are shifted by one hour in the Energy Dashboard.
A small example of this:
-
On 02 May 2025 (a day with detailed status data), the Ch2 YieldDay entity has increased by 61 Wh according to the history from 08:00 to 09:00. The Energy Dashboard shows a value of 0.06 kWh for the same period. So it fits.
-
On 16 April 2025 (a day with only long-term statistics data), the Ch2 YieldDay entity has increased by 85 Wh according to the history from 08:00 to 09:00, but the Energy Dashboard only shows 0.04 kWh for the same period, which does not fit, as 85 Wh would actually be 0.085 kWh (rounded up to 0.09 kWh).
Where does the 0.04 come from?
- If you look at the history again, you can see that the Ch2 Yield Day entity increased by 41 Wh from 07:00 to 08:00 - which corresponds to exactly 0.04 kWh .
The 0.085 kWh (0.09 rounded up) then only appears from 09:00 to 10:00 in the Energy Dashboard.
So for some reason, the data is always shifted forward by one hour when it comes from the long-term statistics.
Am I just making a mistake or is the data in the history / energy dashboard actually wrong?
If the data is actually falsified by the transformation to long-term data, it wouldn’t be the end of the world because it would be relatively easy to correct with an SQL query in the database (actually, all you have to do is ‘turn back’ all the Unix timestamps by one hour), but I would consider it a relatively big mistake.