How to control the colour of a light #468
Replies: 2 comments
-
I have been able to control the colour by using the HSV instead of the RGB |
Beta Was this translation helpful? Give feedback.
0 replies
-
In v0.4.9, the Light example was extended to show how to handle RGB lights. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have just found this amazing project and after playing around for a while I have been able to set everything up and turn some lights on/off. Now I am trying to control the brightness and the colour of the lights, and while the brightness was pretty simple by using the value payload.brightness to update the brightness_pct of the light, the colour seems more complicated as the value I see in spectrumRgb is an integer instead of the 3 RBG values exposed by the light, is there an easy way to convert these values in both directions so I can ask google to change the colour of the light and also update google with the current light colour every time it changes?
Beta Was this translation helpful? Give feedback.
All reactions