Nous light color mode

Hi,
I just receive my Nous light color and added to HA.
I try to add them to automation with color mode like :

- id: allumer_lumieres_salon_cinema
  description: "Allumue les lumières du salon cinéma"
  alias: Allume les lumières du salon cinéma
  mode: single
  trigger:
    platform: event
    event_type: xiaomi_aqara.click
    event_data:
      entity_id: binary_sensor.switch_XxX
      click_type: double
  condition: []
  action:
      - type: turn_on
        device_id: XxX
        entity_id: XxX
        brightness_pct: 52
        rgb_color: 0, 114, 255
        xy_color_pct: 0.14, 0.119
        domain: light

But on automation, I have this error :

Actions: extra keys not allowed @ data[‘rgb_color’]

Don’t understand how to select color wanted.

Thanks

Did you have a look at the documentation?

Verbatim example:

# Ledlist morning on, red
- id: llmor
  alias: "Stair morning on"
  trigger:
  - at: '05:00'
    platform: time
  action:
    - service: light.turn_on
      target:
        entity_id: light.ledliststair
      data:
        brightness: 130
        rgb_color: [255,0,0]

Light - Home Assistant (home-assistant.io)

1 Like