Service data for color light

I have a color light bulb integrated to HA. Current I am able to turn on/off with different brightness using below data:

data = { "entity_id": entity_id, "brightness": xx}

what is the syntax for sending the color temperature, and rgb color too?

thanks!

data = { "entity_id": entity_id, "brightness": xx, "rgb_color":[255,0,0]}

{"brightness_pct":100,"color_temp":500}

etc…

1 Like

Did you look at the doc for the light.turn_on service?

1 Like