Automation light on and change rgb color not working

I have an automation, but the service “light.turn_on” does not work here

alias: Slaapkamer_Xwekker
description: >-
  De nachtverlichting van X gaat op een bepaald tijdstip groen, oranje en
  rood branden
trigger:
  - platform: time
    at: input_datetime.X_nachtverlichting_wekker
condition:
  - condition: state
    entity_id: binary_sensor.workday_sensor
    state: "on"
action:
  - service: light.turn_on
    data:
      rgb_color:
        - 181
        - 30
        - 30
      color_name: red
    target:
      entity_id: light.slaapkamer_X_bed

Why is the action not working ?
It does not set the light on…

Result:

params:
domain: light
service: turn_on
service_data:
rgb_color:
- 181
- 30
- 30
color_name: red
entity_id:
- light.slaapkamer_X_bed
target:
entity_id:
- light.slaapkamer_X_bed
running_script: false

Because the service only supports a single color descriptor. Use either rgb_color or color_name.

2 Likes

You should only specify one color option.

EDIT: Too slow again.

2 Likes