• Stars
    star
    174
  • Rank 219,104 (Top 5 %)
  • Language
    JavaScript
  • License
    Other
  • Created over 7 years ago
  • Updated almost 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A Xiaomi Mi air purifier plugin for Homebridge.

homebridge-mi-air-purifier

This is Xiaomi Mi Air Purifier plugin for Homebridge. This plugin will add the air purifier and Air Quality Sensor to your Home app. This version is working with iOS 11 to add the device as air purifier in Home app.

mi-air-purifier

Features

  • Switch on / off.

  • Switch auto / manual mode.

  • Change fan rotation speed.

  • Switch child lock on / off.

  • Switch LED light on / off.

  • Switch buzzer sound on / off.

  • Display temperature.

  • Display humidity.

  • Display air quality.

Installation

  1. Install required packages.

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

    ​

  2. Make sure your Homebridge server is same network with your air purifier, then run following command to discover the token.

    miio discover --sync
    
  3. You may need to wait few minutes until you get the response similar to below:

    Device ID: 49466088
    Model info: Unknown
    Address: 192.168.1.8
    Token: 6f7a65786550386c700a6b526666744d via auto-token
    Support: Unknown
    

    ​

  4. Record down the Address and Token values as we need it in our configuration file later.

  5. If you are getting ?????????????? for your token value, please reset your device and connect your Homebridge server directly to the access point advertised by the device.

  6. Then run the command again.

    miio discover --sync
    

    ​

  7. Add following accessory to the config.json.

      "accessories": [
        {
          "accessory": "MiAirPurifier",
          "name": "Bed Room Air Purifier",
          "ip": "ADDRESS_OF_THE_AIR_PURIFIER",
          "token": "TOKEN_FROM_STEP_3",
          "showTemperature": true,
          "showHumidity": true,
          "showAirQuality": true,
          "showLED": true,
          "showBuzzer": true
        },
        {
          "accessory": "MiAirPurifier",
          "name": "Living Room Air Purifier",
          "ip": "ADDRESS_OF_THE_AIR_PURIFIER",
          "token": "TOKEN_FROM_STEP_3",
          "showTemperature": true,
          "showHumidity": true,
          "showAirQuality": true,
          "showLED": true,
          "showBuzzer": true
        }
      ]
    

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

    ​

  8. Restart Homebridge, and your Mi air purifier will be added to Home app.

License

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

More Repositories

1

Cart

A simple PHP shopping cart class to use in ecommerce web applications.
PHP
192
star
2

homebridge-xiaomi-mi-robot-vacuum

XiaoMi Mi robot vacuum plugin for Homebridge.
JavaScript
64
star
3

homebridge-mi-camera

Xiaomi Mi camera plugin for Homebridge.
JavaScript
36
star
4

NodeList

A simple server inventory system to keep track VPS and dedicated servers.
PHP
28
star
5

SolusVMController

SolusVMController is PHP application to control all your SolusVM based VPSes under one interface. This application access your VPS using API provided by Soluslabs. Please make sure your VPS provider has enabled API access in order to use this application.
20
star
6

homebridge-sonoff-basic-espeasy

A Sonoff basic plugin for Homebridge. Based on ESPEasy firmware.
JavaScript
17
star
7

carotu

A lightweight page to keep track of your server inventory.
PHP
11
star
8

homebridge-sony-android-tv

Sony Android TV plugin for Homebridge.
JavaScript
8
star
9

Session

A very simple PHP session library.
PHP
7
star
10

RandomUserAgent

Randomly generate browser user agent that looks valid.
PHP
6
star
11

NoCSRF

A simple PHP class to stop Cross-Site Request Forgery (CSRF).
PHP
6
star
12

Mailer

A very simple PHP SMTP email client.
PHP
4
star
13

Image

A very simple PHP image library.
PHP
4
star
14

Encryption

A very simple PHP encryption library.
PHP
4
star
15

Page

A collection of useful page functions for PHP web application.
PHP
3
star
16

SimpleDB

A simple file based database using PHP.
PHP
3
star
17

DB

A simple PDO wrapper I was using for years.
PHP
2
star
18

HTTP

A very simple cURL wrapper for PHP.
PHP
2
star