I can't change color by Home Assistant

I use the Home Assistant trigger by webhook
when I open the light. I can use this code in action

type: turn_on
device_id: 979c402fc2551f56399b6cf7bf9a5db3
entity_id: light.sonoff_1000371563
domain: light

so I think I can use this code to change color

type: turn_on
device_id: 979c402fc2551f56399b6cf7bf9a5db3
entity_id: light.sonoff_1000371563
domain: light
brightness: 150
rgb_color: [255, 0, 0]

but can’t. How to change color

- service: light.turn_on
  target:
    entity_id: light.sonoff_1000371563
  data:
    brightness: 150
    rgb_color: [255, 0, 0]

image
I try it but it show “Message malformed: expected dictionary @ data[‘action’][0]” .

Show your whole automation.

oh ok. I can use it now. Thx