Energy monitoring is one hour off

I’ve recently enabled the energy dashboard in Home Assistant, based on readings from the Tibber Pulse integration.

Looking at the usage bars in Home Assistant vs. the Tibber app; it seems like Home Assistant is one hour behind. I can’t find any configuration related to this, and don’t really understand why.

The usage matches exactly the app, only Home Assistant is behind.

Tibber app: 07:00-08:00 : 5.3 kWt
Home Assistant: 08:00-09:00 : 5.3 kWt

I’m sure that the Tibber app is right, as this matches the expected usage.

Screenshot from the Tibber app:

Screenshot from the Home Assistant energy dashboard:
image

I have set timezone correct in Home Assistant.

Any ideas why this is happening? Or what I should be looking at to figure it out?

Know issue (by me): Long-term statistics: websocket "history/statistics_during_period" API · Issue #56052 · home-assistant/core · GitHub

I guess frontend didn’t fix it to use the end date, yet.

Thanks :slight_smile: I’ll open a bug for this.

1 Like

Hi. How did you solve this?

I haven’t. I planned on making a bug for it, for I forgot about the whole ting…

You got a link to a github issue?

Did you get a solution to this?

I’m having the same problem.

Having an AMSHAN connectet

I was just bitten by this bug. I suspect it’s a case of bad interoperation (a race-condition, basically) between AMSHAN and the Energy subsystem. That is, AMSHAN is updated on the hour. And I suspect so is the Energy report. So, for example, for the period 8 to 9 o’clock AMSHAN is updated maybe at 9:00:02, and the Energy subsystem is checking the energy usage at 9:00:01, but only gets the previous data, namely the AMS data from 7 to 8 o’clock. So, while it appears the Energy report is one hour off, it’s really just because it’s 1 second off.

I’m getting this same issue on my HA Energy dashboard from Solar Assistant connected to Sol-Ark. All systems appear to be on the same, correct time settings. Running latest HA updates. Has this been addressed yet?