Skip to content

Energy data exporter for the TP-Link HS110 smart plug using the InfluxDB timeseries database and a Grafana dashboard for visualization.

License

Notifications You must be signed in to change notification settings

WouterStemgee/tplink-hs110-energy-data-exporter

Repository files navigation

TP-Link HS110 Energy Data Exporter

CI DockerHub License

A TP-Link HS110 smart plug data exporter for InfluxDB using the tplink-smarthome-api.

Usage: Docker

docker run \
  -e TIMER=1000 \                   # Interval between measurement points
  -e DEVICE_IP_ADDR=10.20.0.110 \   # Smart device IP address
  -e INFLUX_HOST=localhost \        # InfluxDB hostname
  -e INFLUX_DB=hs110_db \           # InfluxDB database name
  -e HOSTNAME=hs110 \               # Smart device name (can be anything) 
  -d wouterstemgee/hs110influx

Output

Grafana screenshot

Data Format

Example power_consumption timeseries measurement point:

{
  "voltage_mv": 230983,
  "current_ma": 426,
  "power_mw": 59497,
  "total_wh": 30964,
}

About

Energy data exporter for the TP-Link HS110 smart plug using the InfluxDB timeseries database and a Grafana dashboard for visualization.

Topics

Resources

License

Stars

Watchers

Forks