Comments (6)
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.
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.
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.
Yes that would be helpful too. Thanks
from yetanotherhueapi.
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.
Version 2.6.0 is now out with these features! Please try. :)
from yetanotherhueapi.
Related Issues (20)
- Add colorloop effect
- Add group 0, i.e. the "all lights" group
- NPE when bridge doesn't return sensors HOT 5
- could you make a java 11 version which includes a module-info file. THX HOT 2
- Get color of light HOT 1
- Turn on / off room without setState (color, alert, etc...) HOT 2
- Why so restrictive? HOT 7
- Add mDNS support for discovering bridges HOT 1
- Server-Sent Events HOT 7
- Implement a findByUiniqueId for lights and sensors HOT 11
- No logging by default HOT 3
- TemperatureSensor#getDegreesCelsius NPE HOT 10
- Get state ... question ? HOT 3
- Why such a restrictive State.Builder? HOT 2
- EffectType from String "prism": not one of the values accepted for Enum HOT 2
- Error when using v2 HOT 2
- JKS not found and java.io.FileNotFoundException: https://discovery.meethue.com/ HOT 28
- Client code generation HOT 2
- save bridge details HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yetanotherhueapi.