All Projects → monster1025 → Aqara Mqtt

monster1025 / Aqara Mqtt

Licence: apache-2.0
Aqara (Xiaomi) Gateway to MQTT bridge (I use it for home assistant integration)

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Aqara Mqtt

Homebridge Dafang
Homebridge Plugin for Xiaomi Dafang / Wyze Cam IP Camera => Hey Siri, Start Video Recording
Stars: ✭ 176 (+109.52%)
Mutual labels:  xiaomi, mqtt
Openmqttgateway
MQTT gateway for ESP8266, ESP32, Sonoff RF Bridge or Arduino with bidirectional 433mhz/315mhz/868mhz, Infrared communications, BLE, Bluetooth, beacons detection, mi flora, mi jia, LYWSD02, LYWSD03MMC, Mi Scale, TPMS, BBQ thermometer compatibility, SMS & LORA.
Stars: ✭ 2,413 (+2772.62%)
Mutual labels:  xiaomi, mqtt
Miflora Mqtt Daemon
Linux service to collect and transfer Xiaomi Mi Flora plant sensor data via MQTT to your smart home system, with cluster support 🌱🌼🥀🏡🌳
Stars: ✭ 409 (+386.9%)
Mutual labels:  xiaomi, mqtt
Webduino Js
⚙️ The Webduino Javascript Core, for Browser and Node.js
Stars: ✭ 70 (-16.67%)
Mutual labels:  mqtt
Paho.mqtt.testing
An Eclipse Paho project - a Python broker for testing
Stars: ✭ 71 (-15.48%)
Mutual labels:  mqtt
Esp Mqtt
MQTT component for esp-idf projects based on the lwmqtt library
Stars: ✭ 76 (-9.52%)
Mutual labels:  mqtt
Badgeforappicon
The unread badges of the android launcher icon.
Stars: ✭ 83 (-1.19%)
Mutual labels:  xiaomi
Mqtt Explorer
An all-round MQTT client that provides a structured topic overview
Stars: ✭ 1,162 (+1283.33%)
Mutual labels:  mqtt
Ac2100 Openwrt Guide
Install OpenWrt on the AC2100 (black cylinder)
Stars: ✭ 80 (-4.76%)
Mutual labels:  xiaomi
Mqtt
🕹 MQTT Protocol Analysis and Coroutine Client for PHP. Support for 3.1, 3.1.1 and 5.0 versions of the MQTT protocol.
Stars: ✭ 72 (-14.29%)
Mutual labels:  mqtt
Tinygsm
A small Arduino library for GSM modules, that just works
Stars: ✭ 1,186 (+1311.9%)
Mutual labels:  mqtt
Espuino
RFID-controlled musicplayer powered by ESP32
Stars: ✭ 71 (-15.48%)
Mutual labels:  mqtt
Hugo Esp8266
Hugo is a 4-button ESP8266 Wi-Fi Remote, Arduino compatible and simple to use.
Stars: ✭ 77 (-8.33%)
Mutual labels:  mqtt
Esp8266workshop
IoT workshop based on ESP8266, a DHT11/22 and neopixel RGB LED
Stars: ✭ 71 (-15.48%)
Mutual labels:  mqtt
Esp8266 aliyun mqtt app
基于ESP8266官方SDK快速接入阿里云物联网平台
Stars: ✭ 81 (-3.57%)
Mutual labels:  mqtt
Mqttfx
MqttFx is a mqtt v3.1.1 client using DotNetty
Stars: ✭ 70 (-16.67%)
Mutual labels:  mqtt
Open Desk Lamp Firmware
Open source firmware for the xiaomi desk lamp
Stars: ✭ 78 (-7.14%)
Mutual labels:  xiaomi
Yi Hack V4
New Custom Firmware for Xiaomi Cameras based on Hi3518e Chipset. It features RTSP, SSH, FTP and more!
Stars: ✭ 1,183 (+1308.33%)
Mutual labels:  xiaomi
Nyamuk
Python MQTT Client Library Based on libmosquitto
Stars: ✭ 72 (-14.29%)
Mutual labels:  mqtt
Xiaomi Flashable Firmware Creator
Xiaomi Flashable Firmware Creator
Stars: ✭ 74 (-11.9%)
Mutual labels:  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):

  • armhf (raspberry pi 3, arm32v7)
  • i386 (x86 pc)
  • x64 (x64 pc)

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:

  • Gateway rgb light as home assistant bulb template
- platform: mqtt_template
  name: "Main Gateway"
  state_topic: "home/gateway/main/rgb"
  command_topic: "home/gateway/main/rgb/set"
  command_on_template: "{%- if red is defined and green is defined and blue is defined -%}{{ red }},{{ green }},{{ blue }}{%- else -%}255,179,0{%- endif -%},{%- if brightness is defined -%}{{ (float(brightness) / 255 * 100) | round(0) }}{%- else -%}100{%- endif -%}"
  command_off_template: "0,0,0,0"
  state_template: "{%- if value.split(',')[3]| float > 0 -%}on{%- else -%}off{%- endif -%}"  # must return `on` or `off`
  brightness_template: "{{ (float(value.split(',')[3])/100*255) | round(0) }}"
  red_template: "{{ value.split(',')[0] | int }}"
  green_template: "{{ value.split(',')[1] | int }}"
  blue_template: "{{ value.split(',')[2] | int }}"
  • Switch automation example:
trigger:
    platform: mqtt
    topic: home/switch/hall/status
    payload: 'click'
action:
  service: script.hall_force_light_on
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].