softScheck / tplink-smartplug

TP-Link WiFi SmartPlug Client and Wireshark Dissector
Apache License 2.0
1.14k stars 296 forks source link

THANK YOU (plus a question on skewed energy monitoring) #39

Open aleqx opened 6 years ago

aleqx commented 6 years ago

I've spent the afternoon trying to sniff the https comms from the android app to see the API commands it was issuing to the smartplug ... and eventually found your repo.

A thousand thanks! I'm now finally able to solve a very pesky problem.

Unrelated question, if I may. I have a nifty frequency inverter running on a HS110 smartplug with energy monitoring. The problem is that the HS110 energy monitoring is sometimes reading completely erratic values for the power (so either current, voltage, or both). Every once in a while, instead of a constant 264-266W power draw, it jumps to something like a few tens of million W for like half a second. This is enough to completely skew all energy measurements for the day or the total, making it look like I'm consuming the entire planet's energy supply, see screenshot below.

What do the Igain and Vgain do exactly? Can this issue be fixed by changing those values?