essentially, if “color” is a color (eg, the word red, or orange, etc), then use the color_name field, but if “color” is “white”, then use the color_temp filed with an integer, ie 256. how can I vary the data field in use, based on the color?
Please consider marking my post above with the Solution tag. It will automatically place a check-mark next to the topic’s title which signals to other users that this topic has been resolved. This helps users find answers to similar questions.