monster1025 / aqara-mqtt

Aqara (Xiaomi) Gateway to MQTT bridge (I use it for home assistant integration)
Apache License 2.0
88 stars 21 forks source link
aqara aqara-mqtt mqtt xiaomi

Aqara-MQTT

Build Status

Aqara (Xiaomi) Gateway to MQTT bridge. I use it for home assistant integration and it works well now.

You need to activate developer mode (described here: http://bbs.xiaomi.cn/t-13198850)

Bridge accept following MQTT set:

"home/plug/heater/status/set" -> on 

will turn on plug/heater and translate devices state from gateway:

"home/plug/heater/status" on

Architecture

Docker image support following architectures (you must choose your architecture in docker-compose):

Config

Edit file config/config-sample.yaml and rename it to config/config.yaml

Docker-Compose

Sample docker-compose.yaml file for user:

aqara:
  image: monster1025/aqara-mqtt:1-armhf
  container_name: aqara
  volumes:
    - "./config:/app/config"
  net: host
  restart: always

Related projects

General discussions:

Home assistant examples: