home-assistant-myuplink icon indicating copy to clipboard operation
home-assistant-myuplink copied to clipboard

Example of how to override the scan interval

Open vesanieminen opened this issue 10 months ago • 6 comments

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.

Screenshot 2024-04-14 at 15 00 28

vesanieminen avatar Apr 15 '24 04:04 vesanieminen