[OBSOLETE] Xiaomi Sensors and Button (beta)

My button works but I don’t have a Zigbee ID other than the one I created myself, was yours generated by ST?

Top part looks OK. What do you see in the recently tab under the device in the ST app?

Have you tried getting a button push to do anything else? Maybe Webcore?

Last thing. Are you pushing the physical button or the button on the ST app? I just noticed that the actual button works fine, but the button in the ST app does not!

Yeah. I copied the code first for the device then I paired them and everything populated for me.

No didn’t have that experience. Guess you are one of the lucky ones. Meanwhile mine is working fine, so I will be happy with that.

under recently (i just pushed it)
Xiaomi Button 1
Last Opened is 2018 Jan 10 Wed and then the time.
There is a following one with a Checkin.
I’m pushing the physical button as those are the ones I’m going to stick up in the end.
Nothing happens when I push the screen on my phone. It stays on “RELEASED”. I’ve had it show PUSH before but that was just after pairing.
As a side note, all four batteries are showing -300+%. Perpectual energy?

-Nirav

That is the problem I had with my buttons on iPhone. But the DTH I posted from this developer works.

1 Like

Thanks. That does work. My next issue is that it turns on the heater but then it stays on. I guess I am looking for the heater to turn on heater between temperature range 0-3 Celsius. I could set something to turn off when goes above 3, but then that might mean I am unable to turn on heater at higher temps as this code will close it down… I’ll keep looking, but for now this is helpful.

Cheers

Andy

Snap. I am using the DTH. I’ll let them sit around for a little bit longer in case they need to smarten up first then I’ll repair.

Is there a DTH for this https://www.gearbest.com/alarm-systems/pp_610095.html. The button DTH seems to work but does not show both buttons

Have a few of the square temp sensors. The other day I accidentally deleted it. SO I went to pair it again. Worked great…for a little while and then fell off. Do I have totally reset the sensor to start from scratch and if so how do it do that.

If you want to reset it fully.

  1. Delete/Remove the sensor from ST so they no longer in the App.
  2. Press and hold the button on the sensor for at least 30 seconds, this will cause a reset of the device.
  3. Release the button and then click on “add a thing” in ST
  4. Once again Press and hold the button again for at least another 10 to 15 seconds, ST will say its taking longer than normal… blah blah blah. ST will not discover it yet but this is just performing yet 1 more Reset. I don’t know why I did it this way but I did and it worked for me so I’m just passing along what I know worked for me.
  5. release the button and give it a quick 1 second press once every 3 to 4 seconds.
  6. ST after a few presses should discover the sensor, Name it as you need it and save.

That is correct ST doesnt let us see enough information to be able to know which button has been pressed

The reset you describe is completely unnecessary.

To reset ALL Xiaomi/Aqare devices simply press and hold the button / pin hole for around 6 seconds until the LED stops responding, release. Then press and hold again, you will get a series of very fast flashes for a few seconds. That is is. It is completely reset to factory default.

Step 4 is also necessary, you do not need to hold it for 10 to 15 seconds, just press the button, wait until the LED responds (2 to 3 seconds) and keep repeating until it show up in the app, as you describe in Step 5.

Just wanted to add this to save people a little time in the whole process :wink:

I know I was extreme with the press and hold times I was just noting what has worked for me. When I first found the instructions on resetting I pressed and held the button however the LED never stopped responding on my device. So after roughly 20 to 30 seconds I let it go. Then when I couldn’t get it to pair again I tried resetting it a second time while in add a device, thats why I noted at the end of step 4 its what has worked for me.

I appreciate someone else jumping in and pointing out the other way to reset However if your LED like mine does not stop flashing after 6 to 10 seconds I recommend pressing longer to assure a reset has occurred.

To be hones I tried the short method and unit came on the hub and an hour later dropped. The long method it has been up for about 12 hours. Thanks @Mobile785

It was just a fluke. I have paired/reset these sensors (PIR/Door/Temp/Water/Buttons) over 600 times now whilst working on the issue we had last year with a Hub f/w update and have around 40 of them currently live. We also sniffed the hell out of them and holding the button down for that amount of time has absolutely zero effect from a hardware point of view.

Nothing wrong with doing so if it makes you feel more comfortable of course :slight_smile:

1 Like

Interesting that you have 40 going when there’s the 32 zigbee limit with direct connections on the hub. Some of them must be working successfully through repeaters/router (I’ve had zero luck with any that don’t connect directly to the hub - they always drop off after the hour/two hour initial process). May I ask what repeaters you have in your system? (Smartplugs, bulbs, etc.?)

Thnx!

I did not count through them when I wrote my previous message “have around 40 of them…”

So here is an actual count;

12 Door/Window (mix of Xiaomi and Aqara)
4 Temp
6 PIR (4 in situ, 2 on my desk under he rubbish somewhere lol) Mix of Xiaomi and Aqara
1 Water/Flood
3 Power sockets but they are in their boxes even though they still appear in the app.
2 Aqara Buttons
2 double wall switches (they are in my list but sort of gave up playing with these due to time)

These are the ones which are in situ, I also have some at the bottom of my list which takes the total to 39, the ones at the bottom still all state as being online though. I wonder if the buttons/switches are treated differently. I only have one of them that seems to drop off occasionally and am pretty sure this is due to distance, quick press and it is back online though. Now been going through hell with my Z-Wave devices recently, ST seem to be messing with the cloud and config which is causing me misery at the moment with them dropping offline whereas my zigbee devices have never been more solid. Despite this I am actually moving more and more to Z-Wave. Have some decent outdoor PIR sensors now which are far more configurable etc. The only ones I will probably defo keep are the Door sensors, I have actually embedded the majority into the tops of my doors and on the smaller windows around the house and external building I have hidden them in the UPVC Window frames. On the Main windows and doors I use Fibaros and Sensative Strips.

I have never had any luck with routing them through other devices. The ONLY way to keep the alive is to have them connected directly to the hub, well at least whilst pairing and for them to establish the handshake fully. I do have a few Xiaomi sockets but they are hardly used these days and are back in their boxes so I currently do not have anything online that would act as a repeater. Sorry I cannot help further :frowning:

Thanks for looking. So it looks like you are still under the 32 direct connect slots. I’m only at 20-something myself but have direct-connect slots taken up by non-Xiaomi devices, too. I do really like these little critters.

HOw do you know what is direct connected? Is there a way.