Xiaomi Humidifier plugin for HomeBridge. Plugin is based on On HomeKit Fan service currently.
Thanks for Mr.Yin , nfarina(the author of homebridge), OpenMiHome, aholstenson(the author of miio), all other developer and testers.
npm install -g miio homebridge-xiaomi-humidifier
"type" is optional, "Fan" value means that device will be displayed as Fan device, otherwise - as Humidifier/Dehumidifier device (iOS 11 and above)
"platforms": [{
"platform": "MiHumidifierPlatform",
"deviceCfgs": [{
"ip": "192.168.1.xxx",
"token": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"deviceName": "room Humidifer",
"deviceDisable": false,
"temperatureName": "room temperature",
"temperatureDisable": false,
"humidityName": "room humidity",
"humidityDisable": false,
"buzzerSwitchName": "Humidifer buzzer switch",
"buzzerSwitchDisable": true,
"ledBulbName": "Humidifer led switch",
"ledBulbDisable": true,
"type":"Fan"
}]
}]
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.
If token is "???", then reset device and connect device created Wi-Fi hotspot.
Run following command:
miio --discover --sync
Wait until you get output.
For more information about token, please refer to OpenMiHome and miio.
1.support for XiaoMi Humidifier as Fan Service (HomeKit Humidifier type is not available yet).