[OBSOLETE] Xiaomi Sensors and Button (beta)

Sorry for the late reply, currently in hospital so not much access.

I use the same one. In all honesty I have no idea about the battery life but previously for me 60 seconds was far too long. I have set a few of mine to 30 and 15. However remember this is just the reset/blind time and the sensor is still always monitoring anyway, this is just the time before it resets internally ready to send another signal to the Hub so shortening this even to 5 seconds should not really have that much impact on battery life unless you have constant motion in front of the sensor in which case you probably should not be using this type of sensors in that situation anyway but one that you can program to only be active at night or similar. It will only drain the battery the same amount when it sends the motion signal. Shortening the blind time from 60 to 15 seconds or so should have very little impact on the battery life but I guess only time will tell of course.

Even if the batteries last a few months on this setting I will be happy as they are pretty cheap if you purchase a pack of them.

1 Like

Thanks for the update. Hope you’re OK at the hospital. I ended up getting 2 more of the original Xiaomi Human Sensors. I didn’t get the Aqara Motion Sensor, wasn’t sure if a4refillpad DH would work with them.

1 Like

Thank You! Just ongoing issues being rectified…
They are basically the same sensor with the exception that the Aqara ones have a basic Light Sensor built in which we cannot use yet anyway.

See if you are able to cancel the order as probably have not shipped yet…

1 Like

Thanks for the update. I could just keep my present order and order a couple of the Aqara ones just to try. I still have 3 GE portable motion sensors new in box and I just recently purchased 3 Bosch motion sensors from Mydigitaldiscount.com. The GE one have a super long range ~ 45’ but it emits a red flash when motion is detected and it’s quite bright and annoying also eats CR123 battery like crazy, last like 3 months at best, good mounting options on the GE. The Bosch with the custom DH is very good too in range, doesn’t have he annoying led light when motion is detected only in “walk” (test) mode, uses 4 AA batteries but poor mounting option, there’s other optional mounting plates but I couldn’t find them yet on the web. The bosch is a huge device in size. These Xiaomi are tiny and work well with very good range and not annoying led light

Thanks for this thread, you all helped me get 4 of my 5 Xiaomi sensors up and running. 2 questions.
My 5th sensor will connect, but status will not update (always says open), can it be reset or is it defective?
2 of the sensors have already come back with a ‘battery only has 3% left’ alert. Is this normal? I just received them, is it possible the batteries are low?

Seems strange about the battery reporting but there is always the possibility that they are early stock and been sitting somewhere for a long time. The lowest I have is ~88% or so and that is with one of my test ones that I use all the time and have done for a long time. Which sensors do you have, the Xiaomi or Aqara?

With the other one, I would reset it and try again. Press and hold the button/pin hole until it flashes a few times and stops, release, you should get a single flash, press and hold again and you should get a sequence of very fast flashes, hold until finished. Sensor should be fully reset now, try to pair again and see what happens. If problem persists then possibly a faulty sensor.

Thanks, will try that. they are the Aqara ones.

Tried your suggestions with no luck, #5 is only showing open. Now, all 4 of the other sensors are showing 3% battery remaining.

1 Like

I have de update . Temp handler is ok . It doesn’t disconnect

Could be a broken sensor, I have no idea what else to try but perhaps others may help. Oh, if you reset the sensor and place the magnet next to it does the little LED flash?

With regards to the batteries, the only real way to check and eliminate the DH etc. is to try a new batter and see what it reports after a while.

It is not clear what byte the aqara sensors are using to report battery.

I was working with someone on here to track down the battery and their response was of different length than mine. So somehow the configurations were different between the sensors.

I haven’t gotten back to this in a while. Other projects in the pipeline.

I can only speak from personal experience with both the Xiaomi and Aqara Door/Window and Motion Sensors I have and I have about 25 or so that are active, 10 that have been paired and are sitting in their boxes and a few that I use to test things out. With all of these I see extremely consistent battery reporting which seems very accurate based on the usage all the sensors have been through. Admittedly none have gone below 80% so cannot comment if dropping further will report different results but I assume that the correct data is being used based on what I can see so it should be fine.

EDIT: This applies to every single sensor. I am planning on getting a logging/reporting tool up and running so will try to do this sooner rather than later and post the results on here to show the drops across all sensors over time which may hopefully prove either way that the correct data is being used.

