WTH is there no good way to adjust an integration's polling interval?

It’s possible to enable or disable an integration from polling for updates via a simple toggle, but the only way to change the polling interval is to disable the toggle for the built-in polling, and “replace” it with a custom automation on a timer. This is described at this link:

This is a hacky and cumbersome workaround. There should be a text box instead of the toggle which lets you set the polling interval to something other than the default, on a per integration level. Ideally on a per entity level as well, but that may just be wishful thinking.

For example, I have one integration which updates every 10 minutes and I want to do one minute instead. I have another one that updates far more often than needed.

No this is a deliberate by intention slightly difficult procedure. The hope is that if you know enough to do it then you know enough not to abuse external resources by querying them to death.

Complaints have been made to Home Assistant from external organisations about users over polling resources in the past.

2 Likes

Interesting. Seems more like an issue with those organizations more than with Home Assistant to me. They should be enforcing API call limits which would also prevent other and more malicious abuse of their service. But I guess that’s besides the point.

I don’t suppose there would be a way to offer this feature for local integrations and other approved ones only?

Although I think it’s custom integrations in particular which seem to have no rhyme or reason to the built-in polling interval sometimes.

In the case of custom integrations, that sounds like a feature request to the integration maintainers. I purposely added a polling configuration option in the integration that I maintain so that folks can dial it in to meet their specific needs, including not stepping on API limits!

They do, which is the problem. Peoples device’s were only working for half the day when they hit usage limits. Or the worse extreme, they were going over their overage limits and getting charged large fees.

In some scenarios, a user wants to perform a manual update only if some conditions are met. Currently this may be implemented in an automation. This would not be possible if this update will be performed automatically.