x046866x Posted February 24, 2023 Share Posted February 24, 2023 I am trying to use a small program that sets all of my Hue devices to the same color. The program works fine: Set 'MyHueDeviceName' Set Color '$HueColorCode Index' and I just set '$HueColorCode' variable to an integer and call the program and all works fine. The problem is that I don't know what the index values correspond to. I mimicked the drop-down and am able to set colors using index 1 to 20, but any value higher than that doesn't have any affect. I found a table somewhere that showed the values from 1 to 145 (see below for an example) but this does not seem to be what the Polyglot integration is using. I downloaded the code expecting to see it somewhere in there, but to no avail (likely because I just don't know what I'm looking for). What I'm looking for is something like: 1=Aqua 2=Azure 3=Beige etc. Any ideas? Table I dug up (somewhere): # Value: Name: # 1 Alice Blue # 2 Antique White # 3 Aqua # 4 Aquamarine # 5 Azure # 6 Beige # 7 Bisque # 8 Black # 9 Blanched Almond ... # 132 Snow # 133 Spring Green # 134 Steel Blue # 135 Tan # 136 Teal # 137 Thistle # 138 Tomato # 139 Turquoise # 140 Violet # 141 Wheat # 142 White # 143 White Smoke # 144 Yellow # 145 Yellow Green Link to comment
x046866x Posted February 24, 2023 Author Share Posted February 24, 2023 Wait.....I dug through the code again and found this. Pretty sure this is what I was looking for. COLORS_HCSEL-1 = Aqua COLORS_HCSEL-2 = Azure COLORS_HCSEL-3 = Beige COLORS_HCSEL-4 = Blue COLORS_HCSEL-5 = Chartreuse COLORS_HCSEL-6 = Coral COLORS_HCSEL-7 = Crimson COLORS_HCSEL-8 = Forest Green COLORS_HCSEL-9 = Fuchsia COLORS_HCSEL-10 = Golden COLORS_HCSEL-11 = Gray COLORS_HCSEL-12 = Green COLORS_HCSEL-13 = Hot Pink COLORS_HCSEL-14 = Indigo COLORS_HCSEL-15 = Lavender COLORS_HCSEL-16 = Lime COLORS_HCSEL-17 = Maroon COLORS_HCSEL-18 = Navy Blue COLORS_HCSEL-19 = Olive COLORS_HCSEL-20 = Red COLORS_HCSEL-21 = Royal Blue COLORS_HCSEL-22 = Tan COLORS_HCSEL-23 = Teal COLORS_HCSEL-24 = White 1 Link to comment
TRI0N Posted February 24, 2023 Share Posted February 24, 2023 5 hours ago, x046866x said: Wait.....I dug through the code again and found this. Pretty sure this is what I was looking for. COLORS_HCSEL-1 = Aqua COLORS_HCSEL-2 = Azure COLORS_HCSEL-3 = Beige COLORS_HCSEL-4 = Blue COLORS_HCSEL-5 = Chartreuse COLORS_HCSEL-6 = Coral COLORS_HCSEL-7 = Crimson COLORS_HCSEL-8 = Forest Green COLORS_HCSEL-9 = Fuchsia COLORS_HCSEL-10 = Golden COLORS_HCSEL-11 = Gray COLORS_HCSEL-12 = Green COLORS_HCSEL-13 = Hot Pink COLORS_HCSEL-14 = Indigo COLORS_HCSEL-15 = Lavender COLORS_HCSEL-16 = Lime COLORS_HCSEL-17 = Maroon COLORS_HCSEL-18 = Navy Blue COLORS_HCSEL-19 = Olive COLORS_HCSEL-20 = Red COLORS_HCSEL-21 = Royal Blue COLORS_HCSEL-22 = Tan COLORS_HCSEL-23 = Teal COLORS_HCSEL-24 = White That is correct that is the Default 24 Preset Colors for Hue. There is a much larger Hue Color Library but that is only based on their custom scenes and custom color names. Like "Snow White" which is just a dimmed version of White. TRII0N 1 Link to comment
Recommended Posts