Xiaomi & Aqara Devices - Pairing & Keeping them connected

That is very interesting. Currently my Hubitat Zigbee channel is set to 26 and SmartThings to 15. I don’t know what my SmartThings’ Zigbee channel was previously when I had 100% success with Xiaomi devices remaining connected because I’ve power cycled it several times since installing my Hubitat, and as I understand it the ST hub will choose a different channel from any used by other nearby Zigbee coordinators (hubs).

When you changed your Hubitat to channel 20, did you power cycle your SmartThings hub so it would select a different channel, or are they now both on the same channel?

My Hubitat is on channel 12. So what’s the procedure for changing the channel? Just change it in hubitat and wait for the the devices to find the hub again?

From the thread How to change Zigbee channel?:

I’d also suggest searching the SmartThings forums for threads on how to best choose non-conflicting channels between Zigbee and 2.4gHz Wi-Fi.

I just found out one of my Ubiquiti AP that is not too far away from the Hubitat is using channel 1. Just moved it to channel 11 now to see if that will help.

I haven’t messed around with Zigbee channels at all. Still on 26, but devices that were a breeze to pair last week from 20ft away, are now not pairing 1-inch from the stick. Either they don’t get found or they get stuck in initializing for 30 minutes before I give up.

What was a cakewalk is now turning into the walking dead. Me walking “dead” Xiaomi devices to the hub to no avail.

Some further information from a quick search:

SmartThings brand Zigbee devices don't seem to work well on higher channels.

Zigbee channels 11 to 22 occupy the same frequencies as 2.4GHz WiFi channels 1, 6, and 11:

(Information / image credit: ZigBee and WiFi Coexistence, by Joel Crane on MetaGeek Support)

Also from part two of that same article by Joel Crane, the "sideband lobes" of each WiFi channel need to be considered if your WiFi and Zigbee radios are in close proximity. And... if you are using multiple 2.4GHz WiFi access points in your home on different channels, then the Zigbee channel preferably should be outside the channels used by the APs - which is only possible if you're using two neighboring non-overlapping 2.4GHz WiFi channels (1&6 or 6&11).

Based on all of this, I'm going to need to move away from Zigbee channel 26 for my Hubitat, because I'll be moving more non-Xiaomi Zigbee devices over soon. I only have one WiFi router, centrally located in the same room with my ST and Hubitat hubs in my relatively home. So after checking what channels my neighbors seem to be using I will either set my WiFi router's 2.4GHz WiFi radio to permanently use channel 1 and make sure my ST and Hubitat hubs are on a Zigbee channel between 19-24 or set my 2.4GHz WiFi to channel 11 and Zigbee channels between 11-16.

2 Likes

Great info. I have 3 Ubiquiti APs now all running on channel 11 and Hubitat is on 12 so they should be far enough apart that interference shouldn’t be an issue (I hope). I still have the ST HUB on channel 20. Ultimately, I would like to turn off the zigbee radio for the ST HUB too but I can’t for now. Still have my Spruce sprinkler system that I can’t port over to Hubitat yet.

Interesting info. My Xiaomi leak sensor has been staying connected, no problem. I’m using Zigbee channel 13 which was chosen for me when I setup Hubitat. I love the irony that channel 13 is working perfectly. I’m going to go knock on some unfinished wood now!

Oh boy, and it just gets more complicated.

So my WiFi router is a NETGEAR dual-band R6400, but if the 2.4GHz WiFi radio is set for its high speed mode (up to 450Mbps) then it actually needs two 20MHz bands, which requires two channels - primary and secondary. For my NETGEAR router there are preset primary and secondary channel pairs that can’t be changed. So for example, if I set the 2.4GHz WiFi radio channel to 11, then the secondary channel is 7. Luckily I don’t have any additional APs, so after checking the channels used by neighbors, here’s what I am going to try:

  • 2.4GHz WiFi radio set to primary channel 11 (and secondary channel 7) because my nearest neighbors are using channel 6 and more distant neighbors using channel 1.
  • SmartThings Hub Zigbee set to channel 15 (leaving as is because I’m moving all Zigbee off anyhow)
  • Hubitat Zigbee set to channel 13 (which should be totally clear of my 2.4GHz WiFi radio channels 11 & 7, and also neighbors using channel 6, but with no idea whether their secondary channels - if used - were shown in the utility I used)

So it seems I’m going to go with @SmartHomePrimer’s “lucky” channel 13 and will report back next week as to how it goes.

1 Like

no both Hubitat and SmartThings are now on the same channel (20) I believe to get SmartThings to change channel you have to to do a full hard reset (little red push button on hub) but I have not done that.
I believe both hubs simply choose which ever channel they see as having the least noise at the time when you first setup the hub. They do not auto change after.
but that doesn’t mean all different devices will work with that channel from what I am seeing.

