rytilahti / homeassistant-xiaomi-ng

1 stars 2 forks source link

Refactor Coordinator to handle retries, defer on exceptions #15

Open amozeo opened 2 months ago

amozeo commented 2 months ago

Fixes some devices becoming unavailable every 15 minutes or so often, because these devices want to connect to Xiaomi servers, but user disallowed it on network level.

Why draft? I marked as draft because I want to make sure that the issue that motivated me to make this change is fixed for sure. Meaning the entities of my Air Purifier device no longer appear as unavailable for a short time in history of my Home Assistant instance.

I have tested for around 20 hours with Air Purifier 4 (zhimi.airp.mb5a) and the unavailable states are much rarer.