Jump to content
View in the app

A better way to browse. Learn more.

Universal Devices Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

What are all the color index values?

Featured Replies

Posted

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

  • Author

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

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

Guest
This topic is now closed to further replies.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.