Git Product home page Git Product logo

Comments (6)

ZeroOne3010 avatar ZeroOne3010 commented on July 24, 2024

Hi there, thanks for your message! At the moment the library does not support adding new lights, you would need to do that with the official app. I looked into the official Hue documentation though, and it seems like it would be a pretty fun and straight forward feature to add.

May I ask for your specific use case for this request? It's always good to understand the greater context around feature requests. 🙂

from yetanotherhueapi.

nanaghartey avatar nanaghartey commented on July 24, 2024

Thanks for your prompt response!

Okay, well noted.

For my use case, I want a way to allow users add separate lights to their bridge without using the official app, even if they have to do it manually by providing the serial numbers of bulbs. I believe this would be a useful feature. For now, I direct users to install the hue app to add lights which few find cumbersome :(

from yetanotherhueapi.

ZeroOne3010 avatar ZeroOne3010 commented on July 24, 2024

I see, thank you! I can see the process is cumbersome indeed. How about adding the newly found lights to rooms, would you expect to need to be able to do that too?

from yetanotherhueapi.

nanaghartey avatar nanaghartey commented on July 24, 2024

Yes that would be helpful too. Thanks

from yetanotherhueapi.

ZeroOne3010 avatar ZeroOne3010 commented on July 24, 2024

Ok, I'm imagining a new method into the Hue class, something like scanForNewLights(). That would make a POST request into the endpoint that triggers a scan. It would then return a Future that would be resolved once another endpoint that tells scan status would confirm the scan has ended (takes some 40 seconds according to the docs). The Future would then return a list of new Light objects.

The Hue class could then have another new method, addLightIntoRoom(Light, Room), which would do what it says on the label.

What do you think? Unfortunately I haven't got nearly as much time to dedicate to this project as I'd like, so I'd be more than happy to welcome a pull request even... 😉

from yetanotherhueapi.

ZeroOne3010 avatar ZeroOne3010 commented on July 24, 2024

Version 2.6.0 is now out with these features! Please try. :)

from yetanotherhueapi.

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.