Xiaomi & Aqara Devices - Pairing & Keeping them connected

I have actually found these on Amazon which are 110V - 240V . Would you be able to do it if you found one in your mailbox.
https://www.amazon.com/Original-Detection-Overload-Protection-Control/dp/B0779B8GXS/ref=sr_1_1?ie=UTF8&qid=1537509062&sr=8-1&keywords=xiaomi+plug
https://www.amazon.com/Original-Detection-Overload-Protection-Control/dp/B0779B8GXS/ref=sr_1_2?ie=UTF8&qid=1537509084&sr=8-2&keywords=xiaomi+socket

These are wifi not zigbee.

They would connect to the xiaomi cloud. You would need a smart app to then pull data from xiaomi's cloud.

I believe someone has written one over at ST.

Ohhh. I didn't notice that. I own the ZigBee version.
Actually, there is a good news. I just copied Smarthings drivers as is and Hubitat found the Outlet. The only thing is the power consumption does not work though.

For me, Xiaomi sensors have proven very unreliable with Hubitat. The very same setup worked fine for 1.5 years with SmartThings.

With Hubitat, Xiaomi and Aqara door/window sensors, Xiaomi buttons and Xiaomi motion sensors are dropped off the network on a daily basis. Putting the hub into discovery mode and pushing the connect button a few times usually restores connectivity - until it's gone again.

  • I recently changed the ZigBee channel to one where interference with WiFi networks should be minimal (there are only ~ 10 WiFi network here anyway).
  • I added a ZigBee plug that should work as a repeater

Doesn't change anything.

On the other hand, my Hue motion sensors are staying connected.

Any ideas?

Thanks,
Jan

Yeah I am running into same problems. Spent 30 mins today trying to re pair one motion sensor :confused:

no issues with Xiaomi sensors get an Xbee sensor or a multi sensor from Iman
both work great as repeaters.
Lots of tips starting at the top of this thread.

1 Like

It's not the same setup. You changed the hub. If you have any ZigBee devices that act as repeaters, the Xiaomi devices may now be attempting to connect through them instead of directly to the hub.

The main likely reason for Xiaomi devices dropping their network connection - not rejoining the mesh after being booted for going past the hub/repeater's end device aging timeout period - is well known and documented:

In normal operation, the Hubitat hub (and SmartThings hub) allow Xiaomi devices connecting directly to the hub itself to remain connected. But there are factors that may make it difficult for Xiaomi devices to make their regular 50-60 minute check-ins every time, such as wireless signal strength and interference.

But the thing that seems to bugger up the ability of Xiaomi devices to remain connected the most is the presence of ZigBee repeating devices which have an end device aging timeout length that is shorter than 50-60 minutes. There's no way to know what that setting is on most repeater devices, it can only be discovered by testing repeating devices. There is a list of repeating-capable devices that work and don't work with Xiaomi devices in the very first post of this thread.

My guess is that you may have already had another repeating device (or devices) on your ZigBee mesh before you got the outlet you added. Any mains-powered ZigBee devices besides smart bulbs are most likely repeaters. As for the Osram outlet you added, I'd have to guess that it won't play well with Xiaomi devices, based on this post:

Remember in all of this that the problem lies squarely on the Xiaomi devices, in that they don't follow the normal ZigBee operation of re-joining the mesh when the coordinator(hub) or repeater requests them to. They probably don't do this because it isn't necessary when used with a Xiaomi-branded hub, which is required for use of their sensors, according to the manufacturer.

They don't have the same issue of not re-joining the network, and probably have a much shorter end device aging timeout length than Xiaomi devices. In other words, an apples and oranges comparison.

This is not related to the end device aging timeout length issue. Xiaomi devices are also notorious for being difficult to pair for some users.

Personally, I have over 30 Xiaomi devices connected on my Hubitat's ZigBee mesh which rarely drop their connections. Some of them connected via Xbee and other via one of Iman's multi-sensors, and I had to stop using a couple of repeating devices that just wouldn't allow the Xiaomi devices to remain connected. I will readily admit that I've had difficulty pairing a small number of them, but in all cases I was ultimately able to do so.

Bottom line - Xiaomi devices can work, but your mileage most definitely will vary.

3 Likes

That sux that these relies on a custom router for them to work. I have 81 zigbee devices and 30 are routers so no way to pair the xiaomi to the hub only. There isn't a way to force them to stay connected to a specific router is there?

Actually, Zigbee Pro 3.0 (aka Zigbee Pro 2016) router should respond to "device aging timeout" request from a client. With Zigbee 3.0 router, an end device an send device aging timeout request, the router can set this time out for this specific end device. Perhaps, this is the reason why some router work well with Xiaomi. They could be Zigbee Pro 3.0 compliance.

Thanks a lot for your elaborate reply. I'm sure what you explain makes a lot of sense. However, in my case, repeaters (initially) definitely had nothing to do with those Xiaomi devices dropping off the network - because there were no mains-powered devices joined to Hubitat at that time.

All mains-powered devices - bulbs and outlets - are connected to my Hue hub and I only joined one Osram outlet to Hubitat to see if its presence would improve the situation - which it didnt't, but I'm not sure if it made things worse either.

I'm considering buying an XBee3 as a repeater. Would definitely be a good investment if it makes Xiaomi sensors work reliably, considering how expensive all the other brands are.

Some devices even if they function fine can cause interfence which can knock other devices offline. Using either of the devices I mentioned you might help you detect interference.

Just added a second Xiaomi contact sensor today. I really like those little guys. They're temperamental and I appreciate your info, that @iharyadi 's sensor works to repeat them. Good info since I still don't have an Xbee.

Strange thing though, when I added the second contact sensor, the original, which was functioning fine just minutes before, lost connection the hub. Both are Aqara. Tried the usual press the pair button once deal, which has always worked before, but this time it just wouldn't reconnect. Had to delete my first contact sensor and re-pair it. Meanwhile, the new one continued to work the entire time before and after. Odd little ducks, they are.

Just a thought but if you are going to buy mother load of Xiaomi sensors and worry about them joining bad repeaters. Buy a second Hubitat hub and you can connect up to 32 sensors directly to it. Distance issue then buy another xbee and add to it for range.

Hi I pairing my WXKG02LM first time today, so work well around one hour, after stooped to work I did again 3 times, I have on same room an Iris 3210-L repeater, any tip to fix it?

do not use Iris 3210 as a repeater for Xiaomi devices unlug it and then join your WXKG02LM to the Hub.

1 Like

I Have an 3210 because I need to my KOF works, I will unplug the 3210 and make more tests on week.

Thank you for your tip.

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