bahamas10 / hue-cli

A command line interface to phillips hue
http://bahamas10.github.com/hue-cli/
221 stars 24 forks source link

Hex colors don't seem to work properly #20

Closed aaronbieber closed 7 years ago

aaronbieber commented 7 years ago

I need to fork the project and add some debugging output to figure out what's going on, but most of the hex colors I have tried will either turn my lights very red or very white, I can't get any value in between. Could be something in the hex2rgb() function but I need to see the RGB output to figure that out.

Thought I'd toss this in in case someone else has a similar experience. My Hue lights are a bit older so I don't know if things have changed. I have spent a lot of time playing with the API and implementing my own interfaces, so I should be able to figure this out and (hopefully) post a pull request.

aaronbieber commented 7 years ago

After a bunch of experimentation, I'm ready to conclude that this has something to do with the conversion from RGB to XY color values, which is something that I struggled with a lot while trying to build my own Hue interface, and I wish Philips had just used a more accessible and generally compatible color system.

I'll close this one, I don't know if there is any easy way to make it better.