These morphed from my previous MQTT + Zigbee combo drivers, but given that most of these are now officially supported, and I no longer use them directly-connected, it seemed right to mothball the old ones and concentrate on these MQTT-only versions instead.
Installation
You will need the Zigbee2MQTT Routing Driver installed first.
Once you're up and running with that, make your life easy and search on Hubitat Package Manager for "xiaomi" and you should see Xiaomi Drivers via Zigbee2MQTT from BirdsLikeWires.
Otherwise, you can get it straight from the BirdsLikeWires GitHub if you like to do things manually.
- BirdsLikeWires Library Bundle - Bundle URL: ZIP
- Xiaomi Aqara Temperature and Humidity Sensor WSDCGQ11LM - Import URL: RAW
- Xiaomi Aqara Wireless Mini Switch WXKG11LM / WXKG12LM - Import URL: RAW
- Xiaomi Aqara Wireless Remote Switch WXKG06LM / WXKG07LM - Import URL: RAW
- Xiaomi Mijia Smart Light Sensor GZCGQ01LM - Import URL: RAW
Once the driver you require is installed, you'll need to tell the device created by Zigbee2MQTT Routing to use it, otherwise it'll just sit there being a generic "Zigbee2MQTT Device". Click on the arrow next to "Zigbee2MQTT" in your Devices list to show the child devices, then click on a Xiaomi device you'd like to use one of these drivers with.
Go to the Device Info tab and change the Type to the matching driver, down at the bottom of the list in the User section.
Click Save, then hop back over to the Commands tab and press Configure to set everything up. If you forget to do this it'll sort itself out as soon as the next message is received, so don't fret if you forget.
Enjoy!