Xiaomi & Aqara Devices - Pairing & Keeping them connected

Since the latest update I'm finding issues with motion sensors staying paired. (This could be just coincidental BTW but just thought I would mention it).
At the moment it looks like it's only the Aqara ones. I've just re-paired one and put a new battery in in case that is the issue.
Just wondering if any one else is having issues.
Before people reply about zigbee channels etc. they have been working great for over 6 months now. I'm using channel 22 and nothing else is even close to this. My router has been changed to use channel 1 so there is no conflict there. ST hub turned off and hue bridge using ch 15.

no mine have been rock solid and I have been doing a ton of hub restore and rebooting working on other things.
what router devices are you using?
Any new zigbee devices added?

No new zigbee devices and I'm not sure what you mean by router devices.

router/repeater devices such as zigbee outlet plugs, or Xbee devices
How are the Xiaomi connecting to the hub?
directly or are they passing through router/repeater devices?
you can tell if they are going through repeaters by disconnecting/unplugging the repeater one at a time and seeing if any of the Xiaomi devices stop responding.
or get a Xbee device and scan your network

Thanks for the reply. I'm leaning to it being a battery issue as the one that would go inactive after 2 to 3 hours yesterday has been OK for 12 hours now.
We will see how it goes.

I can report the following Zigbee Routers not working as Xiaomi parent devices (I mostly have xiaomi temperature/pressure/humidity aqara sensors and two aqara motion sensors). When paired through these devices, xiaomi drop off the network for me:

  • 45857GE -- dimming wall switch
  • 45852GE -- dimming smart plug (at this point I'm expecting all GE zigbee routers to drop xiaomi)
  • Centralite 3210-L smart plug
  • Ledvance RT RGBW -- recessed color lights

But when joining through these devicese, xiaomi keeps connection

  • Sinopee [ TH1124ZB] thermostat
  • Ikea TRADFRI bulb E26 opal 1000lm
  • OSRAM/LIGHTIFY A19 RGBW -- recessed color light
  • OSRAM/LIGHTIFY RT Tunable White -- recessed tunable white light
2 Likes

Oh that's interesting! I don't have that same Trådfri bulb, but I do have one I recently moved off Hubitat so I could use it for an effect this Halloween with the Hue Bridge. The timing is about right, that when I removed that bulb from Hubitat, I've also been experiencing more frequent drops from my Xiaomi devices. I'll have to move it back to HE after Halloween and see if the Xiaomi devices stabilize again.

Good to know! The CentraLite 3210-L doesn't surprise me much since I think that whole series of CentraLite plugs is reported to be problematic. I wonder if anyone has tried the new "2018" ST outlet (probably Samjin) or anything in the newer CentraLite series to see how they work. I'd love to have some ZigBee plugs to strengthen my mesh without compromising the Xiaomi devices (though most I've seen do seem to stay paired to whatever device they paired through, often the hub since I originally did these very close to the hub--anyone else notice that?). I'm using XBees and the "environment sensor" device from this forum now, but I'd really like to not have fear of any powered ZigBee device...

Very interesting! Smart bulbs in general have a poor reputation for repeating in non-ZLL meshes, so I'm surprised that these work well for Xiaomi (or anything)! My Trådfri bulbs are on Hue, but I do have an A19 Osram RGBW--I wonder if it would also work. I'd actually really like to have that on Hue too, but I live in the US and they shipped with apparently ZHA 1.2 firmware that Osram no longer officially supports "downgrading" to the older ZLL firmware--I'm hoping ST can help me out with a special hub firmware I found in a reddit thread, but we'll see. (Osram also seem to have been implying they wouldn't support ZLL because they'd support ZigBee 3.0, without actually saying that they did at that time support 3.0 or naming any such controllers that it worked with--Hue didn't yet but does now, but d they still don't pair. Grrr. But not to derail this thread. :slight_smile: ) Glad the bulbs worked for this!

@lexoid I’m so glad someone else has found this. I had this happen on ST with the Ikea TRÅDFRI GU10s (have 10 of them). Back in the day I didn’t want this to happen, as the Xiaomi stayed connected without issue, but my bulbs were on a dumb switch, where family member kept turning them off. I’ve since changed this with Hubitat.

I also have several Osram B40’s but not sure if these could do the same. They’re currently on Hue, but if they helped, I’d certainly move them to the hub.

Can I ask what your method was for their pairing? I’d really like them to use these as repeaters, but I’m not sure if I’m accomplishing this. The issue I have is most do stay connected for a while, then an Xiaomi contact will drop, the buttons and motion sensors seem to stay connected, but an odd contact (not normally the same one) will just drop off.

Cheers

Thanks for reporting on all of those repeating devices! I've added them to my opening post for this thread.

@Royski I'm actually running on homeassistant, so my experience is not applicable. In homeassistant I've just modified the code to send ZDO mgmt_permit_joinin_req request to specific device (zigbee router) so only that device is opened for joining new devices.

Supposedly the "new device" should listen to the network and pick up a parent with the strongest signal, so you could try getting Xiaomy very close to Osram B40 and maybe moving both further away from any other routers & hub

1 Like

Reportedly Osrams are terrible repeaters (and generally most bulbs are said to be quite bad at it). Probably shouldn’t waste your time there. Quite interesting that the Trådfri seem to work well (at least with Xiaomi devices).

2 Likes

Thanks for that. When the next one drops (just a matter of time). I’ll try pairing again but whilst as close to them as I can get. Whilst on ST they did stick like glue to the TRÅDFRI, hopefully I can get them doing this again.

@humac, I am building my own sensor/modules. I and a few member has tested the module to route Xiaomi sensors since the module is a Zigbee router as well. The latest iteration come with battery backup feature to help the case when the main power is down.

I've noticed over the last couple of weeks that my original Xiaomi Contact Sensors are either going inactive or not reporting correctly. Is anyone else seeing strange things going on with these devices. I only have 3 of these and am happy to replace these with the Aqara version if they are more reliable.
BTW. I've replaced the batteries in case that was the issue.

1 Like

I always had issues with the original Xiaomi temperature sensors on HE. Originally they connected fine but after a couple days there would be no status updates. Recently i reset them and tried to re-pair but now they won't even pair correctly.

When I was on ST I had them working for years without issues

Today I finally migrated from ST to HE. I have a ton of Xiaomi sensors which is why I was originally developing the ST DHs.

We will see how they perform on HE...

2 Likes

If you are successful with a particular driver please post.

1 Like

Changing the driver wouldn't help, because the issues you are having are not related to the drivers.

Dropped connection issues are due to any of the following:

  • Weak mesh network connection
  • Network interference from nearby WiFi routers
  • Xiaomi / Aqara devices connecting through an incompatible repeater device instead of directly to the hub

This thread contains a wealth of information regarding all of these issues.

This is not an interference problem as I have no other issues with any of the other 30+ zigbee devices I have. Plus I have ensured that my WiFi channels are not overlapping with my Zigbee channel either.

I also tried pairing 2 different temperature sensors within 3 feet of the hub with the same result.

I am not sure if the Iris plugs are incompatible, as they are not listed in this this thread as either compatible or not. But either way I was close enough to the hub that this should not be an issue.

I had no issues with these for years on Smartthings.

I have also tried new batteries.

Basically the sensors are seen as "device" and I have to switch the driver to the proper one. But even after this reporting is not working and in the logs it says "null" when refreshing the device.

Edit: I just realized that the Centralite 3210-L was listed as not compatible as a repeater, was looking for Iris but forgot this is the same device. I guess its possible that despite the temperature sensor being so close to the hub that it was still being relayed through one of my Iris plugs.