Skip to content

Latest commit

 

History

History
41 lines (27 loc) · 1.48 KB

README.md

File metadata and controls

41 lines (27 loc) · 1.48 KB

Dyson Pure Link Devices Plugin

Our homes get more and more smart devices connected to the Internet. Some of us have different air purifier devices because the air quality especially in big cities leaves much to be desired.

There are many options for purifier devices and one of them is Dyson.

You can read its sensors data and use it with other smart devices, personal projects like smart home or just for fun and to get some practical experience.

To connect to Dyson Link device, we use MQTT protocol and Python 2.7 code. If you need it in Python 3 you can easily migrate to it by changing import of Queue module to lowercase queue.

Getting sensors readings:

python run_plugin.py

Change Fan mode:

python run_plugin.py –fan FAN|OFF|AUTO

Change standby mode:

python run_plugin.py –standby ON|OFF

Python 2.7

get pip for python 2.7 curl https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip.py python get-pip.py

python -m pip install pyyaml python -m pip install paho-mqtt python -m pip install collectd python -m pip install pyqueue

cp dyson_pure_link.yaml.example dyson_pure_link.yaml

DYSON_PASSWORD: '***' (check the box or unit) DYSON_SERIAL: 'NM1-TW-HFA0968A' (remove prefix DYSON and suffix od model) DYSON_IP: '192.168.2.' (user your router to find the IP) DYSON_PORT: 1883 # Default port DYSON_TYPE: 465 # Usully one of 455, 465, 475 (see suffix on the box)

do to run with sudo if python packages installed without sudo