home-assistant-myuplink
home-assistant-myuplink copied to clipboard
Example of how to override the scan interval
Could you provide an example e.g. in the readme.md of how one could change the scan interval for this addon (other than forking the repo myself and changing DEFAULT_SCAN_INTERVAL and MIN_SCAN_INTERVAL in const.py directly)?
Context:
Yesterday I upgraded my Nibe F470 from Nibe Uplink to myUplink and noticed that the resolution for e.g. the current sensors is around 10 - 15 seconds and I would like to utilize that instead of the default 1 - 5 min interval that this project has set so that I could calculate the electricity consumption at my house more accurately. Is there a technical reason for the interval to be that high initially btw e.g. to limit API request amount or something? On dev.myuplink.com I noticed this which doesn't sound too limiting to me:
The current limit for public API clients is one request every 4th second with occasional bursts allowed.