[RELEASE] Xiaomi Aqara Mijia Sensors and Switches Driver

I use those sensors an I can tell they pair on my c8 whit this driver, but I needed to pair it more than once. My C8 hub is a test hub, I don't use repeaters on it. I heard there are some issues with some some zigbee repeaters, maybe this is the issue, I guess this is why people say you need to pair close, on top of the hub or you can use this driver where you can choose witch device you turn on for paring,

Personal I prefer this driver for my Aqara motion & illuminance sensors.

2 Likes

Your preferenced driver worked and the pairing is kinda strange

first start pairing then device pairing then press device pairing button again until device paring started is shown then after 30 second press again one time the pair button then pairing works.

2 Likes

I think the pairing issue is not driver related, I know there are issues with zigbee pairing for some devices. I my test I paired the device with the "chirpy" driver, it was available after pairing but is was not working and there were things missing, after pairing a second time (on top of the hub) the sensor was working.
With my prefered driver (kkossev) it was paired correct at the first attempt, but this is not a guarantee....The reason why I use this driver is because the developer is still active on the forum, he is a fantastic guy, but overal it is a good driver, you can simulate the state of the sensor (motion active or inactive)

2 Likes

When I use this driver for the water leak sensor, I sometimes get a false wet message. Does anyone else have this problem?
I haven't experienced it with another driver yet, it could be a coincidence

Hello @chirpy

I recently acquired the Original Aqara Door Window Sensor with Zigbee Wireless Connection, model MCCGQ11LM. I integrated these drivers using HPM (Hubitat Package Manager). It took a couple of attempts to successfully connect them.

Currently, I'm only observing the following status:

Current States

  • Contact: Open
  • Presence: Present

However, I'm not receiving any battery reports for this device. Any insights on why this might be the case?

Thanks

I usually find that after leaving them for a day, they start reporting the battery. Otherwise, resetting the device without deleting it from Hubitat and then running a discovery can get them to send the data. Repeat a few times and it eventually gets there.

2 Likes

Less than a day and it showed up! Thank you for your response and help.

@chirpy I'm wondering have you thought about adding the deviceHealth reporting instead of using the presense reporting? I've just gotten back and updating a bunch of stuff on my hubitat and it seems to be the way a lot of custom drivers have gone.

1 Like

Check post 427

1 Like

Thanks very much.
I missed that. I'll see after my holidays if there's any way I can help get to get that up on github so that it can be installed and updated using HPM.

2 Likes

I would carefully test that version I posted there before putting it into HPM. My skills are weak and it would be a very good idea for someone to vet that the health stuff I tried to add actually works...

Unfortunately, the status is there but doesn't really work.
@chirpy do you still have the courage to implement HealthStatus in your driver?

image

1 Like

I feared as much.... Thanks for checking. I think it may be "close" to what's required to work but clearly there were gaps I was unable to fully figure out.

1 Like

Update: @kkossev has created a new version of this driver, fixing the Health Status stuff I was unable to complete, so now we have a version of this driver that has functional Health Status enabled. Woot! :slight_smile:

I've updated my driver post above w/the new version.

2 Likes

I abandoned all my Aqara motion and contact sensors because they would constantly fall off my C7 hub. My Sonoff set as a repeater helped a little, but it only bought some more time before the device would go offline. I see some have had better luck on their C8 and the newer driver. Can anyone comment that Aqara devices are more stable with the newer driver and a C7 hub? Otherwise I'm open to offers, dirt cheap. I can even deliver to San Diego (hint hint) if needed.

Whether a battery-powered old-generationAqara device (non-ZIgbee3.0) stays connected to any Zigbee coordinator different than Aqara (HE, ST, ZHA/Z2M, etc, etc..) does not depend on the drivers used.

The key to the success is to have these devices paired not directly to the hub, but via an 'Aqara friendly' Zigbee router (repeater). And the process of thepairing via repeater is not easy to be done.

2 Likes

Anybody want some motion or contact sensors?

ME!
I am in need and willing to enable my aquara hub which came with a previous purchase.

2 Likes

Ouch. I just added up what I spent over the 10 months I was buying Aqara stuff.
16 contact sensors and 5 motion sensors. I'll DM you @jshimota

Thank you for this driver @chirpy !

I'm hoping to use the Aqara vibration sensor for a mailbox door activity detector.

Rule Machine does not offer watching for Tilt sensors, though. I'd like to do that instead of Motion or Vibration though, as Tilt seems less likely to provide false positives. Anyone know how I can watch Tilt with RM? There must be a way.