The first error is due to timeouts when requesting data read from hub. I see a lot of them, when my wifi router is overloaded by e.g. torrent download.
I found the reason. It’s not a bug of aqara hub, it’s a race condition bug in PyXiaomiGateway library, because it’s working with UDP protocol (which guarantees almost nothing) as with TCP. I will fix it when I will have a free time.
Sorry to bother: would you mind taking a look at my post here about a similar problem I am facing with the Aqara component as well? Problem with multiple Xiaomi Aqara Gateways
Is this already close to a solution. Since not to long I have this errors as well. Everything appears ok (sensors are reporting), however new sensors are not added/discovered. I’m running latests stable HA.
2018-12-30 21:05:49 ERROR (SyncWorker_7) [xiaomi_gateway] Cannot connect to Gateway
2018-12-30 21:05:49 ERROR (SyncWorker_7) [xiaomi_gateway] No data in response from hub None
I am using HA 0.84.1 and Xiaomi Gateway.
I see similar issue was fixed in underlying library: