XiaoMi outlet plugins for HomeBridge.
Thanks for nfarina(the author of homebridge), wfr(the author of mihome-binary-protocol), aholstenson(the author of miio), all other developer and testers.
1.PlugBase(米家智能插座基础版)
2.PlugBaseWithUSB(米家智能插座_USB版) ---- coming soon
3.IntelligencePinboard(米家智能插线板) ---- coming soon
4.QingPinboard(青米智能插线板_五孔位版) ---- coming soon
5.QingPinboardWithUSB(青米智能插线板_USB版) ---- coming soon
- Install HomeBridge, please follow it's README.
If you are using Raspberry Pi, please read Running-HomeBridge-on-a-Raspberry-Pi. - Make sure you can see HomeBridge in your iOS devices, if not, please go back to step 1.
- Install packages.
npm install -g miio homebridge-mi-outlet
"platforms": [{
"platform": "MiOutlet",
"accessories": [{
"type": "PlugBase",
"ip": "192.168.88.xx",
"token": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"outletName": "living room outlet",
"outletDisable": false,
"temperatureName": "living room outlet temperature",
"temperatureDisable": false
}]
}]
Open command prompt or terminal. Run following command:.
miio --discover
Wait until you get output similar to this:
Device ID: xxxxxxxx
Model info: Unknown
Address: 192.168.88.xx
Token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx via auto-token
Support: Unknown
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx is token.
1.support for PlugBase: outlet, temperature sensor.