[OBSOLETE] Xiaomi Sensors and Button (beta)

No just login to your smart hub on https://graph.api.smartthings.com/login/auth
Then go to your hub events. Then open SmartThings app on the phone click + to add device then hold pair button on sensor for like 4 seconds once starts flashing let go and refresh the log. You should see it there

Thanks! I manually added using brumster’s tip and it’s now connected!

Anyone showing a battery % with the latest motion sensor DH? I’ve paired mine 5 days ago.

There’s also a dirt cheap waterleak sensor and a curtain motor by Aqara

Wondering if it is possible to add them as things? :wink:

https://world.tmall.com/item/557879681143.htm
https://world.tmall.com/item/555758597354.htm

How did you pair your door/window sensor? Did you manually add the device with its Device/Network ID?

Mine showed 3% with a brand new battery, and then went to 0% moments after, even though the battery is brand new (over 3V), and the sensor itself keeps working. I tried with a second battery, and it did the same thing (started out at 3%, then 0%…)/

1 Like

I’ve just recently got my first two Aqara sensors.
One was added via the Catchall and it’s working fine, although reports 1% battery (are they often supplied with EOL batteries or is the reading wrong?)

The other one I’ve tried three times now and haven’t had any updates once added. When I change the DT to the Xiaomi Motion Sensor is reports in with “Motion” but then doesn’t change from that. If I Reset Motion it reports “No Motion” and then doesn’t change. After a few hours it appears as unavailable.

Has anyone else seen this behaviour?

Hi,

New user here. I have bought a Xiaomi button (with no other Xiaomi kit), as I want to switch some devices on and off. But I can’t figure out how to pair it. https://www.gearbest.com/alarm-systems/pp_610095.html?utm_source=email_sys&utm_medium=email&utm_campaign=shipping

I’ve used the smartthings app to “add a thing”, then done various combinations of pressing and holding with the button. But nothing happens.

Can anyone please point me in the right direction?

Many thanks

I don’t believe this device is covered by the device handler of @a4refillpad

You want to follow these instructions.

You’re looking in the logs (under My Hub, Event List) for something labelled “Catchall” followed by a string of numbers and letters.
Mine was:
catchall: 0104 0000 01 01 0100 00 B014 00 04 115F 0A 01 01FFF4...
The key bit here is B014, that is the group of 4 characters after the 0100 00
Create a new Device from the My Devices page with that value as the Network ID, and the correct Device Type Handler, and hopefully it’ll work.

I’ve got a 50% success rate at the moment with my motion sensors.

@JcMarin, is it not https://github.com/a4refillpad/Xiaomi/blob/master/devicetypes/a4refillpad/xiaomi-zigbee-button.src/xiaomi-zigbee-button.groovy ← this?

EDIT: Ah, no, you’re right. That code is for the round button, not the newer wall button. I’m very interested in getting those working too.

Yeah I ordered 2 from ebay after reading these posts, still waiting for them to arrived (they are cheapest button I have found @ ~ $7)

The one @madCow_uk posted is also interesting looking, not sure it will work with the existing DH though, it also looks like it has 2 rockers/push buttons?

Yeah, it’s a twin wall switch. They appear to do three versions: 1 battery powered ‘stick-on’ version, and two which are designed to replace an existing switch:
1 Live and Neutral (switching up to 2.5KW), 1 Live only (only switches 800W) - a UK-compliant Zigbee switch with no Neutral requirement? Surely not!

NB: The translations I’ve seen refer to “Fire and Zero wire”, which is my new favourite phrase. :grin:

https://www.aliexpress.com/item/In-Stock-2016-Xiaomi-Smart-home-Aqara-Smart-Light-Control-ZiGBee-Wireless-Key-and-Wall-Switch/32779332395.html

Oh, they also do 1Gang ones

Using what DTH? Did you get them working? was your message in reply to someone else?

I’d love to get those in the house and working… let us know… cheers

I tested the Aqara body sensor DH and I cannot get luminance value. I see the following error:

f2c58735-6705-46f2-ab70-a2b4f1f3e620 12:35:49 AM: error org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object ‘Aqara body sensor Light was 24.0’ with class ‘java.lang.String’ to class ‘java.util.Map’ @ line 110
f2c58735-6705-46f2-ab70-a2b4f1f3e620 12:35:49 AM: debug Aqara body sensor Parsing: illuminance: 24

Anybody has this error too?

I had the same issue, but it was because I forgot when adding the device i didn’t put the hub.

Hey all,

I am trying to fix the battery % reporting issue with the Xiaomi Door/Window sensor device handler, and I need your help. Reply to me either on this thread or PM me. For now, I am only targeting to fix the Door/Window sensor. If I can get it, I will move on to other sensors.

I need the following information especially from users who thinks their device is reporting battery % correctly:

  • On the IDE website, go to “My Devices”, and click on your Window/Door Sensor.

  • Scroll down to Events, and hit List Events

  • Scroll down until you find the first battery event, this is the last battery info reported by your sensor. Click on this event’s timestamp on the left side of the table

  • Please report to me the following from the event details page:

  1. “value”. It is the second from the last on that page. This is the decoded value of your battery percentage

  2. “rawDescription”. This is the fifth item from the bottom of the page. This line will start with “cathcall”, and should be a long string of Hex numbers.

Thanks in advance! I hope I can contribute to the community.

Haven’t got them yet. Somewhere in the North China ocean at the moment, I imagine!

I’m hoping they’ll just register as switches. It’s difficult to tell, but I think they’re just single action momentary rather than on/off. If they work in a wall socket without Neutral however, that’s very exciting.

My misbehaving sensor has now reported in with a battery level (6%) but is still not tracking motion. Worth another hard reset?

It’s definitely linked to the right hub.

We have the opposite behavior. I have motion, but no battery or luminance. Did you checked the live logging to check if you are receiving any info from motion, or any error?

I don’t believe the battery level is right.
Nothing in the logs. It’s definitely not reporting movement.
I’m not seeing any reference to Luminance in the DTH I’m using (this one from @a4refillpad) - are you using a different one?