on a side note I am having some luck with another repeater (with the Xiaomi) the SYLVANIA plug or north of the wall (Canada) sylvania plug for a much cheaper and easier way to add a repeater. But it has only been 2 days so far with out issues. and no doubt about the UL certificatrion.

I also am noticing some devices will not re-pair to a different repeater or back to the hub if the original repeater it paired through fails or drops the device . Running a test with my SmartThings Arrival zigbee sensor to confirm.
So basically depending on the device just throwing up more repeaters will not extend the range of a device you have to make sure you pair through the repeater at the outer most range that you want to use.
again I do have devices that do re pair like the SmartThings door sensors but Arrival sensors do not appear to (will confirm in a couple of days) nor does Xiaomi .

note: if changing zigbee channels save a back up of your hub first as it can mess up your zigbee option and cause you to do a full zigbee reset and have to re-pair all of your zigbee devices. But instead if it does just fail back over to your saved backup and then you do not have to re-pair all your zigbee device.

I have not tested all the channels to see which work better so far only 20,21,25,26 but maybe 13 is the lucky one it all really depends on what devices you have

1 Like

Ch. 18 works fine with my original round buttons.

:rofl:

Thanks again for all the detailed reports on your continuing tests to find a suitable repeater for all your Zigbee devices.

I looked through the customer reviews on the SYLVANIA plug of Amazon’s (South of Wall) site, and saw this one interesting comment from Jan 8 2018:

There are two models of this device; the 72922 and the 72922-A. If you receive a 72922 , it will readily be recognized as a Sylvania Lightify outlet. If you receive a 72922-A, depending upon how “smart” your hub is; you may receive a pairing error. In my case, I have a Wink 2 Hub. Pairing a model 72922-A as a Lightify outlet resulted in a pairing error, but when I checked the hub’s Home page, it was registered as a “Generic Zigbee Light Bulb.”

Do you know which model you have, and also how easily did it pair?

Indeed, and the only information I’ve found on so far on best or better choices is - as I mentioned above - higher channels don’t work well with SmartThings brand Zigbee devices, and generally channel 26 is not a good choice as some devices just won’t work with it.

Speaking of channel choices, when I got home, 8 hours after changing my Hubitat’s Zigbee channel to 13, I found that none of my Zigbee devices seemed to have changed over to the new channel.

I got tired of waiting, and started with the least invasive method of getting them reconnected. My Sengled Classic smart bulbs just needed me to press the configure command button in the Hubitat device details page for each of them, and then they were working fine.

However, for all my Xiaomi devices, I found that short-pressing their reset button to get them reconnected only worked with about 1/3 of them.

For the others, the LED flash sequence on short-press of the reset button told me that they had lost their connection. I had to put the Hubitat into Discover Devices mode and then long-press the reset button (same as what’s done to pair them). Keeping either the Log or Zigbee Log window open helped for me to know whether they had reconnected.

For most of those devices, they were reconnected on the first long-press of reset button, but there were a few devices that took a number of attempts to get recognized again, the worst ones being my 2-button Aqara Wireless Smart Switches (model WXKG02LM). They weren’t easy to pair in the first place, so no surprise there.

So still disconnecting with all my wifi AP on channel 11 and zigbee on 12. I changed the zigbee channel to 12 this morning and so far the two Xiaomi sensors and three other devices found the HUB. Wonder how long before everyone else join the party.

Try Zigbee channel 13 and let everyone know how it goes.

If you’re not keen on my “lucky” 13 theory :wink:
Here’s a discussion along with some sensible advice from @JDRoberts

so I made the change to channel 13 3 hours ago and still no device is reporting in. How long does it usually take?

It can take up to 24 hours or longer depending on the device. It usually should be less than 60 minutes for most devices depending on their reporting frequency.

I would NOT recommend disabling and re-enabling Zigbee Radio nor rebooting immediately after changing the channel. You need to just give it time to update all the devices that the channel has changed.

2 Likes

Thanks @patrick. I changed the channel back to 12 and a lot of the devices started reporting immediately.

Will update my previous post to reflect your advice.

1 Like

Just received my second Xiaomi Aqara leak sensor today. I can confirm that once again, pairing was absolutely no problem using the following sequence:

  1. Hold pairing button for 10 seconds and release
  2. Wait 3 seconds, then double short-press pairing button
  • Sensor shows up with “Initializing”
  1. Wait 3 more seconds and double short-press paring button again
  • Sensor successfully paired and also automatically selected the Xiaomi driver (already installed).
  1. Saved and tested. Wet detected immediately.

I’m going to test this one in the basement to see if it drops off. It’s actually not far from the hub, maybe 25 linear feet.

2 Likes

Download the Hubitat app