This is a command-line utility for controlling and monitoring (via a Prometheus exporter) TP-Link's Kasa Smart Plugs.
I test this against my Kasa KP115.
NOTE: This project is not yet finished! While the API client is fully implemented, only the info
command is implemented as of yet.
I wanted to remote control and monitor the energy usage of a few devices in my house using custom software, so I bought a few of TP-Link's Kasa Smart Plugs as online reviews mentioned they had an open API which exposed lots of data and did not require linking an online account, both of which turned out to be true.
I originally made this in February of 2022 as my first Go project. However, it was not published here straight away, hence why my RCON and Healthcheck projects were published before this.
Copyright (C) 2022 viral32111.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with this program. If not, see https://www.gnu.org/licenses.