Closed cdickens77 closed 2 years ago
I just realized the informational .ToString method actually had a bug in it originally where the mW value was converted twice to W causing invalid readings for devices using the power_mw format. Revised version attached tested with both KP115 and HS110:
Thanks for the bug report! Can you open a pull request? I'd be happy to accept.
Submitted. Thanks!
Resolved by Pull #12. Closing.
The JSON emeter values exposed by a current model KP115 Smart-Plug Mini match the field maps in PowerData.cs:
However, ironically, the latest firmware for HS110 according ot my KASA app does not:
The attached PowerData.cs adds coalesce code to allow both formats.
PowerData.zip