qiuliunian
(Autumn Years)
August 13, 2024, 12:52pm
1
HA comes with Xiaomi Aqara gateway integration that always disconnects
When reloaded in the integration, it will go online
What’s going on here
Mi Home Multi functional Gateway 2 is used
Have you been through the troubleshooting section in the docs?
Anything in the logs?
There’s something similar on Github:
opened 07:45AM - 27 Jun 23 UTC
closed 12:43PM - 28 Jun 23 UTC
integration: xiaomi_aqara
### The problem
For testing, have a fresh installation on vmware workststion an… d add core integrated Xiaomi Aqara Gateway (lumi.gateway.v3_1.4.1_176.0220) with the token, sub-devices are identified and work OK, BUT after a while, all entities of the gateway and its sub-device turn to "unavailable". reload integration can solve this issue temporarily but happens again after a while.
### What version of Home Assistant Core has the issue?
2023.6.3
### What was the last working version of Home Assistant Core?
2023.6.3
### What type of installation are you running?
Home Assistant OS
### Integration causing the issue
xiaomi_aqara
### Link to integration documentation on our website
https://www.home-assistant.io/integrations/xiaomi_aqara/
### Diagnostics information
not available
### Example YAML snippet
```yaml
NA
```
### Anything in the logs that might be useful for us?
```txt
Home Assistant Core
Got error element in data {"error":"Invalid key"}
June 26, 2023 at 2:47:43 PM – (ERROR) components/xiaomi_aqara/light.py
Got error element in data {"error":"Invalid key"}
June 26, 2023 at 2:23:59 PM – (ERROR) components/xiaomi_aqara/config_flow.py - message first occurred at June 26, 2023 at 2:23:59 PM and shows up 2 times
```
### Additional information
The BMW integration seems to have a similar problem too. link to issue
https://github.com/bimmerconnected/ha_custom_component/issues/68
OS information:
Home Assistant 2023.6.3
Supervisor 2023.06.2
Operating System 10.3
Frontend 20230608.0 - latest