Skip to content

davidchilin/Kasa-FlaskLight

 
 

Repository files navigation

Kasa FlaskLight

FlaskLight updated with color picker from FlexiColorPicker https://github.com/DavidDurman/FlexiColorPicker. This project was updated so I could get some practice with llm. Used older Kasa Smartbulb library pyHS100, but you can also update to python-kasa which uses asyncio.

image

  • Avoid using vendor app
  • How to use?
    • Connect the KASA bulb to your wifi using their mobile app
    • Change the bulb = SmartBulb("192.168.1.253") in app.py to the IP of your bulb
    • Run pip3 install -r requirements.txt
    • Run ./run.sh
    • Connect to localhost:8080, or whatever you want to set, at the very end of app.py
  • How do I find the IP of my bulb?
    • Run pyhs100 with no arguments in a shell after installing the requirements with pip
  • Help, I can't access the interface!
    • By default Flask runs the dev server bound to 127.0.0.1 (localhost) only, if you're running the app on a different machine locally, you'll need to run FLASK_APP=app.py flask run -h 0.0.0.0 to bind to all IPs

About

Flask app web interface for TP-Link KASA smart bulb using pyHS100

Topics

Resources

License

Stars

Watchers

Forks

Languages

  • JavaScript 49.2%
  • Python 41.9%
  • CSS 8.6%
  • Shell 0.3%