-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Data 1 hour off? #45
Comments
Hi,
Yes, there is a bug which makes new data loss, only the first run is imported into statistics. I'm looking at it to figure out what is causing it but it's hard to debug, hopefully I will fix it soon. About the 1 hour off… Tracing some random spike from my account:
Currently I use some API endpoints different from web UI: https://github.com/ldotlopez/ideenergy/blob/main/ideenergy/client.py#L32
You can test it with: What is happening? I think I'm handling the data correctly, I have no Shelly or other sensors but that data matches with my usage pattern. May be homeassistant has incorrectly configured country or timezone? |
That's correct. Your first graph shows 0,47 at 22:00 point which translates to "at 22:00 I get a 0,47 reading from the hourly consumption sensor. since previous reading was at 21:00 point this means that in the 21:00-22:00 period 0,47 kwh was consumed". If you have doubts add the historical sensor as energy source at the energy panel, bars will show correct values. Home Assistant historic graphs can be a little confusing with this type of sensors. Let me know if it works ok |
Yes, they are, indeed. Energy panel shows correct values. Now I have to realize how to make a graph that shows the correct matching between i-de and shelly EM. My current one has the 1 hour mismatch. |
Ok, using statistics I managed to make the graph with apexchart match. Closing the issue. |
I have v1.0.4 with only the historical sensor enabled and I see data is 1 hour off compared with data collected with Shelly EM.
Also, if you look at the history, and compares the graphic with the one that Iberdrola (not I-DE) shows, data from 11:00 to 12:00 for example is shown as the 12:00-13:00 interval in HA
The API seems to return the accumulated consumption in the previous hour. My last (redacted) log for 'successful' update:
The latest state, corresponding to 23:00-24:00, is collected as 00:00 (22:00 UTC)
"Successful" because yesterday's data still does not appear, by the way.
Originally posted by @kikediazfernandez in #34 (comment)
The text was updated successfully, but these errors were encountered: