Danielhiversen / PyXiaomiGateway

PyXiaomiGateway
MIT License
152 stars 55 forks source link

unavailable gateways: way to fix? #144

Closed andriej closed 5 years ago

andriej commented 5 years ago

Home Assistant release with the issue (if applicable): latest 0.87 Last working Home Assistant release (if known): can't remember PyXiaomiGateway library version (if known): not known Operating environment (Hass.io/Docker/Windows/etc.): venv and docker hass.io

Description of the bug: Like descripted in HA bugreport - I have 3 xiaomi GWs which were working for quite long time without internet access - just fine. Some time ago they started to become unavailable every once a day and even more often later on.

I've found, by mistake, tempororary (because I'm testing it 2nd day) way to fix that. I had them configured with: api key, host and mac. I've removed IP ADDRESS (host) from every 3 of them in config and restarted. It was last time they were unavailable.

Disclaimer: I knew that it's not issue with network or other devices as I've tcpdump'ed traffic while they were unavailable in HA. Broadcast messages reached HA machine without any problems.

Can someone please check the implementation of XiaomIGateway inside HA for potential issues with 'host' declaration? I don't believe it's coincidence the problem disappeared, as I had it almost regular every day since few weeks.

andriej commented 5 years ago

Unfortunately problem came back.