Possible to set polling rate? #181
Replies: 5 comments
-
|
You never can do it right for everyone - before, people were claiming that 60s is too slow. I introduced status items then ... ;) There are 3 intervals defined in /config/custom_components/ugreen/const.py:
For WS I never tried what the max possible value is - if too high, the API goes asleep for some important status items. Be reminded: HACS replaces the entire integration folder on updates, so you would have to redo this until I include it in the config flow. Good luck! /tom |
Beta Was this translation helpful? Give feedback.
-
|
p.s. I just double-checked: I somehow forgot to make use of the defaulkt intervals in const.py for 'config' (60s) and 'WS' (20s) after I introduced them in v2025.10 - corrected, all 3 will be settable in the next release. However, 'status' (5s) was already included, so it should already work in the version you have on hand ... /tom |
Beta Was this translation helpful? Give feedback.
-
|
Haha I can imagine. Everyone wants something different. But thanks for the expanation! I can do something with this!! |
Beta Was this translation helpful? Give feedback.
-
|
Just reworked option_flow. Initial setup will show basic options to connect to the NAS. Editing the main device again will give you options to change polling intervals. Just don't want to scare newcomers in their first setup screen. /tom |
Beta Was this translation helpful? Give feedback.
-
|
That sounds perfect! 🥳 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there!
I was wondering if it is possible to set the polling rate manually? I see that it now polls every ~10 seconds, however this is maybe a bit too much for my taste. Is it possible to reduce this to a specific value by hand?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions