WLED Automation how to configure effect, speed, intensity

Hello

actually i m trying to setup a welcome automation. a short color when i arrive home. but how can i control WLED connect with the HA API.
This code is running but as soon as i add speed or others i get an error. how do i use service: wled.effect?

- id: 'coming home dave'
  alias: 'coming home dave'
  description: 'police effect when coming home'
  trigger:
  - platform: mqtt
    topic: zigbee2mqtt/xiaomi_schalter_wohnzimmer
  condition:
  - condition: template
    value_template: '{{ "left_double" == trigger.payload_json.click }}'
  action:
  - data:
      scene_id: coming_home_dave_revert
      snapshot_entities: 'light.wled_haus,light.wled_anhangerschuppen_2'
    service: scene.create
  - data:
      effect: 'Colorful'
      # speed: 155
    entity_id: light.wled_haus
    service: light.turn_on
  - delay: 00:00:04
  - data:
      entity_id: scene.coming_home_dave_revert
    service: scene.turn_on

if i m using this code the lights stays off:

- id: 'coming home dave'
  alias: 'coming home dave'
  description: 'police effect when coming home'
  trigger:
  - platform: mqtt
    topic: zigbee2mqtt/xiaomi_schalter_wohnzimmer
  condition:
  - condition: template
    value_template: '{{ "left_double" == trigger.payload_json.click }}'
  action:
  - data:
      scene_id: coming_home_dave_revert
      snapshot_entities: 'light.wled_haus,light.wled_anhangerschuppen_2'
    service: scene.create
  - data:
      effect: 'Colorful'
      speed: 200
    entity_id: light.wled_haus
    service: wled.effect
  - delay: 00:00:04
  - data:
      entity_id: scene.coming_home_dave_revert
    service: scene.turn_on

now i got it working like this:

- id: 'coming home dave'
  alias: 'coming home dave'
  description: 'police effect when coming home'
  trigger:
  - platform: mqtt
    topic: zigbee2mqtt/xiaomi_schalter_wohnzimmer
  condition:
  - condition: template
    value_template: '{{ "left_double" == trigger.payload_json.click }}'
  action:
  - data:
      scene_id: coming_home_dave_revert
      snapshot_entities: 'light.wled_haus,light.wled_anhangerschuppen_2'
    service: scene.create
  - data:
      brightness: 255
      entity_id: light.wled_haus
    service: light.turn_on
  - data:
      effect: 'Colorloop'
      speed: 225
    entity_id: light.wled_haus
    service: wled.effect
  - delay: 00:00:04
  - data:
      entity_id: scene.coming_home_dave_revert
    service: scene.turn_on
2 Likes