[gaomd Customized] Homebridge plugin for Mi Air Purifier.
Branch: master
Clone or download
Pull request Compare This branch is 8 commits ahead, 23 commits behind seikan:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE.md
README.md
example.config.json
index.js
package-lock.json
package.json

README.md

homebridge-mi-air-purifier

This is Xiaomi Mi Air Purifier plugin for Homebridge. Since Apple Homekit is not supporting air purifier device yet, this plugin will add the air purifier as Fan and Air Quality Sensor to your Home app.

mi-air-purifier

Features

  • Switch on / off.

  • Control modes:

    • Idle / Off: Lift fan speed to 0% from Home app.

    • Auto: Lift fan speed between 1 - 60%.

    • Silent: Lift fan speed between 61 - 80%.

    • Favorite / High: Lift fan speed great than 80%.

      Notes: Alternatively, you can ask Siri to change the fan speed within the range to adjust the air purifier mode. Example:

      Hey Siri, change the air purifier speed to 100.
      

  • Display temperature.

  • Display humidity.

  • Display air quality.

Installation

  1. Install required packages.

    npm install -g homebridge-mi-air-purifier miio
    

  2. Add following accessory to the config.json.

      "accessories": [
        {
          "accessory": "MiAirPurifier",
          "name": "Air Purifier",
          "showTemperature": true,
          "showHumidity": true,
          "showAirQuality": true
        }
      ]
    

    Notes: Set value for showTemperature, showHumidity, showAirQuality to true or false to show or hide these sensors in Home app.

  3. Restart Homebridge, and your Mi air purifier will be discovered automatically.

License

See the LICENSE file for license rights and limitations (MIT).