i received my Aqara water sensor and got it paired to SmartThings. I set it to use the contact sensor handler for now to de-bug. So far in the live log i get the following when bridging and un-bridging the contacts. 0x0001 is “wet” and 0x0000 is “dry”. I’ve never written a device handler, so any help from @a4refillpad or @ArstenA appreciated.
f49b72e3-51f0-48ba-a89b-4184c1fedf93 1:47:36 PM: debug Xiaomi water sensor: Parse returned [:]
f49b72e3-51f0-48ba-a89b-4184c1fedf93 1:47:36 PM: debug Xiaomi water sensor: Parsing 'zone status 0x0000 – extended status 0x00’
f49b72e3-51f0-48ba-a89b-4184c1fedf93 1:47:20 PM: debug Xiaomi water sensor: Parse returned [:]
f49b72e3-51f0-48ba-a89b-4184c1fedf93 1:47:20 PM: debug Xiaomi water sensor: Parsing 'zone status 0x0001 – extended status 0x00’
f49b72e3-51f0-48ba-a89b-4184c1fedf93 1:46:35 PM: debug Xiaomi water sensor: Parse returned [:]
f49b72e3-51f0-48ba-a89b-4184c1fedf93 1:46:35 PM: debug Xiaomi water sensor: Parsing 'zone status 0x0000 – extended status 0x00’
f49b72e3-51f0-48ba-a89b-4184c1fedf93 1:46:16 PM: debug Xiaomi water sensor: Parse returned [:]
f49b72e3-51f0-48ba-a89b-4184c1fedf93 1:46:16 PM: debug Xiaomi water sensor: Parsing ‘zone status 0x0001 – extended status 0x00’

2 Likes

update: the wet/dry portion works with the SmartSense Moisture device handler, but no battery %.

Hello, how do you use that handlers to use with aqara water sensor? I have 3 sitting for some help. Thanks

I use it in a place where doesn t rain it stays ok for now

go to the IDE and manually change the assigned handler.

Hello,
I have bought some Aqara window and motion sensors and for some days I am trying to get them to work.
The window sensors seems to work find with @a4refillpad device handlers (thanks fot the great work!).
However, my motion sensors are not responding correctly with the latest device handler. My hub is v1.0, and after I pair successfully via catchall process I only get “health updates” instead of motion detection.

This is part of the livelog when I wave my hand in front of the sensor:

170daa84-e449-41e6-8fbc-8b14c7259afd  10:11:08: debug Parse returned [:]
170daa84-e449-41e6-8fbc-8b14c7259afd  10:11:08: debug SmartShield(clusterId: 0x0406, command: 0x0a, data: [0x00, 0x00, 0x18, 0x01], destinationEndpoint: 0x01, direction: 0x01, isClusterSpecific: false, isManufacturerSpecific: false, manufacturerId: 0x0000, messageType: 0x00, number: null, options: 0x0100, profileId: 0x0104, senderShortId: 0x59e3, sourceEndpoint: 0x01, text: null)
170daa84-e449-41e6-8fbc-8b14c7259afd  10:11:08: debug Parse: null
170daa84-e449-41e6-8fbc-8b14c7259afd  10:11:08: debug description: catchall: 0104 0406 01 01 0100 00 59E3 00 00 0000 0A 01 00001801
170daa84-e449-41e6-8fbc-8b14c7259afd  10:11:08: debug Parse returned [:]
170daa84-e449-41e6-8fbc-8b14c7259afd  10:11:08: debug Parse: null
170daa84-e449-41e6-8fbc-8b14c7259afd  10:11:08: debug description: illuminance: 154

In the application it shows as a “checkin”:

Any ideas? :wink:
Thanks!

@Terk Do you know why I can’t import your Aqara handler from you repo in IDE? I triple checked owner and repo name and the groovy file doesn’t appear.

Thanks btw for what you did for the Aqara button. Wish I could help you with holdable but and not savvy enough.

If any of these sensors stays paired with the V1 you are the only one who it has for. Are any of your sensors staying paired and working for more then a day?

It is known they don’t work with the V1 hub only V2. I’m one of the ones that found out the hard way when these came out, have a V1 at one place and none would stay paired, moved them to my V2 at my house and all work fine. So unless ST has changed something on the back end it shouldn’t work.

1 Like