[OBSOLETE] Xiaomi Sensors and Button (beta)

I had removed all my Google Home devices then added them back in, in order for the cast-web SmartApp to recognize a new device in that collection. I don’t know if that would have anything to do with it.

Update: it looks like they came back when I was checking one of the door sensors. There may be some intermittent connectivity issues in general with these devices.

I just ordered the original round one. Should have it soon.

I had the same use case. Using CoRE, I created TWO rules that take the state of the light into account. One rule turns it on if it’s off, and the other one turns it off if it’s already on.

Now how would you go about that?

Try this SmartApp: [BETA] Advanced Button Controller (ABC)

I had the same issue and this SmartApp checks the state of the light (on or off) to toggle.

I have run into a problem from Github. If you look at the screenshot you will see the DTH for the button controller is in GREEN. When I click on the update and select it and publish, you will see at the top I get errors. I installed from the code, as trying to install from the repository also gave errors. Let me know what I have to do to get Github working.

@ArstenA Hi! I really like your DH:s, but in the Xiaomi Aqara Door/Window Sensor DH the manual open/close override doesn’t work for me. If I switch to a4refillpads DH that function works instantly.

I see that some of you are having a success with these sensors whether they are Temp/Hum, buttons, open/close…this is my opinion and my opinion only, these are crap. If you are thinking about purchasing these you are just rolling the dice. You have a 50/50 chance of getting these to work for a period of time. I have purchased new and old versions of a number of these sensors and you will get them to work more than likely but eventually you will be repairing them. I had round ones work for weeks and then finally drop off. I have had squares working for weeks and then eventually fall off. I have used different DTH and even made my own. Yep they pair for a few weeks and then just fall off. I think a kot of you have gone through this and continue to try to get them to work but again they drop off. I have no other device that does this whether they are zwave or Zigbee. For some reason these are really dependent on your environment unlike any other device, Dont’t know why but they just are. Again if you are considering them…Roll the dice! Maybe you will get them to work but more than likely than not…you will be hitting that button on the device to pair again.

My experience is more 15/85. Love the price, but I’m sure glad I call this a hobby. Many thanks to @a4refillpad and @ArstenA for plugging away at it!

Never had an issue over 8 month and i haved try all of them, except for battery reporting that is now fix !!!

Hi guys,
I’ve got 2 Aqara temp sensors which I managed to pair them ok in ST, in IDE I tried 3 different DH but none of them are working. Shows 0 degree in ST and nothing to battery or humidity.
In live logging I have this:

da56083d-139a-4f38-959d-a0b800583e1a 19:24:12: error java.lang.NullPointerException
da56083d-139a-4f38-959d-a0b800583e1a 19:24:12: debug Xiaomi Aqara Temp Sensor Indoor Parse returned: Xiaomi Aqara Temp Sensor Indoor model is --lumi.weather
da56083d-139a-4f38-959d-a0b800583e1a 19:24:12: debug Xiaomi Aqara Temp Sensor Indoor Evencreated: model, --lumi.weather, null
da56083d-139a-4f38-959d-a0b800583e1a 19:24:12: debug Xiaomi Aqara Temp Sensor Indoor Parsevalue: --lumi.weather
da56083d-139a-4f38-959d-a0b800583e1a 19:24:12: debug Xiaomi Aqara Temp Sensor Indoor Parsename: model
da56083d-139a-4f38-959d-a0b800583e1a 19:24:12: debug Xiaomi Aqara Temp Sensor Indoor Parsing: read attr - raw: 4299010000200500420C6C756D692E77656174686572, dni: 4299, endpoint: 01, cluster: 0000, size: 20, attrId: 0005, encoding: 42, value: 6C756D692E77656174686572
da56083d-139a-4f38-959d-a0b800583e1a 19:24:12: error java.lang.NullPointerException
da56083d-139a-4f38-959d-a0b800583e1a 19:24:12: debug Xiaomi Aqara Temp Sensor Indoor Parse returned: Xiaomi Aqara Temp Sensor Indoor battery is 100
da56083d-139a-4f38-959d-a0b800583e1a 19:24:12: debug Xiaomi Aqara Temp Sensor Indoor Evencreated: battery, 100, null
da56083d-139a-4f38-959d-a0b800583e1a 19:24:12: debug Xiaomi Aqara Temp Sensor Indoor Parsevalue: 100
da56083d-139a-4f38-959d-a0b800583e1a 19:24:12: debug Xiaomi Aqara Temp Sensor Indoor battery was 100%, 3.055 volts
da56083d-139a-4f38-959d-a0b800583e1a 19:24:12: debug SmartShield(clusterId: 0x0000, command: 0x0a, data: [0x01, 0xff, 0x42, 0x25, 0x01, 0x21, 0xef, 0x0b, 0x04, 0x21, 0xa8, 0x13, 0x05, 0x21, 0x1f, 0x00, 0x06, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x64, 0x29, 0xbc, 0x09, 0x65, 0x21, 0x66, 0x12, 0x66, 0x2b, 0xd5, 0x80, 0x01, 0x00, 0x0a, 0x21, 0x00, 0x00], destinationEndpoint: 0x01, direction: 0x01, isClusterSpecific: false, isManufacturerSpecific: false, manufacturerId: 0x0000, messageType: 0x00, number: null, options: 0x0100, profileId: 0x0104, senderShortId: 0x4299, sourceEndpoint: 0x01, text: null)
da56083d-139a-4f38-959d-a0b800583e1a 19:24:12: debug Xiaomi Aqara Temp Sensor Indoor Parsename: battery
da56083d-139a-4f38-959d-a0b800583e1a 19:24:12: debug Xiaomi Aqara Temp Sensor Indoor Parsing: catchall: 0104 0000 01 01 0100 00 4299 00 00 0000 0A 01 01FF42250121EF0B0421A81305211F00062400000000006429BC0965216612662BD58001000A210000

