Cannot drive hue lamps with color settings

Hello
I cannot succeed in driving a hue bulb lamp with color with appdaemon.

Following line works :slight_smile:

self.turn_on("light.hue_color_lamp_1", brightness=255, color_temp=220)

Following line does not work :frowning:

self.turn_on("light.hue_color_lamp_1", brightness=255, color_temp=220, rgb_color = (255,0,0))

nor

self.turn_on("light.hue_color_lamp_1", brightness=255, color_temp=220, rgb_color = [255,0,0])

and returns

> WARNING HASS: Error calling Home Assistant service default/homeassistant/turn_on
> WARNING HASS: Code: 400, error: 400: Bad Request

If someone could provide some help with correct syntax to drive the color of the lamp :slight_smile:
Many thanks :slight_smile:

Im guessing now, but I donโ€™t think you can set both color temperature and rgb in the same call. Try the last call leaving out the color temperature and only set brightness and rgb.

Many thanks thatโ€™s it !

Must use

self.turn_on("light.hue_color_lamp_1", brightness=255, color_temp=220)

or

self.turn_on("light.hue_color_lamp_1", brightness=255, rgb_color = (255,0,0))

or

self.turn_on("light.hue_color_lamp_1", brightness=255, rgb_color = [255,0,0])

Problem solved. Again thanks !