Homebridge Mihome Outlet
XiaoMi outlet plugins for HomeBridge.
Thanks for nfarina(the author of homebridge), OpenMiHome, aholstenson(the author of miio), all other developer and testers.
Note: I have only a part of these devices, so some devices don’t have tested. If you find bugs, please submit them to issues.
this plugin uses the miio version 0.15.6 or newer, unlike many other plugins version 0.14.1. Timeouts, API errors are now a thing of the past
1.MiPlugBase
2.MiPlugBaseWithUSB
3.MiIntelligencePinboard
4.MiQingPinboard
5.MiQingPinboardWithUSB
npm install -g homebridge-mihome-outlet
"platforms": [{
"platform": "MiHomeOutletPlatform",
"outletDevices": [{
"type": "MiPlugBase",
"ip": "192.168.1.xx",
"token": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"outletName": "office room outlet",
"outletDisable": false,
"temperatureName": "office room outlet temperature",
"temperatureDisable": false,
"switchLEDName": "office room led light switch",
"switchLEDDisable": false
}]
}]
"platforms": [{
"platform": "MiHomeOutletPlatform",
"outletDevices": [{
"type": "MiPlugBaseWithUSB",
"ip": "192.168.1.xx",
"token": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"outletName": "office room outlet",
"outletDisable": false,
"temperatureName": "office room outlet temperature",
"temperatureDisable": false,
"switchUSBName": "office room outlet usb switch",
"switchUSBDisable": false
}]
}]
"platforms": [{
"platform": "MiHomeOutletPlatform",
"outletDevices": [{
"type": "MiPlugBase",
"ip": "192.168.1.xx",
"token": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"outletName": "office room outlet",
"outletDisable": false,
"temperatureName": "office room outlet temperature",
"temperatureDisable": false,
"switchLEDName": "office room led light switch",
"switchLEDDisable": false
}, {
"type": "MiPlugBaseWithUSB",
"ip": "192.168.1.xx",
"token": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"outletName": "office room outlet",
"outletDisable": false,
"temperatureName": "office room outlet temperature",
"temperatureDisable": false,
"switchUSBName": "office room outlet usb switch",
"switchUSBDisable": false
}, {
"type": "MiIntelligencePinboard",
"ip": "192.168.1.xx",
"token": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"outletName": "office room outlet",
"outletDisable": false,
"temperatureName": "office room outlet temperature",
"temperatureDisable": false,
"switchLEDName": "office room led light switch",
"switchLEDDisable": false
}, {
"type": "MiQingPinboard",
"ip": "192.168.1.xx",
"token": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"outletName": "office room outlet",
"outletDisable": false,
"temperatureName": "office room outlet temperature",
"temperatureDisable": false
}, {
"type": "MiQingPinboardWithUSB",
"ip": "192.168.1.xx",
"token": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"outletName": "office room outlet",
"outletDisable": false,
"temperatureName": "office room outlet temperature",
"temperatureDisable": false
}]
}]
Wait until you get output similar to this:
miio --discover
“xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx” is token.
Device ID: xxxxxxxx
Model info: Unknown
Address: 192.168.1.xx
Token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx via auto-token
Support: Unknown
Wait until you get output.
miio --discover --sync