Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails if you have 'Lux' bulbs in the network - non-color-changing ones #2

Open
mahood73 opened this issue Apr 16, 2015 · 0 comments
Open

Comments

@mahood73
Copy link
Contributor

The script assumes all lamps can handle the 'xy' color setting, but in my home I have a couple of Lux bulbs which are just white.

As such I get this error:

Setting lights to 0,50,199
node_modules/thebutton-hue/node_modules/node-hue-api/node_modules/q/q.js:126
throw e;
^
Api Error: parameter, xy, not available

The Hue API you're using does return the lamp information, so I added a couple of conditionals:

if(lights.lights[i].type=="Extended color light")

(Lux lamps return 'Dimmable light' by contrast).

Once I work out how, I'll do a pull request :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant