Skip to content
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 refresh interval time #142

Closed
Dominic-070 opened this issue Sep 22, 2024 · 2 comments
Closed

Data refresh interval time #142

Dominic-070 opened this issue Sep 22, 2024 · 2 comments

Comments

@Dominic-070
Copy link

Dominic-070 commented Sep 22, 2024

I noticed that the Zonneplan integration retrieves data once every 5 minutes from a server where the data is refreshed once every 5 minutes. The data on the server is refreshed every few seconds after the full 5 minutes. If you just happened to restart Home Assistant or the Zonneplan integration at 19:09, your data is always 4 minutes behind. The data in the energy dashboard is therefore even more incorrect.

Can the integration instead of the moment of start-up and then pull every 5 minutes look at sensors the last_update sensors and refresh based on that or on the full 5 minutes (+ approx. 40 seconds)?

See also: https://gathering.tweakers.net/forum/list_message/80192180#80192180

@fsaris
Copy link
Owner

fsaris commented Sep 29, 2024

I didn't implement this because the Zonneplan servers probably will not like this if all integrations call the API around the same time. See for example #89

@Dominic-070
Copy link
Author

Thanks for your awnser.

@fsaris fsaris pinned this issue Sep 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants