Skip to content

viral32111/kasa-smart-plug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kasa Smart Plug

CI CodeQL GitHub tag (with filter) GitHub repository size GitHub release downloads GitHub commit activity

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.

📜 Background

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 kasa-smart-plug and Healthcheck projects were published before this.

⚖️ License

Copyright (C) 2022-2023 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.