@Jaschkopf said in New plugin for Milight - pimatic-milight-reloaded:
Is there anywhere a list of all possible colours?
Generally, all CSS named colors (sometimes also referred to as HTML colors) should work, see http://htmlcolorcodes.com/color-names/ for example. Color names need to be provided in all lowercase letters without spaces.
Note, however, the color rendition of the legacy RGBWW bulbs is limited as it is not possible to control the saturation (the new “full color” bulbs support this, however). Moreover, the milight color action does not change Brightness as part of the color rendition (based on a RGB to HSV tranformation). I can do that on request (e.g. as an option), but I found this rather disturbing as Milight only supports 20 native brightness levels. Basically, it is a lossfull mapping due to the Milight limitations.
- 360 degrees hue is mapped to 255 hue values
- 100% brightness is mapped to 20 native brightness values (if requested)
- no saturation
Also keep in mind that state of art RGB LED bulbs can’t render grey, black or brown colors. Something like “lightslategray” won’t be somewhere near gray, but it’ll will give some blue.
The following colors work well for me:
- violet
- royalblue
- deepskyblue
- aqua
- mint
- lightseagreen
- green
- limegreen
- yellow
- orange
- red
- pink
- fuchsia
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law