telegraf-xiaomi-air-purifier

Telegraf plugin for Xiaomi Air Purifier


Keywords
python, telegraf, telegraf-plugin, xiaomi, xiaomi-air-purifier, xiaomi-smart-home
License
MIT
Install
pip install telegraf-xiaomi-air-purifier==0.2.0

Documentation

telegraf-xiaomi-air-purifier

Build Status PyPI version License

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.