question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Xiaomi Gateway (Aqara) integration loss connection to zigbee subdevices every few hours and they become unavailable.

See original GitHub issue

The problem

Xiaomi Gateway (Aqara)integration loss connection to zigbee subdevices every few hours and they become unavailable. Effected devices: Motion sensors Temperature sensors Vibration sensors Switches etc…

The devices are still available and working on “xiaomi home” app and the temperature sensors still available and working with “xiaomi miio” integration in home assistant. Reload the integration or restart home assistant solve the issue for few hours then it happens again.

What version of Home Assistant Core has the issue?

core-2021.12.10

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Xiaomi Gateway (Aqara)

Link to integration documentation on our website

https://www.home-assistant.io/integrations/xiaomi_aqara/

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Maybe:
Logger: xiaomi_gateway
Source: /usr/local/lib/python3.9/site-packages/xiaomi_gateway/__init__.py:333
First occurred: January 27, 2022, 12:14:51 PM (3 occurrences)
Last logged: January 28, 2022, 9:09:02 AM

Cannot connect to Gateway

and:

Logger: xiaomi_gateway
Source: /usr/local/lib/python3.9/site-packages/xiaomi_gateway/__init__.py:429
First occurred: January 27, 2022, 12:14:51 PM (3 occurrences)
Last logged: January 28, 2022, 9:09:02 AM

No data in response from hub None

Additional information

While the issue happens The devices are still available and working on “xiaomi home” app and the temperature sensors still available and working with “xiaomi miio” integration in home assistant.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:29 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
llapinskicommented, Aug 16, 2022

@llapinski It looks like your setup / Home Assistant instance isn’t able to receive multicast traffic.

Thank you for a tip - it was connected with docker service upgrade (changed docker-compose structure). In newer version it wasn’t possible to add network_mode: host and ports declaration in the same service in docker-compose file. I decided to use the ports section and I didn’t connect that with integration problems. As you suggested, I noticed that this setting prevents receiving multicast traffic. I changed ports section to network_mode: host and my integration is stable again. Thank you @syssi

1reaction
syssicommented, Aug 14, 2022

@llapinski It looks like your setup / Home Assistant instance isn’t able to receive multicast traffic.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Xiaomi Gateway Becomes Unavailable after some time
The most I can get with Gaeway A is three hours, after that it became unavailable and bringing all the child devices (sensors)...
Read more >
Xiaomi aqara loosing connection every couple hrs
I used a device Handler to pair to SmartThings Hub and I'm having the sensor drop off every 2 hours anybody have any...
Read more >
Hub M2 - Aqara
It supports Wi-Fi or Ethernet network access and interconnection with Zigbee sub-devices. With IR remote control function, it can add and manage different...
Read more >
Aqara m2 hub. No clear date for public release for the Центр у
It's an interesting little device that integrates seamlessly into HomeKit and ... will drop connection and results may vary While with aqara hub...
Read more >
Xiaomi / Aqara ZigBee device drivers (possibly may no longer ...
NOTE: Although many users have had great success using them, Xiaomi / Aqara ZigBee devices are NOT officially supported or guaranteed to ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found