Mi Smart Power Plug 2 (Wi-Fi and Bluetooth Gateway)
Mi Smart Power Plug 2 (Wi-Fi and Bluetooth Gateway)
step 1.Connect to wifi Gateway
Download the Xiaomi app https://play.google.com/store/apps/details?id=com.xiaomi.smarthome
Create an account
Add the Mi Smart Power Plug 2 (Wi-Fi and Bluetooth Gateway) in the app (hold button on Plug for 5 seconds to enter discovery mode)
Extract key
Folow the instuctions here: https://github.com/PiotrMachowski/Xiaomi-cloud-tokens-extractor
Copy the output
You should get an output something like the following
Devices found for server "cn":
--------
way 1.xiaomi miio raw Integration
Install xiaomi miio raw Integration
Navigate to HACS > Integrations
Three dots top right > Custom repositories
Custom repository URL = https://github.com/syssi/xiaomi_raw
Category = Integration
Add
This may take a while, and there is a posibility you will run into GitHub rate limits
Reboot HA
output
Add xiaomi miio raw Integration
Configuration > Integrations
Add Integration button
Seach for 'Xiaomi MiIO Raw'
Add
Host: <gateway_ip>
Password:
Access Token: <gateway_token>
Model: Aqara Gateway M1S
If everything went well you should see home assistant add some new devices
Comments
Comments are closed