The TP Link Kasa smart switches log energy consumption data over time, however the app is very limited and won't let you get out data, graph it or see historical usage. This script extracts and saves to a CSV file.
The python-kasa
library is used to communicate with the Kasa switch.
- Python must be installed
- You must be on the same wifi network as the Kasa switch