TP Link HS110 energy usage

I have bought 4 TP Link HS110 to do some research where my money is going :grinning:.

I have the following configuration:


tplinksmarthome:hs110:A96659            [ deviceId="A96659", refresh=60 ]
tplinksmarthome:hs110:A90471            [ deviceId="A90471", refresh=60 ]
tplinksmarthome:hs110:A93296            [ deviceId="A93296", refresh=60 ]
tplinksmarthome:hs110:A95018            [ deviceId="A95018", refresh=60 ]

items file:

Switch	Switch_VH_Meterkast_Serverpark  "Serverpark"           { channel="tplinksmarthome:hs110:A90471:switch" }
	Number:Power		Sensor_VH_Meterkast_Serverpark_power		(gPowerMeasurement) 	{ channel="tplinksmarthome:hs110:A90471:power" }
	Number:Power		Sensor_VH_Meterkast_Serverpark_energyUsage	(gPowerMeasurement) 	{ channel="tplinksmarthome:hs110:A90471:energyUsage" }

Now after 2 days I am trying to do some graphing with Grafana I see some difference between Kasa App and Grafana

Total consumption (energyUsage) according to Kasa app is 6.94 kWh over 57.5 hours, influx db shows the following:

> SELECT * FROM "Sensor_VH_Meterkast_Serverpark_energyUsage"
2019-10-24T18:41:34.38Z  3.692

I am pulling my hairs out over this one. Btw the other plugs show the same behaviour, values from the binding do not line up with the app.
They do however for the current use.



Does the energyUsage come close to the current daily usage?

The “Today” Total Consumption is 2,79kWh, the energyUsage reports 3,96 kWh now

I notice the same in Grafana a week ago, when I added a few Sonoff Pow R2. Seems like “SUM” in Grafana has a problem. I have not investigated this futher, as I dont really need it. I use Group in openhab insted, and then persist the group item :slight_smile:

I only use “latest value” in Grafana and the persistent value shows the same, so I think I have another problem :smirk:

Hmm, I do have a HS110 as well. But I havn´t used it alot, so both openhab and Kasa ways 0kWh… Well, atleast they agree with eachother :slight_smile: