Skip to content

yuryskaletskiy/xiaomi-mqtt-python

Repository files navigation

Xiaomi-MQTT bridge, written in Python

based on the following code sample: https://github.com/jon1012/mihome

Run and build

  • Tested with Mi Gateway v2, v1 is NOT supported
  • Python 3 is supported
  • Dockerfile included

Mi Aqara Protocol

See here:

Using Docker image

How to pack

docker build . -t xiaomi-mqtt

How to use

  • 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