I have IDE reporting the temperature, pressure, etc in live logging but still with the same error and not updating in ST

21:09:35: error java.lang.NullPointerException
9d400d5e-fd81-4ada-9fcb-32e3cac87bb8 21:09:35: debug Xiaomi Aqara Temp Sensor Parse returned: Xiaomi Aqara Temp Sensor humidity is 44%
9d400d5e-fd81-4ada-9fcb-32e3cac87bb8 21:09:35: debug Xiaomi Aqara Temp Sensor Evencreated: humidity, 44, %
9d400d5e-fd81-4ada-9fcb-32e3cac87bb8 21:09:35: debug Xiaomi Aqara Temp Sensor Parsevalue: 44
9d400d5e-fd81-4ada-9fcb-32e3cac87bb8 21:09:35: debug Xiaomi Aqara Temp Sensor Parsename: humidity
9d400d5e-fd81-4ada-9fcb-32e3cac87bb8 21:09:35: debug Xiaomi Aqara Temp Sensor Parsing: humidity: 44.09%
9d400d5e-fd81-4ada-9fcb-32e3cac87bb8 21:09:35: error java.lang.NullPointerException
9d400d5e-fd81-4ada-9fcb-32e3cac87bb8 21:09:35: debug Xiaomi Aqara Temp Sensor Parse returned: Xiaomi Aqara Temp Sensor pressure is 9845.0
9d400d5e-fd81-4ada-9fcb-32e3cac87bb8 21:09:35: debug Xiaomi Aqara Temp Sensor Evencreated: pressure, 9845.0, null
9d400d5e-fd81-4ada-9fcb-32e3cac87bb8 21:09:35: debug Xiaomi Aqara Temp Sensor Parsevalue: 9845.0
9d400d5e-fd81-4ada-9fcb-32e3cac87bb8 21:09:35: debug Xiaomi Aqara Temp Sensor: 9845.0 null before applying the pressure offset.
9d400d5e-fd81-4ada-9fcb-32e3cac87bb8 21:09:35: debug Xiaomi Aqara Temp Sensor: Converting 9845.0 to null
9d400d5e-fd81-4ada-9fcb-32e3cac87bb8 21:09:35: debug Xiaomi Aqara Temp Sensor Parsename: pressure
9d400d5e-fd81-4ada-9fcb-32e3cac87bb8 21:09:35: debug Xiaomi Aqara Temp Sensor Parsing: read attr - raw: CD620104031C000029D803140028FF1000297526, dni: CD62, endpoint: 01, cluster: 0403, size: 1C, attrId: 0000, encoding: 29, value: 2675290010ff28001403d8

I see there is an error but not what is related to.
Can anyone help please?
Thanks

Just wanted to share some new knowledge in case it’s useful -

A. However excited I was about fingerprints - it hasn’t helped in getting my latest batch of Aqara motion sensors to all start reporting after an hour - even with a perfect fingerprint (I’ve also tried the endpoint version), it’s back to the keep trying until they start reporting - although at least they are being pulled up appropriately.

B. I realized that in the zbjoin message, you can see the parent that it joined to - :“LUMI”,“model”:“lumi.sensor_motion.aq2”}],parent":"7055”,“joinType”:1}

In this case the device 7055 is one of my SmartThings plugs.

After this learning I took all the SmartThings plugs offline - all my bulbs are HUE, so I didn’t think an issue, but I took the ones near the hub offline just in case. Thing is when I give the sensors no plugs to pair with - they just won’t pair - even when I’m next to the hub - doing all the usual dance (reset, blah blah,) I never get to the two and three flash
"dit dit… dit dit dit"
that shows it paired. I tried with all four of them. As soon as I brought one of the SmartPlugs online - instant pairing - to that plug.

1 of the 4 that I paired yesterday is up and reporting fine, even though originally paired to Smart Plug.

Since no way to check on parent in the IDE - I chatted w/ SmartThings. All my working sensors are now linked right to the hub - including the one that I paired to SmartPlug yesterday. Apparently they’re reconnecting themselves to the hub pretty fast.

So - getting to that lasting pairing is still trial and error for me. And it looks like it’s impossible to get an initial pairing directly to hub - at least for me.

Just got myself a Xiaomi button but just cannot get it to pair.
Nothing in the events to use catchall, just nothing.
I never have trouble pairing contact sensors, motion sensors or temp/humidity sensors but this will just not pair.
With the other sensors I always hold the button for 10 seconds to reset them and then just keep doing continuous presses.
With the button whatever I try I cannot get it to pair.
I can see no LED’s so I assume nothing lights up on it when the button is pressed.
How did you guys and gals get it to pair?

Maybe the battery is dead. No way to know how long it has been in the device.

I take it there is nothing that lights up when the button is pressed?

I don’t know of any device that doesn’t have a LED of some type to tell you condition during pairing.

Could please you share your Pistons?

Do you have these then and can see an LED light up?

I ordered them, but reading the thread I see that everyone mentions light flashing. But this thread is very confusing with all the different devices. But so far I haven’t come across a device without a LED. Even the Minimote has one. Check the battery. maybe the lights flashing is for the temp sensor. I am confused myself.

Ah ha. Found it.
Need the cover off and its there it is.
Hmm. Nothing happening.