how to Integrate xiaomi mijia/aqara/yeelight Devices to home assistant
how to Integrate xiaomi Devices to home assistant
zigbee devices
You need some kind of a gateway that understands zigbee and can translate those messages for HA.
you Can use an z2m usb stick instead of separate Xiaomi Gateway.
wifi devices
ble devices
Table of Contents
Read here:https://bbs.iobroker.cn/t/topic/7595
Product model:DGNWG02LM(Chinese version)
Mijia
python-miio - library
This library (and its accompanying cli tool, miiocli) can be used to control devices using Xiaomi's miio and MIoT protocols.
The miiocli command allows controlling supported devices from the command line, given that you know their IP addresses and tokens.
https://www.msly.cn/boards/topic/2186/d#2450
Mijia Miio devices - to ha
1.1 XIAOMI MIIO integration
xiaomi_miio
https://www.home-assistant.io/integrations/xiaomi_miio/
https://www.msly.cn/boards/topic/2186/d#3583
or
1.2 XIAOMI raw integration
xiaomi_miio_raw
syssi' xiaomi_miio_raw Integration -> https://github.com/syssi/xiaomi_raw
https://www.msly.cn/boards/topic/2186/1/page/2#20156
2.1 Miio devices - miio Local control device list by openhab
https://www.msly.cn/boards/topic/14415/miio-local-control-device-list-by-openhab
2.2 Miot devices
list of miot enabled devices by rytilahti's python-miio
https://www.msly.cn/boards/topic/14475/list-of-miot-enabled-devices-by-rytilahtis-python-miio
miot Local control device list by xiaomi miot atuo
https://www.msly.cn/boards/topic/14432/miot-local-control-device-list-by-xiaomi-miot-atuo
2.2.2 mijia Miot devices cloud
Xiaomi Miot Auto integration
guide:
Auto integrate all Xiaomi devices to HomeAssistant via miot-spec
mijia gateway
Xiaomi Gateway 1
Xiaomi Gateway 1 (DGNWG01LM) Chinese version
https://www.home-assistant.io/integrations/xiaomi_aqara/
PyXiaomiGateway
A Python library to communicate with the Xiaomi Gateway
Used by Home Assistant
https://github.com/Danielhiversen/PyXiaomiGateway
Used by Home Assistant: https://www.home-assistant.io/components/xiaomi_aqara
mijia Gateway 2
(DGNWG02LM) Chinese version
Product model:DGNWG02LM(Chinese version)
internal model:lumi.gateway.v3
2.1.1.Xiaomi Gateway (Aqara) Integration
https://www.home-assistant.io/integrations/xiaomi_aqara/
The Xiaomi Aqara integration needs the key to connect.
blog:https://bbs.iobroker.cn/t/topic/8588/10
2.1.2 use XIAOMI MIIO integration
https://www.home-assistant.io/integrations/xiaomi_miio#xiaomi-gateway
The Xiaomi Miio integration needs the token to connect.
enable “LAN function” in Xiaomi Gateway 2
A solution for Xiaomi Smart Home Gateway 2 (DGNWG02LM, lumi.gateway.v3, chinese version), tested on firmware 1.4.1_17:
To enable developer mode or so called “LAN function” in Xiaomi Gateway 2 after the ability to do this was removed from Xiaomi Home App, use xiaomi-cloud-tokens-extractor and miiocli tools.
You need to extract a token of your gateway from Xiaomi Cloud using xiaomi-cloud-tokens-extractor - just pull it, run and enter your cloud credentials. As output you will get a list of your devices and their tokens.
Use previously extracted token as parameter for miiocli tool command to set manualy Developer Key in your Gateway (key value can be a random 16 bytes long alpha-numeric string), example:
miiocli gateway --ip 192.168.1.7 --token 652e1b285fef684209500a22d5be62f8 set_developer_key f40e1b285fes682r09100
source:https://community.home-assistant.io/t/not-able-to-get-xiaomi-gateway-key/61795/289?u=msly
Xiaomi Gateway 2 (DGNWG03LM) T version
Xiaomi Gateway 2 (DGNWG04LM) H version
internal model:lumi.gateway.mihk01
The sg version of the gateway mihk01 from Xiaomi, with a European plug.
Xiaomi Gateway 2 (DGNWG05LM) eu version
Product model:DGNWG05LM(European version)
internal model:lumi.gateway.mieu01
The European version of the gateway mieu01 from Xiaomi, with a European plug.
https://www.home-assistant.io/integrations/xiaomi_miio/
https://www.home-assistant.io/integrations/xiaomi_aqara/
use XIAOMI MIIO integration
Xiaomi Gateway 3
Mijia Smart Multi-Mode Gateway 1 gen 1
way1.use XIAOMI MIIO integration
https://www.home-assistant.io/integrations/xiaomi_miio#xiaomi-gateway
way2.use gateway3 integration
https://github.com/AlexxIT/XiaomiGateway3
updated:20231009
On previous firmware versions of the gateway, only the MiHome token was required to open the telnet. On firmware 1.5.5 this method was blocked.
Integration Xiaomi Gateway 3 starting from version 3.3.0 supports adding a gateway on firmware 1.5.5 using a token and a key.
The integration also automatically saves the key to the following places:
It is recommended to securely save your gateway key, even if you have a gateway of a different model. You might need it in the future updates.
source:https://github.com/AlexxIT/Blog/issues/13
I was able to get the Xiaomi Gateway 3 to work with all attached devices (Bluetooth and Zigbee) by using gateway3 integration
blog:https://www.matterxiaomi.com/boards/topic/5263
way3.use HomeKit Controller integration
In fact, it can be integrated. Because the new gateway supports Apple HomeKit, it can be solved using that integration.
Read this (hungarian) article:https://diysmarthome.hu/hirek/xiaomi-mijia-multimode-gateway-teszt-es-home-assistant-integracio/
Here is the english version of the article:https://diysmarthome.hu/en/news/xiaomi-mijia-multimode-gateway-review-and-home-assistant-integration/
Note:
I have added 1 bluetooth motion 2 sensor in the xiaomi app and it works fine, but the sensor does not show up in home assistant.
Product model:ZNDMWG02LM(Europe version)
internal model:lumi.gateway.mgl03
gateway3 integration
https://github.com/AlexxIT/XiaomiGateway3
https://bbs.hassbian.com/thread-12281-1-8.html
Xiaomi Gateway 4
Xiaomi Gateway 5
https://github.com/AlexxIT/XiaomiGateway3
Mi Smart Power Plug 2 (Wi-Fi and Bluetooth Gateway) (chuangmi.plug.212a01)
1.https://github.com/rytilahti/python-miio
https://github.com/rytilahti/python-miio/issues/844
https://www.msly.cn/boards/topic/5241
2.
https://github.com/syssi/xiaomiplug/issues/20
Aqara hub
Aqara hub
all aqara hub must pair in mi home mode,use some integration for mijia hub
lumi.gateway.aqhm01
ZHWG11LM
use XIAOMI MIIO integration
https://www.home-assistant.io/integrations/xiaomi_miio#xiaomi-gateway
European version lumi.gateway.mieu01 ZHWG11LM-763
use XIAOMI MIIO integration
Aqara Hub in Home Assistant
Aqara Hub in Home Assistant, without HomeKit (mi home mode) 2020-06-23
Guide to rooting lumi.gateway.aqhm01 and making it work with Home Assistant without resorting to HomeKit.
https://www.msly.cn/lenovo-ideacentre-600-all-in-one-pc
Aqara Hub M1S(gen1) in Home Assistant - mi home mode
way 2:mi home app +china server by Homekit Controller (mi home mode)
Aqara-Hub-M1S-EDB6
only 2 objects are inside hub after integration via Homekit controller:
light bulb and sensor.lumi_acn01_edb6_illumination
way 3:mi home app +china server by AqaraGateway integration (mi home mode)
https://github.com/niceboygithub/AqaraGateway
Mi Home mode
https://github.com/niceboygithub/AqaraGateway
blog:https://bbs.iobroker.cn/t/topic/12497
Aqara Hub M1S(gen1) in Home Assistant - aqara home mode
way 1:aqara home app +china server by Homekit Controller (aqara home mode)
Aqara-Hub-M1S-EDB6
only 2 objects are inside hub after integration via Homekit controller:
light bulb and security system
Aqara Hub M1S(gen2) in Home Assistant
way 1. aqara home app +Europe server by Homekit Controller (aqara home mode)
https://community.home-assistant.io/t/aqara-hub-m1s-gen-2/488481
Aqara Hub E1 (EU), Aqara G2H (CN), Aqara H1 (CN), Aqara M1S (CN), Aqara M2 (CN), Aqara P3 (CN)
https://github.com/niceboygithub/AqaraGateway
Yeelight
1.Yeelight wifi devices 灯接入HA
Yeelight wifi灯接入HA有三种方式:
https://www.msly.cn/boards/topic/9337/ha#11301
Yeelight wifi bulbs and ceiling app instruction manual
Ceiling Light pairing to Yeelight App
https://www.msly.cn/boards/topic/14466/ceiling-light-pairing-to-yeelight-app
https://www.msly.cn/boards/topic/14443/yeelight-wifi-bulbs-and-ceiling-app-instruction-manual#20019
How to Connect Yeelight to Google Home and Google Assistant
https://www.msly.cn/boards/topic/14465/how-to-connect-yeelight-to-google-home-and-google-assistant
ewelink
Sonoff LAN
https://www.matterxiaomi.com/boards/topic/15726/third-party-integrationsonoff-lan
Comments
Comments are closed