-
-
Notifications
You must be signed in to change notification settings - Fork 4
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
Make the update_interval configurable #54
Comments
To be honest, I'm not sure if this is easy to do. There used to be a scan_interval but that was dropped by HA quite some time ago. Please let me know if you know of any integration that allows modifying the interval. I might be able to use it as inspiration. |
The route I've seen a few integrations take to support this, is disable updating automatically, and add supporting update via a service call. Then the end-user gets to implement an automation to decide when to update. |
Hi! Just stumbled upon this, but in my HA I use the Plugwise integration to control my thermostat. That integration (in the beta channel) supports setting the update interval manually from the configuration options. Might be a source of inspiration! https://github.com/plugwise/plugwise-beta |
Looking at the code you are already using "update_interval" in the Coordinator. When I change the timedelta into 20 seconds the data is refreshed every 20 seconds. Am I missing something?
|
…erval Make the update_interval configurable marcoboers#54
…pdate-interval Revert "Make the update_interval configurable marcoboers#54"
I tagged a beta release! |
Checklist
Is your feature request related to a problem? Please describe.
The current update_interval is static and is 10. This causes frequent data pulls and potential more data points that someone might need/want
Describe the solution you'd like
I would like this variable to be configurable in the Integration
Describe alternatives you've considered
Hardcoded change in coordinator.py
Additional context
The text was updated successfully, but these errors were encountered: