Giter Club home page Giter Club logo

Comments (2)

zim514 avatar zim514 commented on July 19, 2024 1

Hi!

Thanks for offering to contribute. I would accept a PR for this. I think instead of making the user figure out the ID, you could loop through all the sensors and look for those that have modelid:"HUELABSENUM", and turn them all off. I think this would be a lot easier than trying to create a sensor loop/selection UI.

That said, if you want to let the user select one or multiple sensors to turn off, you could use a similar approach to the 'Select Scene Button. That logic is in core.py, look for "command == sceneSelect"

I agree that it would be better to do it on playback start/stop. You can find the logic for this in KodiGroup.py and AmbiGroup.py. There are methods called onAVStarted, onPlayBackStopped, onPlayBackPaused, which are called by Kodi when the video player does either of those actions.

You could also turn the labs back on, but doing it for only those that were turned off in the first place would be more work.

I don't really have the time to develop this myself, but if you do want to take this on, I'm happy to help point you to documentation, examples, etc

from script.service.hue.

zim514 avatar zim514 commented on July 19, 2024

Implemented

from script.service.hue.

Related Issues (20)

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.