-
Hey, I am working on a config for a device that only reports its color as regular RGB color - Looking through existing configs, it seems that all work with rgbhsv. Is it possible to work with the "traditional" RGB format using the configuration files in this project? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
In theory it should work with only r, g, b components in the rgbhsv field, but it is as yet untested so may need an additional change in the code to transform correctly. Lightbulbs so far have either had all 6 components or hsv. |
Beta Was this translation helpful? Give feedback.
-
No need, it is just an error in the function name. Unlike the other color formats, RGB is always capitalised in the HA color util functions, so it needs to be |
Beta Was this translation helpful? Give feedback.
No need, it is just an error in the function name. Unlike the other color formats, RGB is always capitalised in the HA color util functions, so it needs to be
color_util.color_RGB_to_hs(r, g, b)