A TP-Link HS110 smart plug data exporter for InfluxDB using the tplink-smarthome-api.
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
Example power_consumption
timeseries measurement point:
{
"voltage_mv": 230983,
"current_ma": 426,
"power_mw": 59497,
"total_wh": 30964,
}