Making Xiaomi Motion Sensor a Super Motion Sensor


(ShinJjang) #1

Usually Xiaomi motion sensor is detected every two minutes. But with a little work, you can change that time to 5 seconds.

A year ago I made my Xiaomi motion sensors to Super motion sensors. Even after a year, Xiaomi motion sensors are working very well.

This method is applicable to both Xiaomi original motion sensor and Aqara version motion sensor.

How to make Xiaomi motion sensor to Super motion sensor.

Just connect the two points as shown below.
You can solder two points.
Or, you can use a 4B pencil. You can draw two points with a 4B pencil.
However, soldering is more reliable.

The link below is the article on my blog. The article is in Korean. Sorry, but if you want to read the article, please use Google Translator.


Original & Aqara Xiaomi Zigbee Sensors (contact, temp, motion, button, outlet, leak, etc)
(Jimmy) #2

How has battery life been with this modification?


(ShinJjang) #3

I modified five Xiaomi motion sensors 369 days ago. Still, all sensors work well without battery replacement.


(oscahie) #4

Thanks a lot for bringing this to my attention. I’m definitely going to try this. The Xiaomi have been super reliable for me so far, and the battery life astounding. If this mod doesn’t destroy battery life then it’ll make them just the perfect replacement for the crappy Samsung ones!


(oscahie) #5

Ok, I’ve attempted this with a great result, but there’s something really odd. So to put you in context: I’ve had a Xiaomi motion sensor (the old model without the light sensor) working great for about a year, and 3 new Xiaomi Aqara that just arrived today.

I thought I’d try the hardware mod in the old Xiaomi first, and I failed miserably. The soldering targets are pretty small and after a few botched attempts I decided to try with one of the new ones (and also to find a better piece of wire). I was successful with the Aqara sensor 10 minutes later, so I went and paired it to SmartThings for the first time. Just before that I had installed bspranger’s new device handlers, as I had been using the older version created by a4refillpad so far.

After configuring the modded Aqara, it was working well. Motion was being detected every 5 seconds, as expected. So I went ahead and paired another Aqara, but without modding it, just to compare the behavior. To my great surprise, this second Aqara worked identically, i.e. detecting motion at 5 secs intervals, after configuring the ‘MOTION RESET’ setting to 5 sets (it defaults to 2 minutes, I believe). So how is this possible? I thought perhaps these new Xiaomis no longer had the 60 secs blind limitation baked into the firmware… but it’s definitely not that.

Why? because I then updated the device handler for the old Xiaomi sensor to bspranger’s version, set the motion reset to 5, and booom, it’s now also detecting motion every 5 seconds. Likewise for the 3rd new Aqara.

So, what gives? Looks to me like this hardware mod is not really necessary with the latest device handlers… or am I missing something?


(Tyler Durden) #6

Based on what my custom DTH says in the settings, the MOTION RESET setting only determines how frequently MOTION DETECTED is reported in ST, but that the firmware dictates that the hardware can only detect a change (active vs. inactive) 60 seconds after the last activity. That would mean reporting every 5 seconds would probably be redundant because the hardware waits 60 seconds before the next detection. (I think)

I changed my MOTION RESET setting from 60 to 5 and didn’t see any additional logging. I’m not sure why not.

EDIT: OK, the MOTION RESET setting tells ST to reset the motion status to inactive every X seconds. (ie. Shows no motion in the ST app, etc.) You still have to rely on the hardware to wait (default 60 seconds) to register motion vs. no motion again.


(oscahie) #7

That’s not what I’m seeing… I can wave a hand in front of any of the Xiaomis and they detect motion, wait 5 secs for them to report no motion, then wave a hand again and they keep reporting motion again instantly. I don’t see that 60 secs blind period described in the DHT.


(Tyler Durden) #8

I guess I’ll see what happens if I update my bspranger DTH. Mine says v1.1

Edit: It looks like v1.1 is the latest bspranger motion sensor dth.


(ShinJjang) #9

Oscar, you will find out in a few hours. If you press the reset button on the side of XiaoMi motion sensor, it will report at intervals of 5 seconds for several hours. So if you connect the device for the first time, it is possible without changing the hardware. But in a few hours, Xiaomi Motion will report every two minutes. Note that the motion sensor does not report inactive. The DTH’s inactive time determines when it will change to the inactive state after the last reported active log. In DTH, it is better to set the inactive time to 2 minutes.


#10

Increasing the reporting interval on a device, in this case by 24 times, potentially does three things:

  1. as already mentioned, it can decrease battery life

  2. the increase in chattiness might cause other messages on your network to have to be Resent, or even to be lost altogether. Over time, this can cause a perceived degradation in QOS ( Quality of service) as it may seem that the network as a whole is slower or not processing all messages.

Whether you will get hit with this or not depends very much on the specifics of your own layout. How many devices do you have? What parents/repeaters are they using? How chatty are the other devices? Etc.

  1. By trying to get around the manufacturer’s intended design, you may be throwing other aspects of the engineered design off-balance. In particular, increasing the reporting frequency may change the heat distribution of the device and cause overheating which eventually either affects the life of the device or potentially leads to shorting.

The zigbee home automation profile is intended for tiny messages sent infrequently. If you want near real-time reporting, you might want to take a look at a topology designed for that kind of load, such as Wi-Fi.

Submitted with respect.


(oscahie) #11

You’re right. This morning indeed the sensors went back to reporting motion only once every 60 secs, except for the one with the hardware mod, which keeps doing so at 5 secs intervals :slight_smile: How estrange is this behavior though… I can’t think of why these sensors would have been programed to behave in such a way :thinking:

So, despite JDRoberts’s advice, which is fair enough, I’ll probably mod at least some of the other 3 sensors, depending on where I decide to place them. It’d be great if the detection period could be 10 or 20 secs instead of 5, but I certainly prefer 5 over 60 (assuming that doesn’t kill the battery). I think the Samsung ones use 20 secs, if I’m not mistaken.


(ShinJjang) #12

I informed the Smartthings community in Korea a year ago about how to modify the Xiaomi motion. Many users in Korea use Xiaomi motion sensor with the hardware mod. All users who use it are satisfied with it. Maybe you will be satisfied too.
You can use 4B pencils instead of soldering. I have not modified it with the 4B pencil. However, one user in the Korean Smartthings community said that he succeeded with 4B pencil.


(Eddy) #13

So just do understand, for the pencil method, you would just draw a line from TP4 to the 2nd point mention in your video?


(GINANJAR) #14

Interesting! Can you post the picture of the motion sensor, or maybe post a link to buy the exact type. I don’t want to buy the wrong one. Thanks.