Skip to content

djrarky/tplink-hs110-telegraf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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"

About

telegraf exporter for HS110 plugs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages