Appliances · Xiaomi
Xiaomi Mi Home and Aqara devices
Most plugs, fans and purifiers give up a local token after one cloud login, then run entirely on your network. Aqara's gateway hides a root shell the community can reach, though it does not survive a reboot.
What it can become
What owners already do with it, easiest first.
Control plugs, fans and purifiers without the app
Pull each device's token once with the console tool, then every command stays on your network, from a script or from Home Assistant.
Move Aqara sensors off the Aqara hub
Unpair a sensor from the Aqara app and re-pair it to your own Zigbee coordinator. It keeps working, next to any other Zigbee brand.
Open a root shell on the gateway itself
A command sent over the miio protocol turns on Telnet on the gateway, letting a community daemon run Zigbee2MQTT directly on the hardware. It has to be re-enabled after every reboot.
Everything built for it
48 projects from the index, most active first.
- Koenkk/zigbee2mqttZigbee to MQTT bridge, removes the need for proprietary vendor hubsActive★ 15.8K
- al-one/hass-xiaomi-miotHome Assistant integration for Xiaomi MIoT devices via the miot spec protocolActive★ 6.2K
- rytilahti/python-miioPython library & console tool for controlling Xiaomi smart appliancesActive★ 4.3K
- AlexxIT/XiaomiGateway3Home Assistant control of Xiaomi Gateway 3 Zigbee/BLE/Mesh devices locallyActive★ 2.8K
- Do1e/mijia-apiPython API, CLI and MCP server to control Mijia devices through the unofficial Mi Home APIActive★ 905
- niceboygithub/AqaraGatewayHome Assistant integration for Aqara gateways and hubs over local MQTT and telnetActive★ 645
- syssi/xiaomi_fanXiaomi Mi Smart Fans controlled locally over the reverse-engineered miIO protocolActive★ 508
- syssi/xiaomi_airpurifierXiaomi air purifiers and humidifiers controlled locally over the reverse-engineered miIO protocolActive★ 499
- shaarkys/com.xiaomi-miioHomey app controlling Mi Home devices via the miIO protocol and Xiaomi gateway childrenActive★ 475
- syssi/xiaomi_airconditioningcompanionXiaomi/Aqara Air Conditioning Companion controlled locally over the miIO protocolActive★ 410
- niceboygithub/AqaraM1SM2fwModified firmwares for Aqara M1S, P3, H1 and M2 gatewaysActive★ 189
- syssi/xiaomi_cookerXiaomi Mi electric rice cooker controlled locally over the miIO protocolActive★ 157
Show all 48
- sergey-brutsky/mi-homeC# API for Xiaomi Mi Home gateway and devicesActive★ 155
- niceboygithub/AqaraCameraHubfwModified firmwares for Aqara Camera Hub G2/G2H and Hub E1Active★ 138
- tsunglung/XiaomiAirFryerHome Assistant integration for the Xiaomi Smart Air Fryer over miIOActive★ 114
- syssi/xiaomi_rawHome Assistant component that helps reverse engineer Xiaomi miIO devicesActive★ 110
- veonua/SmartThingsEdge-XiaomiSmartThings Edge drivers for Xiaomi and Aqara Zigbee devicesActive★ 82
- handsomejustin/mijia-controlMijia bridge with MCP, CLI and HomeKit support using the Mi Home cloud APIActive★ 76
- syssi/philipslightXiaomi Philips lights controlled locally over the reverse-engineered miIO protocolActive★ 74
- hansihe/esphome_fp2ESPHome firmware for the Aqara FP2 presence sensorActive★ 66
- Darkdragon14/ha-aqara-devicesHome Assistant integration for Aqara cameras and sensors via the Aqara app cloud APIActive★ 61
- awakaze/MiMonitorLightTrayWindows tray app adjusting Xiaomi monitor light bar brightness and color temperatureActive★ 34
- absent42/Aqara-T1M-Ceiling-LightZigbee2MQTT external converter for the Aqara T1M ceiling light's RGB ring segments and effectsActive★ 31
- absent42/Aqara-Firmware-ArchiveArchive of OTA firmware updates for Aqara IoT devicesActive★ 28
- absent42/Aqara-LANLinkLocal push control of Aqara hubs, sub-devices and cameras via a reverse-engineered LAN protocolActive★ 25
- hansihe/AqaraPresenceSensorFP2ReverseEngineeringReverse engineered information about the Aqara FP2 presence sensorActive★ 16
- ha0y/xiaomi_miot_rawHome Assistant integration for Xiaomi devices over the MIoT/miIO local protocolSlow★ 2.2K
- YinHangCode/homebridge-mi-aqaraHomebridge plugin for Xiaomi Aqara gateways over the local LAN protocolSlow★ 1.1K
- YinHangCode/homebridge-mi-airpurifierHomebridge plugins for Xiaomi air purifiers over miIOSlow★ 113
- niceboygithub/AqaraCameraHome Assistant integration for the Aqara Camera G3Slow★ 41
- skysilver-lab/majordomo-xiaomimiioMajorDoMo integration for Xiaomi miIO protocol devicesSlow★ 29
- aholstenson/miioNode.js control of Mi Home devices over the miIO protocolDormant★ 1.9K
- OpenMiHome/mihome-binary-protocolDocumentation of the encrypted Xiaomi Mi Home binary (miIO) protocolDormant★ 742
- 0xbw/homeassistant-mi-acpartnerHome Assistant plugin for the Xiaomi AC Partner over miIODormant★ 124
- aluminiumgeek/goodbye-mihomeWeb UI and plugins to manage the Xiaomi Mi Home gateway and sensors locallyDormant★ 100
- YinHangCode/homebridge-mi-philips-lightHomebridge plugins for Xiaomi Philips lights over miIODormant★ 99
- monster1025/aqara-mqttAqara (Xiaomi) gateway to MQTT bridge using the local gateway protocolDormant★ 89
- veeceeoh/xiaomi-hubitatHubitat drivers for Xiaomi and Aqara Zigbee devices decoding their proprietary attributesDormant★ 75
- pkgplus/migatewayGo SDK for Xiaomi/Aqara/Lumi gateways over the local LAN protocolDormant★ 67
- Maxmudjon/homebridge-mijiaHomebridge plugin for Xiaomi Mijia/Aqara gateways over the local LAN protocolDormant★ 49
- marvinroger/node-lumi-aqaraNode.js library controlling Xiaomi Lumi Aqara devices via the gateway LAN protocolDormant★ 44
- YinHangCode/homebridge-mi-gateway-fmHomebridge plugin for the Xiaomi gateway FM radioDormant★ 40
- octa22/org.openhab.binding.xiaomigatewayopenHAB 1.x binding for the Xiaomi Mi Home (Aqara) gateway local protocolDormant★ 39
- Schischu/aqara-oppleAlternative Zigbee firmware for Aqara Opple wall switchesDormant★ 31
- YinHangCode/homebridge-mi-gateway-securityHomebridge plugin for the Xiaomi gateway security modeDormant★ 30
- valashko/xaapiJava API for Aqara gateways and devices over the local LAN protocolDormant★ 22
- HomeACcessoryKid/AQARA-ZNCLDJ11LMESP8266 HomeKit firmware replacement for the Aqara ZNCLDJ11LM curtain motorDormant★ 21
- LASER-Yi/homebridge-mi-acpartnerHomebridge plugin for the Xiaomi AC Partner over the miIO protocolArchived★ 261