Xiaomi & Aqara Devices - Pairing & Keeping them connected

This is exactly the behavior I was experiencing before I applied Hub 698 update. Now, it’s been connected and still working 17 hours later.

I assume you’re running on the new .698 update, so the other thing I did that may have help was to remove all of my Xiaomi devices and Reset the ZigBee Stick (in Settings > Zigbee Information). If you do the same just be aware that all Zigbee devices will lose their connection, and need to be rejoined (though they will still be in the Devices list, so that should just involve using the “Discover Devices” mode and putting the devices in pairing mode).

That is the “status report” and your button’s voltage data is present. I’ve boldfaced it. It’s big-endian so the value is 0BEC, which is equal to 3052, divided by 1000 to give us 3.052 Volts.

That message is another kind of announcement message. ZigBee Cluster 0000 is for “Basic” information about the device, and Attribute ID 0005 of cluster 0000 is for the Model Identifier.

If you take the value 126C756D692E73656E736F725F737769746368 and convert it to ASCII text, it’s lumi.sensor_switch.

Don’t worry about sending more of the read attr - raw: messages for the button, as I’ve already got all of that from mine. Really what I’d like to help get working for you is the connection, seeing as my button is staying connect while your is not for some reason.

By they way, I’ve posted all of my findings on the button over here, and would love any input on what you think would be a good way to set up the device drivers’ output of the messages received from the button.

Thanks again for sharing feedback!

1 Like

I’m not convinced of that. I’ve seen long periods of no temp/humidity reports from the two that I have. Also, just last night, with the two of them side by side (for testing the new Hub 698 update) the log showed that they did not track their reporting identically.

These are not scientific instruments, I figure, and each one will report a little differently from the next (though generally they are within +/- 1 or 2 degrees C and +/- 1 to 3 percent humidity of each other).

You’re right. 3 hours later, it sent another temp/humidity update.

I would have to guess that the mesh signal strength of the USB-based ZigBee radio that Hubitat chose to use with their hub is perhaps not as strong as the ZigBee radio inside ST’s v2 hub. I have read a couple of user reports which seem to indicate this. There are a lot of factors that affect signal strength, of course, so it’s not necessarily just as simple as that.

Certainly the general advice here would be to consider adding mains-powered ZigBee devices that act as routers (repeaters) such as the Iris SmartPlug mentioned by @Tony, some posts above. However on SmartThings forum, there have been quite a few reports of repeaters not working well with Xiaomi devices. That still needs to be tested for the Hubitat, and we’ve only just possibly seen an improvement in the devices staying connected as of yesterday - so some time and more testing is needed to be surer about it all.

1 Like

After another hour it again became unresponsive, so I unplugged the Iris plug it was routed through and waited a bit. I did not push the pairing button on the Xiaomi; so its only possible route to the Hubitat was a direct connection. After a few minutes I pressed the button and sure enough it produced a log entry-- it had reconnected to the hub on its own. And within an hour or so after that I saw the battery report-type entry logged.

I expect it will stay paired (I am indeed on .698); if so this will be consistent with what I have experienced with my other 5 buttons that have been paired to SmartThings. They stay paired, but only if you ensure they are not initially paired through Zigbee routers. Luckily they seem to have decent range (at least I haven’t had any problems in the locations I’ve used them in my house).

I’ll keep an eye on it and post an update if it loses its connection.

1 Like

Thanks. I upgraded my hub to latest, removed the sensor, updated the driver and repaired the sensor again. Fingers crossed it stays connected. Will let you know!

I have read this as well, and it’s definitely important information to know when working with Xiaomi products and Zigbee routers. Thanks.

@veeceeoh unfortunately mine dropped shortly after pairing it. Its the round temp/humidity sensor and it’s sitting on top of the cabinet which contains the Hubitat hub.

The round button I paired yesterday afternoon is still sending hourly logs. Based on what I’ve seen, if there are any Iris repeaters nearby, even if the Xiaomi device is closer to the Hubitat it will likely wind up routing through one of them instead. I saw this with the SmartThings hub as well; I had an Iris plug located in the same cabinet as the ST hub and when I mapped the mesh it wound up with 4 child devices and the ST hub (inches away) had none.

Hi Keith, I got my hub plugged in and registered. I have not done anymore yet.

I have a separate Vlan for my IOT stuff and I think I want my hubitat on the 2nd floor and my ST in the basement to get better zigbee network coverage.

Therefore I need to program the cheap netgear device to support my vlan. Trouble is it only supports vlans 1-5 or something silly and I am using other vlans.

Once I get my LAN figured out I will start to connect my hubitat to my ST and put some Xiaomi sensors on the hubitat.


Welcome. Glad you’re here Brian.

Thanks again for the Aqara Leak Sensor DH. Once again, just as I did with ST, I pressed the pairing button for 10 second and it appeared in Hubitat. It showed “Initializing” and didn’t seem to be advancing, so I short pressed it and it completed discovery. Just for good measure, I short pressed it once more and then saved.

1 Like

