There are some integrations -- my worst offender is Home Connect -- that rate-limit their APIs and then Home Assistant frequently triggers an API block, thereby temporarily disabling the integration. The accepted and standard fix for this problem is to either use an alternate integration that has resolved the problem, or disable automatic polling and new entity discovery in the integration and set your own polling. My question concerns the latter. I have automatic polling disabled on three integrations (under system options in the 3-dot menu for the integration), and then I use the following automation:
alias: "Intelligent Polling: Home Connect"
description: Poll less frequently normally
triggers:
- minutes: /10
trigger: time_pattern
conditions: []
actions:
- action: homeassistant.update_entity
data:
entity_id:
- sensor.dishwasher_operation_state
- sensor.oven_right_cavity_current_oven_cavity_temperature
This should update the two sensors once every ten minutes. So here are the mysteries:
- Mostly Home Assistant detects changed state within a few seconds;
- Home assistant sees updates of sensors not listed but part of the same integration, e.g. door status on the dishwasher;
- In the data stored on temperature, temperature sometimes changes every few seconds;
While I singled out Home Connnect, the other two integrations I am limiting, LG_Thinq and Ecowitt, have the same issues.
Is there some other place to turn off automatic polling besides in the system options for the integration? I have carefully checked that automatic polling and new entity discovery are turned off, and this setting survives an HA restart.
I use HAOS on a dedicated mini-PC to run Home Assistant.
How is it possible that Home Connect is a platinum quality integration, when out-of-the-box it can trigger an API rate limit that disables the integration?