[OBSOLETE] Original & Aqara Xiaomi Zigbee Sensors (contact, temp, motion, button, outlet, leak, etc)

Hi @veeceeoh

I was trying to do a clean up in my list of DH’s in IDE and got a little confused:
I use a 1.3.1b version of the xiaomi-aqara-button.src and all is good, but if i check the available DH on github, the latest version says 1.2.1 (edited 15 Jun 2018) ?

Is there a typo somewhere? Or do i just have some BETA version installed…? Which one is the newest DH? :slight_smile:
Thanks…

I think the latest ST update prevents these from being added. Either with the beta DH or the catchall method, I cannot get two sensor attached which once worked.

1 Like

Have you tried a fresh battery?

1 Like

Does anyone know if the Xiaomi devices will repeat through the new Smartthings outlet (GP-U999SJVLDAA)? I’m replacing all of my previous gen ( F-OUT-US-2) Smartthings outlets with Tradfri outlets, but there are two spots where I need energy monitoring.

Alternatively, does anyone think that it could be possible to disable the repeating function of the F-OUT-US-2? I have six of these and it would be great to keep two for energy monitoring, but I don’t want them to repeat. i wonder if I could disassemble them and physically disable the repeating ability without disturbing anything else.

Have you tried the classic app. Only way my v3 hub find it

The new Aqara Button DTH is still in beta, so it’s not found in the normal location in the GitHub bspranger repository. It’s still an active “Pull Request”, with comments and notes found here:

The latest version of the beta is v1.3.5b, which can be directly copied from here.

I am working on another update that is intended bring compatibility with the next Hub firmware update, v25.x. If all goes well it may even expand on the functionality of the DTH because more hardware features will be accessible.


Can you share more details:

Which ST update?
Which DTH are you using?
Which device / sensor?


Sorry, this is not possible. Also, I don’t have any information as to whether the new Smartthings outlet (GP-U999SJVLDAA) will work well with Xiaomi / Aqara devices.

1 Like

Xiaomi Aqara Temperature Humidity Sensor

WSDCGQ11LM

ID: 2016DP6443

This is with a Gen 2 hub.

Firmware Version: 000.024.00020

Hardware Version: hub v2, US customer Rev E

Thank you for looking into this. I have 6 other of the same sensors attached. They were a pain, but I can’t get these last two attached.

Hello all. Picked up the motion sensor the other day, i think i managed to pair it but its ciming up as a “thing”. I renamed it but all it says it “please wait”

I must have done something wrong?

Did you install the device type handler for it? Once it pairs and you rename it, you will likely need to log into IDE and assign the correct device type.

Thanks. Yeah I added the device handler first
Do I have to then go to the device and do something?

No, you don’t need to do anything else to the device. You need to log into the IDE portal (here:IDE Login, select your location/hub, go to the “My Devices” tab, select the motion sensor, scroll to the bottom and select edit, click the dropdown that says “type” and select the device type that matches the device handler you’ve installed (should be “Xiaomi Aqara Motion Sensor”), then click the update button at the bottom of the page.

This FAQ might be helpful: https://community.smartthings.com/t/faq-an-overview-of-using-custom-code-in-smartthings-smartthings-classic/16772

1 Like

Yeah when I said device I meant to say device handler.
Thanks for the help. :).

Ok managed to go in and change it to motion sensor, all im getting now is ST saying “motion” next to this device in the app. Nothing is triggering it

Okay, let’s start over. A few questions so I can even begin to help:

  • What’s the model of the motion sensor? There are two models, so that’s important to know.

  • Which DTH code did you add to your hub’s Groovy IDE?

  • To check whether it paired properly, can you post a screenshot from the motion sensor’s device details page in the IDE? Log into IDE, click on My Devices at the top, then click on the name of the motion sensor (in the “Display Name” column), and then look for the section row labeled “Data:”. Here’s what it looks like for one of my Aqara Motion Sensors:

  • In that same device details page, you should also see information in the “Current States” section row. A screenshot of that could be helpful.

  • Finally, in the SmartThings Classic mobile app (not the new “Samsung Connect” mobile app), change to the “My Home” tab, select your motion sensor to view it, and press the “Reset Motion” app tile. Next in IDE, click on Live Logging and then walk in front of the motion sensor to activate the motion detected message. Do you see any log output from the motion sensor? If yes, please copy and paste it in a post here.

Thank you.

Thanks. Ok ive removed and and im now trying to re pair it again. not easy.
After i do that i’ll check back in ( if i ever re pair it again ) :slight_smile:

Managed to sort it out mate. Thanks alot though

1 Like

[UPDATE] Xiaomi Smart Plug DTH v1.1

(For Xiaomi’s ZigBee Outlet model ZNCZ02LM)

This release adds power / energy metering support, with all thanks and credit going to GitHub user @mike-debney.

The updated DTH code can be copied directly from here . Please note that I have not been able to test the new code changes because I do not own a Xiaomi Smart Plug myself. Any feedback from Xiaomi Smart Plug users would be greatly appreciated!

Changes :

  • added parsing of wattage power load messages from the outlet
  • added support to create power load events for use in SmartApps
  • added parsing of wattage power metering messages from the outlet
  • added support to create power metering events for use in SmartApps
  • added device power and energy meter value display tiles

Screenshot

1 Like

Can I ask a real noob question. Have a aqara neutral single wired switch and johndoyle is working fine but temp doesn’t update and new connect app doesn’t show on or off. I have changed the DH to zigbee switch so the light on off works from front page but no temp. Now I would like the temp but prefer the on/off state working better. Can I modify the ZigBee switch code to show temp?

Instead, try adding ocfDeviceType: "oic.d.switch" and genericHandler: "Zigbee" to the definition() line in John Doyle’s DTH:

In other words, change line 15 from

definition (name: "Xiaomi Zigbee Mains Toggle Switch", namespace: "johndoyle", author: "John Doyle") {

to

definition (name: "Xiaomi Zigbee Mains Toggle Switch", namespace: "johndoyle", author: "John Doyle", ocfDeviceType: "oic.d.switch", genericHandler: "Zigbee") {

The ocfDeviceType definition is used by the new SmartThings Samsung Connect mobile app, but unfortunately SmartThings has not provided any documentation on how to integrate it into custom DTHs yet.

As for genericHandler, this is something very new with absolutely no explanations, but it has been added to SmartThings’ official ZigBee-based device DTHs so it’s worth a try.

Did t work I’m afraid. I’ll stick with the normal ZigBee switch. Thanks any way