Tuya Lights Color or Temperature Control Using Local Tuya

After so much trouble I was finally able to add my 6 Tuya Bulbs to HA using Local Tuya. Now I have requirement where I want to change the color to “Warm White/Yellow” and reduce the brightness (around bedtime).
I have the below automation YAML

action:
  - type: turn_on
    device_id: 5xxxxx9b3a6xxxxxxxxxxxxxxxx
    entity_id: light.second_bedroom_light
    domain: light
    brightness_pct: 100

When I’m trying to add below the line or any other new line. I’m getting error -

    rgbww_color: [255,0,0]

I have tried other variations like

    - service: light.turn_on
      target:
        entity_id: light.living_room
      data:
        brightness: 255
        kelvin: 2700

Same error in every case. Pleas help!!

2 Likes