-
-
Notifications
You must be signed in to change notification settings - Fork 45
Intermittent results #187
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
Comments
I believe this is to do with Hildebrand's rate limiting - I'm working with them on a solution 🤞🏾 |
Yeah I have noticed the same issue. Can you advise where (or even if I should!) I remove the IF statement? I mean, I know it's in the sensor.py file, but not exactly sure what I need to comment out/remove/change. Perhaps I should wait for an update :-D |
@viking2010 , I changed
to
I.e., delete the lines. This seems to mainly fix the issue, although some results are dropped. @HandyHat , not quite sure how this relates to rate limiting, as this should make the problem worse, rather than fix it. I suspect some sort of timing issue, as to exactly when the 30 minutes updates are done. |
@ColinRobbins Thanks for sharing the edits. I've made the same change now and will see how things look. Like you say though, you'd think this would make the issue of rate limiting worse rather than better. Hopefully @HandyHat will be able to investigate and resolve with Hildebrand's support. |
From the explanation that Hildebrand provided, what I understand is that the rate limiting entails caching the yearly value for an hour after the last call, preventing it from updating if it has been less than an hour when it is next polled in home assistant. By reducing the polling interval, it checks more often and is going to poll soon after the cache expires, fixing the problem. |
Thanks for the explanation, I can see now. |
It's definitely an interesting edge case, because there's only a second or so in it and sometimes it does work fine |
I've been in contact with Hildebrand and they've kindly agreed to reduce the cache to 59 minutes and 50 seconds after the first call, so hopefully this issue should now be resolved? |
Sounds good. Let’s see… |
@HandyHat I've recently rebuilt my HA implementation (made too many mistakes with my first attempt!!) and I'm no longer getting any intermittent results. Previously I had removed some of the code from the IF statement in line 210 of sensor.py but this is no longer necessary. For me this issue is resolved. |
Great - thanks @viking2010 |
Describe the bug

I am seeing intermittent results, when looking at the output via the Energy integration.
There are no errors showing in the log.
Version
This seems to have occurred since the 0.6 rollout.
Debugging
By removing the if statement to only check for data in 5 minute windows, the error goes away.
(Line 210
sensor.py
)I cannot yet see what the issue is, this check was the advice from the Glow forum.
Is anyone else seeing the issue?
The text was updated successfully, but these errors were encountered: