Hi all,
I started my first custom integration development - it is really fun and I love HA.
It is a simple integration that uses the polling mechanism in order to fetch data.
What I could not find out - even with intense reading of the documentation and scanning other code - what to do with connectivity issues.
My integration is fetching data every 4 hours. But it can happen that the internet connection is lost at the very same time. HA marks the entities as unavailable. And I have have to restart the integration, when connectivity is back.
Of course, I could reduce the update interval in general (to let’s say 15 minutes), but it does not feel right. I would like to have some more robustness in case of connectivity issues.
I’d love to ask HA to poll more often in case of connectivity issues or even poll once internet connectivity is live again.
But I was not able to reduce the update interval in case I receive an exception from aiohttp (I tried to change self.update_intervall within the DataUpdateCoordinators async_update_data function, but no look ) . What is your strategy for your integration in case of connectivity issues?
KR
Nazze