[Deprecated] Xiaomi / Aqara ZigBee device drivers (possibly may no longer be maintained)

It does not change the sensor's sensitivity, but rather adds the user-entered offset to the value reported by the sensor. @bobbles's explanation is correct.

Ok thanks for explaining for that!

Thanks @veeceeoh, step 9 allowed me to add a couple of different types of Xiaomi devices that wouldn't finish Initializing.

1 Like

I have added few Xiaomi devices/sensors and most of them have worked fine. However, I do not know how will I use the cube and LIght switch. Could someone provide some instructions.

Any DH out there for the xiaomi wall plug?

@Smartsmartsmart reported over here that the SmartThings DTH code worked for him (but without the energy usage capability).

I am currently working on a SmartThings DTH for the new Xiaomi Aqara Vibration Sensor (which will in turn lead to one for Hubitat), but after that I'll see about adapting the SmartThings ZigBee outlet DTH to make a Hubitat-specific device driver. I just won't be able to test it myself.

I knew eventually you would get to it. I just got 4 of them this week. Let me know when your ready to test. I made my own driver (based off the smartthings driver) but prefer to you use what you guys come out with as its a "supported" driver.

You mean the beta DTH in the bspranger/Xiaomi thread? That would also be me, with help and input from a few ST users, and notably with help and some fantastically useful code from user oltman on GitHub.

As for the adapted Hubitat device drivers, "you guys" = just me. :wink:

1 Like

Sweet, thanks for that got it working like a charm!

That's me here.
I just tested it again and it worked, however, if I press the button on the outlet, it doesn't do anything.

Could you please tell me how you got it working? Which driver did you use?
I tried to use the ST driver but I am getting an error message while saving.

That would be great. I own one and it would be nice to have it working with Hubitat.

I will do the testing for you. Let me know when you are ready. :slight_smile:

I just used the one from here [OBSOLETE] Xiaomi Zigbee Outlet (Steps to Pair any Xiaomi Zigbee device!) - Community Created Device Types - SmartThings Community

What's it not doing for you?

I already have this one working though it does not report power usage.
I thought you got Aqara vibration sensor working which I am trying to get to work.

Oh sorry yeah I don't have that sensor.

Hi I am trying pairing the Original Xiaomi Door/Windows Sensor, but always show "Initializing"

image

So I trying to add Virtual Device, but the Status still "UNKNOWN" .

You should be able to follow the instructions listed below (posted by @veeceeoh) to do a manual pairing. The post is was written for the Smart Light Switch, but it worked for me with the Door/Window sensor. Also, if you haven't done so yet, first go and add its driver linked in the 1st post, and then do this.

1 Like

Would it be possible to pair Xiaomi hub with Hubitat? I would be nice to have it working with Hubitat as it can be used for announcements, sirens, night light etc.

Possible, yes. There is a user-contributed solution for SmartThings called Mi Connector:

However, it involves installing a server in Docker on a Raspberry Pi or Synology NAS, and then a SmartApp and DTHs in SmartThings. And it's currently in constant development.

With my plate already overflowing, I have no plans whatsoever to port that solution over to Hubitat, but maybe there's someone else interested...?

Did my "Special Pairing Instructions" that @saxnix quoted (thanks for that!) work for you?

IMPORTANT ANNOUNCEMENT - New versions of some Xiaomi devices incompatible with current device drivers

From an Athom Homey Community thread dedicated to Xiaomi devices, I have learned that there are at least three Xiaomi Aqara devices with a new revision which seem to have firmware changes that make them incompatible with the current SmartThings DTHs (device handlers).

Here's a list:

Device Model New Zigbee Model ID Old Zigbee Model ID
Aqara Button WXKG11LM lumi.remote.b1acn01 lumi.sensor_switch.aq2
Aqara Smart Light Switch - 1 Button WXKG03LM lumi.remote.b186acn01 lumi.sensor_86sw1lu or lumi.sensor_86sw1
Aqara Smart Light Switch - 2 Button WXKG02LM lumi.remote.b286acn01 lumi.sensor_86sw2Un or lumi.sensor_86sw2

NOTE: The devices with the New Zigbee Model ID are the new versions that don't work with the current device handlers.

An easy way to know that you've probably received one of the new versions of the above devices is that it will only pair as a generic "Device", instead of choosing the correct device driver.

To check the Zigbee Model ID, you should be able to view it while logged into your Hubitat hub when you view details about the device by clicking on it's name in the Devices page. Search for the "Data" row, near the bottom of the page, where you'll hopefully see something like this:

I don't have any of these new versions myself, and don't plan on purchasing more any time soon, so...

If any receives one of the above three models and it pairs as a "device" please post in this thread, and I'll explain how to get some log output which should hopefully help me to update the device driver to work correctly.

If you have a device with an Old Zigbee Model ID listed above, there's no need report back that they're working fine.

2 Likes