fishbigger / TapoP100

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

Add getDeviceUsage #72

Open IJMacD opened 2 years ago

IJMacD commented 2 years ago

getDeviceUsage returns time_usage (in minutes) and power_usage (actually cumulative energy in Wh) over {today, 7 days, 30 days} for L530 bulb and P110 socket.

(I haven't actually tested on a P100 socket)