[OBSOLETE] Xiaomi Sensors and Button (beta)

found a solutioin

Does the aqara contact sensor work with this device type for anyone? I have added one, but battery is always reported as 0%.

Recommendations on a basic button smartapp to use with the Xiaomi button for triggering a few actions?

I have one human body sensor that is not picking up motion consistently, even after the 60 second blind period. Do you think the Device handler could be causing it? I have a few others that aren’t exhibiting these signs, so my guess is it is the sensor itself…I unpaired it and re-paired and still getting the same issue.

Just had a very weird problem and it started yesterday. All my Xiaomi sensors - 2 Aqara and 3 Mijia one’s were behaving very weirdly where it would detect motion and just stays there. The ST hub is not receiving a no motion response from the DTH/sensor. Have to manually reset the motion.

Anybody having this issue? Or know how to fix this?

I have the same problem, but thought the strange problems were related to UK cloud degradation outage.

I made myself a Humidity prioritized version of @4refillpad s Temp/Humidity sensor - and came up with these background colors for humidity - hope it’s useful.

//AlecM 2017-07-04 - Adjusted background colors based on ASHRAE Standard 62-2001 “Ventilation for Acceptable Indoor Air Quality”
https://buildingscience.com/documents/reports/rr-0203-relative-humidity/view

            backgroundColors:[
				[value: 0, color: "#FFFCDF"],
				[value: 4, color: "#FDF789"],
				[value: 20, color: "#A5CF63"],
				[value: 23, color: "#6FBD7F"],
				[value: 56, color: "#4CA98C"],
				[value: 59, color: "#0072BB"],
				[value: 76, color: "#085396"]                                    
			]

image

4 Likes

I’ve had quite a few issues with the Xaiomi buttons not being reliable, has anyone got any other suggestions or more reliable buttons that I could use in place?

Same. My wife wants a more reliable replacement for a simple wall mountable button.

The above DH for the button does not appear to support the “held” function, only “pushed”. I am using an aqara button. Is this the issue or is it the code? Is anyone else experiencing the same?

I’m pretty sure I’ve got a dead Aqara motion sensor here. Hasn’t ever picked up motion. Reports battery just fine.

I re-did the DH. Try that.

1 Like

This DTH didn’t work for me at all unfortunately. Maybe my “aqara 2 button” device is not the “Xiaomi 2 button” device, as I first thought. When pressed the button just checks-in.

Humidity - Bah Humbug.
Hey guys, one last crack at this before I order the newer ones :frowning:
I can never get these to join but today I found that the events in the hub have changed when I put the battery in while holding the reset button and let go before the 3 flashes.
I have never had any log entries before so maybe I’m getting close.
I have created a new device with all the appropriate default info but I need to pair it with whatever is now giving me humidity and temp entries. This is where I am in the dark, I obviously have some legitimate chatter now from the sensor!
Next step?

2017-10-15 2:19:13.466 PM PDT
moments ago HUB humidity: 51.4% humidity: 51.4% humidity: 51.4%
2017-10-15 2:19:13.384 PM PDT
moments ago HUB temperature: 21.41
temperature: 21.41
temperature: 21.41 temperature: 21.41

humidity: 56.78%
Name Value
archivable true
date 2017-10-15 1:57:07.878 PM PDT (2017-10-15T20:57:07.878Z)
description humidity: 56.78%
displayed false
eventSource HUB
hubId 0461e4d2-5de7-4e48-b101-a7286fa9a2b6
id 68068c60-b1eb-11e7-aa83-12f5587bcfbc
isStateChange false
isVirtualHub false
linkText Home V2 Hub
locationId 7643d214-78d5-41b3-9d8a-2723b1d68d6d
name humidity: 56.78%
rawDescription humidity: 56.78%
translatable false
unixTime 1508101027878
value humidity: 56.78%
viewed false

temperature: 22.34
Name Value
archivable true
date 2017-10-15 1:59:02.687 PM PDT (2017-10-15T20:59:02.687Z)
description temperature: 22.34
displayed false
eventSource HUB
hubId 0461e4d2-5de7-4e48-b101-a7286fa9a2b6
id ac7502f0-b1eb-11e7-a0f3-12e297f640e6
isStateChange false
isVirtualHub false
linkText Home V2 Hub
locationId 7643d214-78d5-41b3-9d8a-2723b1d68d6d
name temperature: 22.34
rawDescription temperature: 22.34
translatable false
unixTime 1508101142687
value temperature: 22.34
viewed false

So I’ve added a couple of the temp sensors using the normal add in the ST app with “Thing” showing up then editing the device in the DEVICE list on the web site. Works just fine for a short period of time, then loses connection at some point - no longer updates. Any ideas why ?

Keep trying, they can be picky to get a good pairing on but once they do there are no issues, . Make sure to pair close to the hub and leave sit until the first check in, about an hour. Also they don’t work with V1 hubs.

Thanks. Seems like I remember reading somewhere that it’s a good idea to turn off other Zigbee devices (lightbulbs, etc) while doing the initial pairing with the hub ? True ?

Repeaters if there are near.

Yes, turn off all non-battery powered zigbee devices for more than an hour after pairing. It forces the devices to connect directly to the hub and not through the mesh.

After a few days it started reporting motion every minute, even when left alone in a dark room, and now it seems to be working.

I rebuilt my Zigbee network as part of an entirely unconnected issue, so maybe that had something to do with it??