cwakefie27 / TapoConnect

Unofficial TP-Link Tapo smart device library for C#.
14 stars 6 forks source link

Get Energy Usage returns the wrong data #4

Closed owaits closed 8 months ago

owaits commented 8 months ago

The method GetEnergyUsageAsync returns DeviceGetInfoResult which contains no information about the energy usage. It should return a json object that contains the correct energy usage data from the device.

cwakefie27 commented 8 months ago

I don’t currently have a device that has this feature to test with. If you would like to alter the code it should not be too difficult.

On Sat, Feb 17, 2024 at 12:06 PM Oliver Waits @.***> wrote:

The method GetEnergyUsageAsync returns DeviceGetInfoResult which contains no information about the energy usage. It should return a json object that contains the correct energy usage data from the device.

— Reply to this email directly, view it on GitHub https://github.com/cwakefie27/TapoConnect/issues/4, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHPPOGMXPAJK6S25HM5NYLLYUDPQ3AVCNFSM6AAAAABDNOG57WVHI2DSMVQWIX3LMV43ASLTON2WKOZSGE2DAMZRG4YTIMI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

owaits commented 8 months ago

This appears to be fixed in this fork https://github.com/lcervo/TapoConnect but there is no pull request.

cwakefie27 commented 8 months ago

I just pulled in that version. I have not tested it so please proceed knowing it is untested code. Thanks