Zigbee 🐝 to MQTT bridge 🌉, get rid of your proprietary Zigbee bridges 🔨
Go to file
2017-12-24 22:41:01 +02:00
.gitignore Initial commit 2017-09-27 19:39:10 +03:00
index.js At startup list all currently joined deviced and set them to be "online" so shepherd wont try to query them for info (that would fail, because the devices go to sleep) 2017-12-24 22:41:01 +02:00
LICENSE Initial commit 2017-09-27 16:38:22 +03:00
package.json Bugfixes and switch to upstream zigbee-shepherd 2017-11-28 12:38:12 +02:00
README.md Added support for occupancy sensor and door sensor. 2017-12-08 11:29:34 +02:00

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  
  • Configuration: for the moment you have to edit index.js and set your serial port and mqtt broker.

  • 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
  • WSDCGQ11LM - Aqara Temperature Hudimity sensor with Temperature, Humidity and Pressure
  • RTCGQ11LM - Xiaomi Smart Home Aqara Human Body Sensor
  • MCCGQ11LM - Xiaomi Aqara Window Door Sensor

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.