I've put together a combined driver that I use for a list of these devices:
- Xiaomi Aqara Contact Sensor : MCCGQ11LM [*]
- Xiaomi Aqara Motion Sensor : RTCGQ11LM [*]
- Xiaomi Aqara Temperature Sensor : WSDCGQ11LM
- Xiaomi Aqara Vibration Sensor : DJT11LM [*]
- Xiaomi Aqara Water Leak Sensor : SJCGQ11LM [*]
- Xiaomi Aqara Wireless Double Remote Switch : WXKG02LM [*]
- Xiaomi Aqara Wireless Mini Switch : WXKG11LM
- Xiaomi Aqara Wireless Mini Switch with Gyroscope : WXKG12LM [*]
- Xiaomi Aqara Wireless Single Remote Switch : WXKG03LM [*]
- Xiaomi Mijia Door and Window Sensor : MCCGQ01LM
- Xiaomi Mijia Human Body Sensor : RTCGQ01LM
- Xiaomi Mijia Light Sensor : GZCGQ01LM
- Xiaomi Mijia Wireless Switch : WXKG01LM [*]
[*] These devices have an internal temperature sensor, though with only rough accuracy
The driver may well work for other device hardware versions.
I know there are other drivers available but I put this together because I wanted to reduce the plethora of drivers for these devices and to simplify the code since the functionality of these devices are generally hard-coded in the firmware without the possibility of further configuration.
I've been running this driver for a couple of months now without any major issues. YMMV
You can either install the driver from the github repository below or use HPM and look for "Xiaomi Aqara Mijia Sensors and Switches" or "Jonathan Michaelson".
Note: Some of the devices are not supported in depth. For example, the vibration sensor support is fairly basic and does not break down all of the available functionality of the device.