telegraf-xiaomi-air-purifier
Telegraf plugin for the Xiaomi Air Purifier (supports versions: 2, 2pro, 2s)
For 2s version you have to provide --token
option
Requirements
- Device have to be accesable (in the same network)
- You have to have the python in at least 3.5 version
Installation
$ pip install telegraf-xiaomi-air-purifier
Usage
$ telegraf-xiaomi-air-purifier --ip DEVICE_IP_ADDRESS
Example telegraf configuration
[[inputs.exec]]
commands = ["telegraf-xiaomi-air-purifier --ip DEVICE_IP_ADDRESS"]
data_format = "influx"
[inputs.exec.tags]
location = bedroom
License
See LICENSE file.