Greetings to everyone, first of all I apologize in advance for my english because its not my first language.
Im posting because im having some problems with my xiaomi aqara. Since I migrate from hassbian to hassio all my xiaomi sensors stop working (motion, door, temperature and humidity). If I reset my homeassistant after some minute it throw the following errors:
Cannot connect to Gateway
No data in response from hub None
Got error element in data {“error”:“Invalid key”}
Before you ask, yes the key on my homeassistant its the same from the xiaomi app and the IP and MAC adresses are right. When I was using hassbian it was working without problems, but in Hass.io for some reason there’s no way for me to make it work.
If you receive an {"error":"Invalid key"} in your log while trying to control the gateway light
You should generate the key again using an Android Phone or alternatively an emulator such as bluestacks. In some instances, there is an issue with keys being generated using the iOS application.
You need to make sure to have multicast support on your network. If you are running Home Assistant in a virtual machine (like Proxmox), try echo 0 >/sys/class/net/vmbr0/bridge/multicast_snooping on the host and restart the service or reboot the host.
Hello there,
I have the same issue. I use a docker container at a Synology nas.
I can control the light, but also get this error…I already changed the password on my android phone twice.
Have you any additional advice for me?
2019-11-23 07:26:05 INFO (MainThread) [homeassistant.setup] Setup of domain history took 0.0 seconds.
2019-11-23 07:26:05 INFO (SyncWorker_7) [xiaomi_gateway] Xiaomi Gateway 04cfaabbccdd configured at IP 192.168.0.1:9898
2019-11-23 07:26:53 ERROR (SyncWorker_6) [xiaomi_gateway] Got error element in data {"error":"Invalid key"}
2019-11-23 07:27:07 ERROR (SyncWorker_4) [xiaomi_gateway] Got error element in data {"error":"Invalid key"}
If you receive an {"error":"Invalid key"} in your log while trying to control the gateway light
You should generate the key again using an Android Phone or alternatively an emulator such as bluestacks. In some instances, there is an issue with keys being generated using the iOS application.
You need to make sure to have multicast support on your network. If you are running Home Assistant in a virtual machine (like Proxmox), try echo 0 >/sys/class/net/vmbr0/bridge/multicast_snooping on the host and restart the service or reboot the host.
I have the issue, that I don’t knwo how to make sure that Docker at my Synology is in multicast mode. The PW I already changed mutiple times. My Fritz!bos is in multicast mode…
I think that would assume though that synology has multicast enabled. I am not really familiar with them. Can you access a shell and report what ifconfig or if report?
If my new Aqara gateway ever arrives, I may be able to parallel troubleshoot. Meanwhile, I have five of the smart mini-switches just waiting for the gateway.
Well, strange things, from one moment to another my aqara gateway start working once again. I don’t know if it was fixed because i change some things in my config related to ifttt (i dont think so but as i say from one moment to another it fix magically) but from that moment work just fine. Thanks anyway!