Coder Social home page Coder Social logo

kasa-nice's Introduction

Kasa-Nice

A desktop GUI application for python-kasa to control devices in your local network.

Uses the NICEGUI library to launch a desktop application (or browser, through http://localhost:8080/) from which you are able to control your TP-Link Kasa smart home devices.

Note: the app can only discover devices in your LOCAL NETWORK, it has no access to your cloud account.

Tested on Windows 10 only so far, BUT should work on other OSes as well. Lemme know ;)

kasa-nice screenshot

How to install

You can download the latest release.

How to customize

This application is written in Python primarily using the modules Python-kasa, Nicegui and Plotly.

Supported devices

As supported by the python-kasa module:

Plugs

  • HS100
  • HS103
  • HS105
  • HS107
  • HS110
  • KP105
  • KP115
  • KP125
  • KP401
  • EP10

Power Strips

  • EP40
  • HS300
  • KP303
  • KP200 (in wall)
  • KP400
  • KP405 (dimmer)

Wall switches

  • ES20M
  • HS200
  • HS210
  • HS220
  • KS200M
  • KS220M
  • KS230

Bulbs

  • LB100
  • LB110
  • LB120
  • LB130
  • LB230
  • KL50
  • KL60
  • KL110
  • KL120
  • KL125
  • KL130
  • KL135

Light strips

  • KL400
  • KL420
  • KL430

kasa-nice's People

Contributors

uni-byte avatar

Stargazers

 avatar  avatar  avatar  avatar Tyler Wengerd avatar  avatar Hananiel Sarella avatar FusedStamen avatar  avatar Max avatar David Newell avatar

Watchers

David Newell avatar  avatar

kasa-nice's Issues

Arch linux - python 3.11 - Semlock created in a fork context.

it looks more than just a compatibility issue but more an actual bug.

(kasa-nice) sal โžœ  kasa-nice (main) python kasa_main_GUI.py                                                                                         
Traceback (most recent call last):                                                                                                                  
  File "/home/gbin/projects/Kasa-Nice/kasa-nice/kasa_main_GUI.py", line 257, in <module>                                                            
    ui.run(favicon='๐Ÿ ', native=True, title="Kasa Smart", window_size=(1024, 768))                                                                  
  File "/home/gbin/.pyenv/versions/kasa-nice/lib/python3.11/site-packages/nicegui/run.py", line 178, in run                                         
    ChangeReload(config, target=globals.server.run, sockets=[sock]).run()                                                                           
  File "/home/gbin/.pyenv/versions/kasa-nice/lib/python3.11/site-packages/uvicorn/supervisors/basereload.py", line 49, in run                       
    self.startup()                                                                                                                                  
  File "/home/gbin/.pyenv/versions/kasa-nice/lib/python3.11/site-packages/uvicorn/supervisors/basereload.py", line 85, in startup                   
    self.process.start()                                                                                                                            
  File "/usr/lib/python3.11/multiprocessing/process.py", line 121, in start                                                                         
    self._popen = self._Popen(self)                                                                                                                 
                  ^^^^^^^^^^^^^^^^^                                                                                                                 
  File "/usr/lib/python3.11/multiprocessing/context.py", line 288, in _Popen                                                                        
    return Popen(process_obj)                                                                                                                       
           ^^^^^^^^^^^^^^^^^^                                                                                                                       
  File "/usr/lib/python3.11/multiprocessing/popen_spawn_posix.py", line 32, in __init__                                                             
    super().__init__(process_obj)                                                                                                                   
  File "/usr/lib/python3.11/multiprocessing/popen_fork.py", line 19, in __init__                                                                    
    self._launch(process_obj)                                                                                                                       
  File "/usr/lib/python3.11/multiprocessing/popen_spawn_posix.py", line 47, in _launch                                                              
    reduction.dump(process_obj, fp)                                                                                                                 
  File "/usr/lib/python3.11/multiprocessing/reduction.py", line 60, in dump                                                                         
    ForkingPickler(file, protocol).dump(obj)                                                                                                        
  File "/usr/lib/python3.11/multiprocessing/synchronize.py", line 107, in __getstate__                                                              
    raise RuntimeError('A SemLock created in a fork context is being '                                                                              
RuntimeError: A SemLock created in a fork context is being shared with a process in a spawn context. This is not supported. Please use the same cont
ext to create multiprocessing objects and Process.     

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.