fishbigger / TapoP100

A module for controlling the TP-Link Tapo P100 Plugs
MIT License
567 stars 139 forks source link

Method to get bulb energy usage? #81

Closed merc5555 closed 1 year ago

merc5555 commented 1 year ago

Do you have any idea how to get at the energy usage of a Tapo bulb? The "get_energy_usage" method which works for the plug returns an error for the bulb, but the Tapo iOS app shows energy consumption for the bulbs, so there must be a way!

fishbigger commented 1 year ago

Unfortunately I don't have a bulb with energy monitoring to test. Can you provide more details about the error?

merc5555 commented 1 year ago

Managed to sort it thanks. You have to use the get_device_usage method. It gives you totals for 1, 7 and 30 days but not current power unfortunately.