Aqara sensors keep disconnecting

After using my sensors for over a year for some reason the aquara sensors keep losing connection. I’ve tried multiple battery swaps and also removing them from ZHA and adding them again. But all disconnect again after a couple of days. This goes for motion-, temp-, door-sensors and also the aquara buttons.

I use a sonoff zigbee 3.0 stick and there are multiple routers in my network. But even the sensors that are just meters away from the router disconnect.

Any tips are more then welcome.

Assuming you did all the obvious things, such as an usb extension cord, check if wifi channels overlap with Zigbee (new routers or automatic channel changes, neighbors, … can all change): I added a setting to zha that seems to have eliminated all my problems. It does lower security somewhat though:

zha:
  zigpy_config:
    ezsp_policies:
      TRUST_CENTER_POLICY: 0x0002 # ALLOW_UNSECURED_REJOINS

Well I did check the 2.4 wifi settings of my router. Unfortunately the tp-link x20’s I have don’t allow for manual channel switching in their settings. They do offer a smart option that scans available networks and sets the “best” possible channel.

I’ll give the security setting a try, thanks for the tip.

Hey Edwin, no luck so far. Within a couple of days the sensors I reconnected went offline again.

Any other tips are more then welcome.

Aqara’s and Xiaomi’s Zigbee devices are infamous for having problems pairing & and keeping them connected regardless of which Zigbee Gateway you are using, see reference → Xiaomi & Aqara Devices - Pairing & Keeping them connected - Devices - Hubitat

Before troubleshooting any further you must make sure to avoid EMI interference and also add enough Zigbee Router devices to get good coverage and range. Start by reading and try following all the best practice tips in this guide → Zigbee networks: how to guide for avoiding interference + optimize using Zigbee Router devices (repeaters/extenders) to get a stable mesh network with best possible range and coverage

Those problems often gets resolved by first adding a long USB extension cable for the Zigbee Coordonation as well many more “known good” Zigbee Router devices and then after that re-pairing the Aqara/Xiaomi’s Zigbee devices again.

Usb extention cable is present. Also multiple routers. But even the sensors that are only 1 or 2 meter away from the router suffer this issue. Routers are also from different brands so that also can’t be the cause.

Everything has functioned well for 1.5 to 2 years before this issue started.

Hello everyone,
I’m a bit late with my post, but I believe I’ve found a solution to this problem. At least, it worked for me.

I have several Aqara devices in use, and recently I’ve been facing an issue where the devices regularly disconnected. I had tried pretty much every troubleshooting step I could think of.

Eventually, I discovered that Aqara devices can sometimes have significant issues with meshing. In my case, this caused massive problems because the Aqara buttons and sensors kept losing their connection while meshing.

I read that Aqara sensors and switches have a known issue where they don’t re-mesh properly. They seem to remember the point they were initially connected to and stick to it permanently.

My solution was to connect all devices either directly to the mesh controller or to a device nearby. You can see how to do this in the screenshot.

Since then, I haven’t had any problems. I hope this helps some of you as well.

Best regards,
Garfieldtt

1 Like

I read this with interest, as I too have never-ending problems with Aqara Zigbee sensors disconnecting, and in some cases never being able to reconnect them.
I guess my hardware is different to yours - I use a Sonoff Zigbee Bridge (Tasmota). May I ask what sort of mesh controller you use? And also which piece of software does your screenshot refer to?

They’re using Zigbee2MQTT, but you can achieve the same result in ZHA by going to the device page (for the closest device to your sensors) and clicking 3 dots > add devices via this device:

I suspect the issues you have with Aqara devices is because you’re trying to pair everything with the coordinator when there are more suitable devices nearby. Personally I never had issues with any products from this brand once I learnt to set them up the way zigbee expects.

Well I fixed my issue. But I did 2 things at the same time so I can’t 100% say wich solved it. I changed my controler from the Sonoff zigbee 3 version to the Skyconnect/Connect ZBT-1. And I also changed from ZHA to Z2M.

The move over was quite a bit of work but worth it. I have the idea me network is a lot more reliable than it was with ZHA, no disconnects for a couple of weeks. Also updating firmware works a lot better than before, where ZHA failed 100% of the tries to update my ikea lamps and remotes Z2M completed each update on the first try without failure.