Just re-posting with a little more detail what I posted on SmartThings forum in case no one reads it there.

These are working in Hubitat as ZigBee router/repeater for Xiaomi Aqara water and motion sensors

Orvibo ZigBee Smart Outlet 120VAC/15A

Model#: Cab-T10K2ZW-1UO



This is the only Zigbee router/repeater I have installed in Hubitat so far to test and these are new I have not tested them with SmartThings but I suspect they will work for it as well.

I bought the outlet to help extend the range for my son’s SmartThings Arrival sensor V3 Zigbee key fob and I was also concerned with the limited range of my Xiaomi sensors (I needed them to go just a little bit farther)

I installed the Orvibo Outlet outside the front door in place of the Christmas lights plug which is also hardwired to a switch inside so I can kill power to it easily and test it.

for reference

  • the Xiaomi Aqara motion sensors had been previously paired directly to the Hub but then remove and paired again through the Orvibo outlet
  • the Xiaomi Aqara water sensors were brand new never paired before until going through the Orvibo outlet
  • when pairing through the Orvibo outlet none of the devices were recognized they showed up as “devices” so I had to change their DH type.

I have Orvibo ZigBee Smart Outlet working as a router with Xiaomi devices (2 Aqara motion and 4 Aqara water sensors) I am sure there are other types/brands that will work unlikely Orvibo is the only one.
They worked for over 3 days no problems I killed the power to the Orvibo for 24 hours to see how the Xiaomi devices react.
As expected the Xiaomi devices stopped reading immediately.

after 24 hrs with no power to the Orvibo ZigBee Smart Outlet

  • the Xiaomi Aqara motion sensors 1 automatically re-paired by it’s self directly to the hub after 7.5 hours the other did not
  • none of the Xiaomi Aqara water sensor re-paired

After I re-applied power within 5 minutes all of the sensors (including the motion) that stayed offline automatically started reading again. (no pressing the pairing button)

I am going to remove all of the Xiaomi Aqara sensors then remove power from the Orvibo outlet again and add a GE ZigBee In-Wall Smart Switch 45856GE.
then try to pair all of the Xiaomi Aqara sensors through GE ZigBee In-Wall Smart Switch 45856GE and see how it does.
I will leave everything powered on and connected for at least 3-4 days.

1 Like

Thanks for the detailed report. I checked on Orvibo’s smart outlet and their in-wall switch and dimmer, and see that they’re out of stock with most sellers. Bang Good was selling some at a great low price, and it makes me wonder if there’s going to be a stock refresh of an updated version of those devices. Also, I can’t find any verification that any of Orvibo’s 120VAC in-wall products are UL certified, and although it appears they claim some of their plug-in devices are UL certified, at least one of their devices was listed as banned by the European Commission.

I did not notice that
I do not see anything on the packaging
Which is strange as it is a very well laid out manual and packaging. Nothing about the device or packaging feels like some of the cheap stuff you buy out of China. No bad grammar and the device feels very well built better than alot I have bought from the local Homedepot.
I have sent off an email to them asking about the UL and CSA standards we will see what they say.

Yikes! Be cautious of AC powered items that may not be safely wired or are built with plastics that may not have the right additives to limit the propagation of smoke and flames.

you mean like the CSA and UL approved Samsung and Apple batteries?

I wouldn’t cry fire just because they haven’t finished their paperwork

You could be denied house insurance claims if you used non-certified devices and they caused a fire.

Just advice, that’s all.

When I used to work for a graphic arts manufacturer, we had a prototype digital printer from another manufacturer that had no CSA certification. Now, I’m not going to mention who the manufacturer was, but it was a very well known brand. Anyway, this new model of printer was in such demand, we couldn’t get a unit for an upcoming trade show. So we tried to get the prototype CSA approved. The inspector tested the plastic housing and it violently smoked and caught fire immediately. Suffices to say, we did not get that CSA approval, and I learned something about approved and non-approved plastic that day.

1 Like

Orvibo returned my email and they said they did have UL certification.
(for the record in case no one bothers to read the banned item was due to the shape of one of it’s European wall plugs)
Strange with all of the products specs so well documented they didn’t update the website with UL certification.
To bad it does not have CSA certification as that is much easier to check.
Overall I was impressed with the build quality and packaging of the product it does not feel cheap at all.
I mentioned to them they might want to update their website info.

Anyway back on track I was finally able to get my GE ZigBee In-Wall Smart Switch 45856GE paired to Hubitat but I had to change the Zigbee channel from the default of 21 to 25. I tried all day and it would not even see the switch on channel 21 but with 25 it saw it immediately.
I have routed 7 water sensors and 3 motion sensors through it.
I killed the power for 2-3 minutes to the 45856GE and they all stop reading and then reappiled the power and they all came back (to confirm they were routed through the switch).
Now I will leave them powered on for 3-4 days and see if any drop off.
One thing is when I paired the Xiaomi devices through the 45856GE switch all of the Xiaomi devices were correctly recognized where as with the Orvibo they were not (I had to change the DH manually).