Summarized instructions at the end if you don’t want to read all the post.
After some months of dealing and figuring out a way to make the Aqara Zigbee devices, I think I finally make them work, connecting directly to the coordinator or a router/repeater.
As some of you are aware, the Aqara devices are very picky to join a Zigbee network that is not their own hub. When I did my research, I always found both experiences, people completely frustrated or people that were very happy with them, and everything was working fine. I tried adjusting the channel, which I keep far away from my wireless network, but I was getting the same result, the Aqara devices been dropped.
As a user who is now happy with the Aqara devices (after moving to the Aqara hub and getting different coordinators, trying ZHA and Zigbee2MQTT(Z2M)), I feel that I can share my experience with new users that are trying to make them work.
These instructions are with ZHA, but I am confident it will also work with Z2M. My coordinator is a Nortek HUSBZB-1, but I feel the instructions will work with others. The main trick is to connect the Aqara device to the coordinator directly, if the devices are paired in the main integration (ZHA and Z2M), you might end a bit frustrated, some of the end devices were disconnecting after a few hours. Then do, Configuration > Integrations > Configure (ZHA) > Devices > Zigbee Coordinator > “ADD DEVICES VIA THIS DEVICE”. And here, set up the Aqara device in pairing mode so you can start the pairing process.
Adding all of the Aqara devices directly to the coordinator worked, keeping the connection in the network for several weeks. Then, I tried to force the connection to the repeaters (Ikea, thermostat) and the same luck as before; the devices were dropping after a few hours. Doing some reading, I found that the CC2531 can be flashed as a repeater, which is also a coordinator (that I purchased when I did all my testing). My devices are not that far from the coordinator; the farthest will be some 10 meters, and it was working fine with the coordinator, but as a hard-head, I wanted to add the repeaters. I got an additional CC2531 with the debugger to have two repeaters and start testing the network. After flashing the CC2531 as routers, I add them to the network directly to the coordinator. Then, the Aqara devices were added directly to the routers after removing them from the coordinator. Everything has been working for three weeks, and I finally have a network where everything is connected to something and not the bubble moving around in the visualization. I guess that the router’s software is a similar one to the Aqara devices “lumi.router” and that’s why they like to speak to each other.
I hope this might be helpful for someone in the future. I wanted to give something back to this awesome community that helped me a lot.
1) Add the devices via the zigbee Coordinator. Configuration > Integrations > Configure (ZHA) > Devices > Zigbee Coordinator > “ADD DEVICES VIA THIS DEVICE”.
If you want to extend your network or reduce the load of the coordinator
2) Get CC2531 repeaters and plug them between your coordinator and the devices to help to extend the network. I guess the Aqara smart-plug will work too if you can give it a use. But the cheap way, the CC2531 and the debugger. Configuration > Integrations > Configure (ZHA) > Devices > CC2531 Router > “ADD DEVICES VIA THIS DEVICE”.
*Aqara pairing process: to push the pairing button for five (5) seconds or eight (8) secs depending on the device, so it will enter in pairing mode, then continue pushing and releasing the pairing button one time every sec. You will see the device starting the interview, configured, and then added. Do not stop pushing the pairing button each second until you see the battery status and not the “?” as battery status. Sometimes the battery status will take one day to reflect the “real” battery status; this is normal.