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?


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



1 Like

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

1 Like