Skip to content

yuryskaletskiy/xiaomi-mqtt-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

About

Xiaomi MiHome (Aqara) to MQTT bridge

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors