GithubHelp home page GithubHelp logo

script.limitlesslightcontrol's Introduction

script.LimitlessLightControl

This project enables control of LimitlessLED/MiLight bridges and light groups directly from Kodi without the need for running an additional home automation controller. It has the ability to set lighting scenes based on Kodi activity (e.g. when playing a video). With scenes configured to control the color and brightness of selected light groups, you can then associate them with activities.
The script can automate the transition between scenes, based on the present activity or you can set the scenes manually.

The lights are also marketed as EasyBulb, AppLight, AppLamp, MiLight, LEDme, dekolight or iLight

An example setup may have:

  • when playing a movie - dim the lights and set the color to red
  • when pausing, lighten the color, say yellow, and brigher...so I can find my M&M's
  • when resuming, return to the movie settings
  • when stopping, set to normal brightness

Setup

While there are many options, setup is fairly straight forward.

  • Choose "settings" or "configure plugin"
  • set bridge settings (only 1 bridge supported right now, more to come)

Activities

Lighting scenes can be automatically applied when an event occurs (activity)

  • Enable Activities
  • Select which scene should apply to each activity
    • Movie - When played from your library, we can differentiate between movies and TV
    • TV - again, when played from your library
    • Video - When video playback starts, but the source is not your library (e.g. a streaming plugin or direcly from file/NAS/SMB etc) we can't differentiate. WOrking on ways to differentiate
    • Music - when you are playing music (note the "disco" option of the lights is not yet implemented.)
    • Stop - when playback ends, is stopped or terminates
    • Pause - when playback is paused (intermission :-) )
    • Startup - when Kodi starts (when script starts in reality)
    • Shutdown - when kodi shutsdown/script shuts down
      • to do nothing when an activity occurs, select the "None" scene
  • Now go configure the scenes

Scenes

Scenes configure a lighting configuration (which lights/lightGroups, color, brightness etc)

  • Select the lightGroups to be involved
  • Configure the color and Brightness
    • 0 Brightness = off
  • Scenes available to configure are
    • Normal - recommend using this as you "on" light
    • Dimmed - recommend setting this as your preferred dimmed or 'sexy-time' light
    • Reading - recommend an orange or yellow, slightly dimmed setting which seems comfortable for reading
    • Video - recommend a red or blue light, works well behind the TV
    • Movie - recommend a red or blue light, works well behind the TV
    • TV - recommend a red or blue light, works well behind the TV
    • Music - recommend...no recommendation, I'm just not cool enough
    • Off - recommend using this to turn desired lights off. I sued this as my schutdown activities scene

Menu Integration

Various skins allow menu customization. In my case, I am using the "Arctic Zephyr" skin and have configured various actions (see the screenshots)

  • LightControl - this just calls the script directly with no parameters. Alternatively you can run the action: RunScript(script.limitlessLightControl)
  • Lights-On - RunScript(script.limitlessLightControl,"scene","Normal")
  • Lights-Off - RunScript(script.limitlessLightControl,"scene","Off")
  • Lights-Settings - RunScript(script.limitlessLightControl,"settings")
  • Lights-Events - RunScript(script.limitlessLightControl,"toggle")

Video

youtube Demo

Screenshots

001 002 003 004 005 006

ToDo

  • Disco Mode (easy to do)
  • Multiple bridges (need more lights and bridges)
  • Dynamic TV/Movie color (based on average picture color)
  • Dynamic Music color (based on music beat)
  • Test with a v5 bridge (which resolves some responsiveness problems. If you suffer these, reboot your bridge)

script.limitlesslightcontrol's People

Contributors

twistedroutes avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

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.