Hi, I’m stuck getting this automation to work.
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?
action:
- service: light.turn_on
data:
area_id: "{{name}}"
color_name: "{{color}}"
thanks so much