[OBSOLETE] Original & Aqara Xiaomi Zigbee Sensors (contact, temp, motion, button, outlet, leak, etc)

Nevermind. That won’t work. It won’t set the minBattery properly the first time, giving a wrong calculation (max will be set, but min will be 0, and the average will not be correct).

I think it will have to be changed to an array and average the rolling values to smooth the value fluctuations. Either that, or just ignore the fluctuations by removing the averaging. Or prevent out-of-range values from being set to min and max.

I happy to test any code

I was a little scared when I read this conversation, because I have a Smartthings Link too! :slight_smile: Today arrived my two Aqara motion sensors and one Temp Sensor. Just following your pairing steps and surprisingly all the devices are working! They didn’t report the battery status just yet (about 1 hr of pairing). Well… just have to wait I guess :wink: Thanks for all your great support guys!

i think i found how to get the battery to report. I have around 14 aquara contacts and 1 aquara humidty sensor. i went into IDE for each device and clicked on firmware/ check now. let it go for a few minutes or more…then the battery report shows.

image

My Aqara temperature humidity sensor works great after the latest changes. Battery seems accurate now. Thanks Brian

Well… After testing the temp and motion sensors with my Smartthings Link I’m really dissapointed. The pairing process it’s working good, using the “Add thing” method. But after 1 - 1.5 hours all the devices just disconnect. Like @veeceeoh said, the Link it’s the problem. I hope they fix this problems with a firmware upgrade. I’ll buy the original hub :frowning:

I’m using the aqara temp sensor, and when I tap the refresh button on the app, my IDE log show this error: org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object ‘zcl global write 0x500 0x10 0xf0 {null}’ with class ‘java.lang.String’ to class ‘int’. I’m paired it with the “Add a Thing” method, the device shows a Zigbee ID on IDE. I have to use the “Original” or the “Aqara” DH on the repository?

1502825235985974240

This is the Aqara version - the original is round…

I realized today that the original sensors do not report their catchall the same as the Aqara. I have updated the DH to fix this issue.

I have also tried to update the refresh and configure functions so they do not generate errors. I am not very aware of the correct way to configure these zigbee devices but we will learn…

2 Likes

My Aqar Temperature sensor is finally working since this update!

Now if only my door sensor would (for the record it worked for weeks on this other profile that I did not backup, nor can I find the repo that had it …)

As far as I can tell the sensor is linked up to the network (light blinks 3x when i attempted to link it. Now each press it blinks twice)

The catchall is:

0104 0000 01 01 0100 00 E1BC 00 01 115F 0A 01 01FF421D0121E50B0328230421A8010521FE00062401

Not sure if that helps at all?

What kind of for sensor? Original or aqara?

Aqar → Aqara. Not sure if there’s different ones but to be real specific I bought this one: https://www.gearbest.com/access-control/pp_626703.html

Make sure your using the latest DH. I just tested mine and the open/close is working and the battery checked in only moments ago. It appears to be fine.

1 Like

Yes, I have the latest published to my hub.

The DH ensures the device is found right?
Because I do see it in the HUB’s events log.

But the mobile app shows nothing new after I’v done “add a thing”

Like I mentioned my devices worked for many weeks without issue.

Just wondering if it’s the DH making it so that I can’t see it or something else is. Like i’v also said the lights seem to indicate all is well, atop of that I’v tried pairing it dozens of time already with no change.

UPDATE: Temp sensor stopped working after 2 hours.

Hey there, appreciate the DT work. However, after about 2-3 hours my original door sensors go “Unavailable” on my V2 hub. Any ideas?

Are they connecting directly to the hub, or through a repeater. If hub, how far away and what is the electrical environment like (WiFi routers etc…)

Playing with a ZigBee network scanner, I am beginning to think the dropping off is mainly due to weak network

What are you using for a scanner? I’m very tempted to finally bite the bullet and get one…

See here

Which one of these is the board? link to USB adapter?

https://www.ebay.com/itm/Adafruit-XBee-Pro-Module-ZB-Series-2SC-63mW-with-Wire-Antenna-ADA967-/232427194776

The adafruit one should be ok.

Re usb adapters…just eBay searxh xbee usb, they should all work (see my thread, the cheap ones either work or don’t)