Skip to content

Add a disco mode to your color changing smart lights

Notifications You must be signed in to change notification settings

jezh42/smart-light-disco

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Disco Mode For (Kasa KL130) Smart Light(s)

origin disco mode gif

Fork Changes

  • Origin: smart-light-disco
    • GIF above is from origin. Doesn't display this forks functionality
  • Bulb Colour Changes:
    • Added support for full-saturation random colours
    • Changed colours to make it more of a gradient
    • Simplified code
  • GPIO Support (see below)

Explanation

Bulbs supported

  • Kasa KL130

GPIO Support

  • Added support for remote control through GPIO buttons.
    • Buttons for:
      • On/Off toggle
      • White
      • Disco
      • Orange
  • Tested on a Raspberry PI 3 Model B
  • TODO: Add a diagram of tested button setup
  • TODO: Add explanation of how to customise for different button setup

How to use

  1. npm install smart-light-disco

  2. Change host to the IP of the smart bulb in index.js

    1. const device = await client.getDevice({ host: '192.168.X.X' })

About

Add a disco mode to your color changing smart lights

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%