Exporting energy consumption data from Kasa smart plugs - python script
Hi all,
I've seen a few threads about how you can't export energy consumption data from the Kasa app.
Until TP Link decides to add this feature I've written this python script which can export the data from the switch to a CSV file for a given date range:
https://gist.github.com/liam-russell/a76a1c40427968dad41455ed8644f84e
It does require a little bit of IT knowledge, as you need to install Python, edit the date range in the file and run the script.
The advantage of this over other solutions is that you don't need to keep software constantly running on a phone or computer.
The CSV file can be imported into Google Sheets or Excel.
I hope this helps someone!