GithubHelp home page GithubHelp logo

tonyarnold / homebridge-xiaomi-purifier Goto Github PK

View Code? Open in Web Editor NEW

This project forked from clauzewitz/homebridge-xiaomi-purifier

0.0 3.0 0.0 98 KB

A Xiaomi Mi air purifier plugin for Homebridge.

License: Other

JavaScript 100.00%

homebridge-xiaomi-purifier's Introduction

npm version

homebridge-xiaomi-purifier

This project is forked from homebridge-mi-air-purifier.

This is the 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 the unit on and off.
  • Switch between automatic and manual mode.
  • Change the fan speed.
  • Enable or disable the child lock.
  • Enable or disable the LED light.
  • Enable or disable the notification soun.
  • Display the current temperature.
  • Display the current humidity.
  • Display the current air quality.
  • Display the filter state.

Installation

  1. Install the required packages.

    npm install -g homebridge-xiaomi-purifier miio
    
  2. Make sure that your Homebridge server is on the same network as your air purifier, then run following command to discover the token.

    miio discover --sync
    
  3. You may need to wait for a few minutes until before you will receive a response similar to:

    Device ID: 49466088
    Model info: Unknown
    Address: 192.168.1.8
    Token: 6f7a65786550386c700a6b526666744d via auto-token
    Support: Unknown
    
  4. Record the Address and Token values - you'll need these for your configuration file.

  5. If you are getting ?????????????? as your token value, please reset your device and connect your Homebridge server directly to the access point advertised by the device. Once this is done, go back to Step 2 and try again.

  6. 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,
    			"enableLED": true,
    			"enableNotificationSound": 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,
    			"enableLED": true,
    			"enableNotificationSound": true
    		}
    	]

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

  7. Restart Homebridge, and your Mi Air Purifier will be added to Home.app.

License

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

homebridge-xiaomi-purifier's People

Contributors

clauzewitz avatar kondratk avatar leoneleone avatar seadog007 avatar seikan avatar tonyarnold avatar yeongrokgim avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.