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

Not able to set color for bulb #15

Open
patrik-pa4k opened this issue Jan 18, 2022 · 1 comment
Open

Not able to set color for bulb #15

patrik-pa4k opened this issue Jan 18, 2022 · 1 comment
Labels

Comments

@patrik-pa4k
Copy link

Hello,
I'm using that solution for a while, but only for set brightness and turn-on of the light. Currently, I'm trying to change color, but without success. Have tried several possibilities in JSON format, sending color name, HEX, RGB, etc. but never been successful.
For example :
{"bri": 57,
"hsv": [ 169, 37, 57 ],
"rgb": [ 91, 145, 135 ],
"hex": "5C9187"
}
where only brightness is changed.
I've tried also to change the color on LIFX app and check the node lifx-out and it seems it is not changing as well.
Maybe I'm making somewhere a mistake, pls. correct me if I'm wrong.

Thank you.

@ristomatti
Copy link
Owner

Sorry for the late answer. From the top of my head various formats are supported but at these should work at least and use the same color representation as the lights internally:

{
  "payload": { "bri": 100, "hue": 40, "sat": 100 }
}
{
  "payload": { "bri": 100, "kelvin": 3500, "sat": 0 }
}

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

No branches or pull requests

2 participants