Giter Club home page Giter Club logo

domoticz-airpurifier's Introduction

domoticz-AirPurifier

Domoticz plugin for Xiaomi AirPurifier 2

Installation

pip3 install -U python-miio
cd YOUR_DOMOTICZ_PATH/plugins
git clone https://github.com/kofec/domoticz-AirPurifier

First use script "MyAir.py" to verify if you have needed python modules e.g:

./MyAir.py 192.168.1.1 850000000000000000000000002 --debug
./MyAir.py -h
usage: MyAir.py [-h] [--mode {Auto,Favorite,Idle,Silent}]
                [--favoriteLevel {0,1,2,3,4,5,6,7,8,9,10}] [--power {ON,OFF}]
                [--debug]
                IPaddress token

Script which comunicate with AirPurfier 2.

positional arguments:
  IPaddress             IP address of AirPurfier
  token                 token to login to device

optional arguments:
  -h, --help            show this help message and exit
  --mode {Auto,Favorite,Idle,Silent}
                        choose mode operation
  --favoriteLevel {0,1,2,3,4,5,6,7,8,9,10}
                        choose mode operation
  --power {ON,OFF}      power ON/OFF
  --debug               if define more output is printed
  • check where modules was installed and in file plugin.py find and correct below variable (in my case 2 instances) if needed pathOfPackages = '/usr/local/lib/python3.5/dist-packages'

Restart Domoticz

  • Go to Setup > Hardware and create new Hardware with type: AirPurfier
  • Enter name (it's up to you), user name and password if define. If not leave it blank

Update

cd YOUR_DOMOTICZ_PATH/plugins/domoticz-AirPurifier
git pull
  • Restart Domoticz

Troubleshooting

In case of issues, mostly plugin not visible on plugin list, check logs if plugin system is working correctly. See Domoticz wiki for resolution of most typical installation issues http://www.domoticz.com/wiki/Linux#Problems_locating_Python

domoticz-airpurifier's People

Contributors

kofec avatar

Watchers

James Cloos 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.