-
Notifications
You must be signed in to change notification settings - Fork 44
what metric is the power property on getPowerUsage()? #25
Comments
Could you check in the Kasa app at the same time and see how it represents the same data? There should be a relation. Maybe you can send a screen shot of the app showing the power usage, and the result of the API method call, both taken at approximately the same time? Thanks. |
Any updates on this? |
It is Watts - however I wonder what the "total" value is as this one does not sum up to any of the values presented in Kasa APP - nor does it fit to the real total (lifetime) value. |
I have a new HS110, with (presumably) newer firmware. This plug will return a different JSON. it is structured to show the unit of a measurement too.
The units being milliwatts, watthour, milliampere and millivolt. I would like to add to this that I am NOT using the tplink-cloud-API, but that I am reading this data directly from the device by opening a socket connection to it over the local network. But this shouldn't make a big difference. |
Hey guys maybe I can help with this, for example, the UK plug HS110 uses the string "total" and the EU use "total_wh". I am also developing a small project for the TP-link community that have iOS/iPad Here is the Swift class that I use to convert JSON to object, I think it can help.
|
Is this kWh?
{"power": 304.581534, "total": 0.879, "current": 4.13536, "voltage": 121.355707, "err_code": 0}
The text was updated successfully, but these errors were encountered: