Skip to content
/ kasa Public

Small desktop program to switch TP-Link Kasa smart plugs and switches on and off

License

Notifications You must be signed in to change notification settings

clorteau/kasa

Repository files navigation

kasa

This is a tiny desktop application that allows turning TP-Link Kasa smart plugs and switches on and off. It's written in Python using the Qt framework and runs on Linux, Windows and Mac OS X.

It uses Lubomir Stroetmann's script available at https://github.com/softScheck/tplink-smartplug at its core.

There's also a native Windows 10 only version at https://github.com/clorteau/Kasa.net.

Pre-requisites

  • Python 3.x
  • PySide2
  • Reserve your TP-Link Kasa devices' IP addresses in your DHCP server so they don't change

Configuration

Edit config.py to give names and IP addresses to your Kasa devices. An "all lights" entry will be added automatically.

You can also uncomment the line "theme = 'dark'" to enable dark theme.

Usage

GUI

Run kasa.py via python. Click the On/Off buttons to control the switches.

Screenshot

CLI

Syntax:

$ python kasa-cli.py -h
usage: kasa-cli.py [-h] target on/off

Turn lights on/off

positional arguments:
  target      the name of the light to switch on/off, or 'all'
  on/off      on or off

optional arguments:
  -h, --help  show this help message and exit

For instance:

$ python kasa-cli.py lamp on

Or:

$ python kasa-cli.py all off

About

Small desktop program to switch TP-Link Kasa smart plugs and switches on and off

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages