Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 908 Bytes

README.md

File metadata and controls

30 lines (20 loc) · 908 Bytes

Telegraf Importer for TP Link Smart plugs

For a full compatibility list, see the API maintainers list here: https://github.com/python-kasa/python-kasa#plugs

This is a first draft. Monthly logic yet to be built.

This plugin supports as many devices as you wish. Simpy follow the format:

telegraf-tplink-hs110.py plugName1 IPAddress1 plugName2 IPAddress2 plugName3 IPAddress 3 etc

Docker Configuration

See here: https://github.com/djrarky/telegraf-python3#configure

Native API Installation

PIP (pip3 on some distros)

pip install -r requirements.txt

Configure

Telegraf Setup

[[inputs.exec]]
  ## Commands array
  commands = ["python3 location/telegraf-tplink-hs110.py 'plugName1' 'IPAddress1' 'plugName2' 'IPAddress2'"]

  ## measurement name suffix (for separating different commands)
  name_suffix = "_mycollector"

  ## Data format to consume.
  data_format = "influx"