My hass.io setup only read out all of my Xiaomi (Aqara) sensors when I restart my Hass.io (Pi3).
When I try to turn on the light on the Gateway 2 see a error in the Developer section info
Error executing service <ServiceCall light.turn_on: entity_id=[‘light.gateway_light_7811dcb07501’]>
09:41 components/light/xiaomi_aqara.py (ERROR)
Got error element in data {“error”:“Invalid key”}
09:41 components/light/xiaomi_aqara.py (ERROR)
The key is correct because the system read out the sensors after a restart.
I would think you should be using the one gateway format? That is how I have mine setup at least. Make sure the format of the yaml is right. I noticed a few things like yeelight won;t break the system if the file is wrong but it messes with the setup.
Only add the sugest xiaomi_aqara format to configcuration.yaml with a new generated key.
Result:
When I use te sugest xiaomi_aqara format in configcuration.yaml with a new generated key. My setup won’t discover the Gateway and don’t see the Xiaomi Aqara Temp and Humidity sensor and Xiaomi Smart Home Aqara Human Body Sensor.
I see the gateway (light switch) and Xiaomi Aqara Temp and Humidity sensor and Xiaomi Smart Home Aqara Human Body Sensor. But hass.io don’t detect any motion. The system read out the sensors after a restart op Hass.io
When I try to turn on the light on the Gateway 2 see a error in the Developer section info:
Error executing service <ServiceCall light.turn_on: entity_id=['light.gateway_light_7811dcb07501']>
13:29 components/light/xiaomi_aqara.py (ERROR)
Got error element in data {"error":"Invalid key"}
13:29 components/light/xiaomi_aqara.py (ERROR)