Homebridge Plugin for Xiaomi Mi Smart Plug
If working with your device too, please open an issue to add this list.
Before installing this plugin, you should install Homebridge using the official instructions.
npm install -g homebridge-mi-smart-plug --unsafe-perm
config.json
manually to add your plug. See below for instructions on that."accessories": [
{
"accessory": "MiSmartPlug",
"name": "Mi Smart Plug",
"ip": "X.X.X.X",
"token": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
}
]
Install the miio npm package
npm install -g miio
Make sure your computer is on the same network with your smart plug, then run following command.
miio discover
You may need to wait few seconds until you get the response similar to below:
Device ID: 127261362
Model info: Unknown
Address: X.X.X.X
Token: ???
Support: Unknown
This Address will be your device IP address in configuration
This is no so straight forward but it shouldn't be to hard either. I don't plan to keep and updated tutorial on this but there a lot of good ones online so you can use google to find them.
A very comprehensive one can be found here