I’ve had the Xiaomi Gateway setup and operating in Hass.io for several months now. I am using it along with several sensors and all has been working well (sensors report state back to HA)
However, I am unable to connect to the Gateway itself to control the light, alarm, etc. The Gateway does not appear as an entity in HA.
After scouring the forums, I have been unable to find others with the exact same issue I am having with the following errors shown in the log:
2018-04-21 18:37:03 ERROR (SyncWorker_10) [xiaomi_gateway] Cannot connect to Gateway
2018-04-21 18:37:04 ERROR (SyncWorker_10) [xiaomi_gateway] No data in response from hub None
2018-04-21 18:37:14 ERROR (SyncWorker_10) [xiaomi_gateway] Cannot connect to Gateway
2018-04-21 18:37:24 ERROR (SyncWorker_10) [xiaomi_gateway] Cannot connect to Gateway
2018-04-21 18:37:34 ERROR (SyncWorker_10) [xiaomi_gateway] Cannot connect to Gateway
2018-04-21 18:37:44 ERROR (SyncWorker_10) [xiaomi_gateway] Cannot connect to Gateway
2018-04-21 18:37:54 ERROR (SyncWorker_10) [xiaomi_gateway] Cannot connect to Gateway
2018-04-21 18:37:54 ERROR (SyncWorker_10) [xiaomi_gateway] Got error element in data {“error”:“No device”}
2018-04-21 18:37:54 ERROR (SyncWorker_10) [xiaomi_gateway] Got error element in data {“error”:“No device”}
2018-04-21 18:37:54 ERROR (SyncWorker_10) [xiaomi_gateway] Not a valid device. Check the mac adress and update the firmware.
Sometimes, it is just the last error. It doesn’t make sense to me as all the associated sensors are connected and working fine, just not the gateway.
I have tried all possible setups in my config, including listing the MAC address, but nothing seems to get it connected.
My current setup is:
xiaomi_aqara:
discovery_retry: 10
gateways:
- host: 192.168.0.1
mac: 7811dcb3XXXX
key: 6uiz5hxcpd21XXXX
At the risk of opening another gateway thread, I was hoping someone might have some ideas or thoughts on how to solve the problem.