mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-08-27 21:20:03 +00:00
22e73009da995bd6b74c0a955e86bab66a6f90b6
xiaomi-zb2mqtt
Xiaomi Zigbee to MQTT bridge using zigbee-shepherd
To run the bridge
- Install
$ git clone https://github.com/AndrewLinden/xiaomi-zb2mqtt.git
$ cd xiaomi-zb2mqtt
/xiaomi-zb2mqtt$ npm install
- Run it
/xiaomi-zb2mqtt$ node index.js
- To see whats happening behind the scenes run it with debug enabled:
/xiaomi-zb2mqtt$ DEBUG=* node index.js
Supports
- WXKG01LM - Single, double, triple, quad and "more than five" click. Push and hold long click.
- WXKG02LM - Left, right and both click
Notes
- You need to flash your CC2531 with CC2531ZNP-Pro-Secure_LinkKeyJoin.hex from here: https://github.com/mtornblad/zstack-1.2.2a.44539/tree/master/CC2531
- Zigbee shepherd's pairing process can take quite a while (more than a minute).
- When pairing WXKG01LM, after reset you need to toggle (short keypress) the reset button every couple of seconds to keep the switch from going to sleep until the pairing is complete.
Languages
TypeScript
97.7%
JavaScript
1.8%
Shell
0.4%
Dockerfile
0.1%