This project is forked from homebridge-mi-air-purifier.
This is Xiaomi Mi Air Purifier plugin for Homebridge. Since Apple Homekit doesn't support air purifier on iOS 10, you need to upgrade your iOS devices to iOS 11 or above.
- Switch on / off.
- Control modes:
- Auto: Auto Mode on Mi Air Purifier.
- Manual: Favourite Mode on Mi Air Purifier.
- Change Favourite Mode speed.
- Switch LED and brightness
- Display temperature.
- Display humidity.
- Display air quality.
- Support latest version of miio.
-
Install required packages.
npm install -g homebridge-xiaomi-air-purifier miio
-
Add following accessory to the
config.json
."accessories": [ { "accessory": "XiaoMiAirPurifier", "name": "Air Purifier", "showTemperature": true, "showHumidity": true, "showAirQuality": true, "address": "10.0.0.2", "token": "a829f4cd88765425ce1ca8eb2cfed74f", "model": "zhimi.airpurifier.m1" } ]
Use
miio --discover
to find out all mi devices, with their address, identifiers, models and tokens. Visit this website for more information. -
Restart Homebridge, and your Mi air purifier will be discovered automatically.
- Stuck on 'turning off' after turn off the air purifier. It seem to be a bug of homebridge.
See the LICENSE file for license rights and limitations (MIT).