Xiaomi-MQTT bridge, written in Python
based on the following code sample: https://github.com/jon1012/mihome
- Tested with Mi Gateway v2, v1 is NOT supported
- Python 3 is supported
- Dockerfile included
See here:
- https://aqara.gitbooks.io/lumi-gateway-lan-communication-api/content/
- http://docs.opencloud.aqara.cn/en/development/gateway-LAN-communication/
docker build . -t xiaomi-mqtt
- Create and run shell script run_xiaomi_mqtt.sh
#!/bin/sh
docker rm xiaomi-mqtt --force
docker run \
--name xiaomi-mqtt -d \
--restart always --network host \
xiaomi-mqtt \
xiaomi_mqtt_gateway \
--mqtt-user=test --mqtt-password=test --mqtt-host=127.0.0.1