Xiaomi Zigbee to MQTT bridge using zigbee-shepherd
Xiaomi Zigbee to MQTT bridge using zigbee-shepherd.
This little script allows you to use Xiaomi Zigbee sensors and switches without Xiaomi's gateway. It bridges the events sent from the sensors to MQTT. You can integrate the cheap and nice Zigbee sensors and switches with whatever smart home infrastructure you are using.
$ 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
/xiaomi-zb2mqtt$ DEBUG=* node index.js