Continuous light flash in Automation

Preformatted text``Preformatted text``Preformatted textstrong textI have this automation to turn some lights in a special mode.
I want the barbecue light to flash several times as Long as motion is dedected OR at least to flash for 15 seconds,
I tried several things but I couldn’t get it to work.
I did this automation in UI .

Any advice ?

alias: Wel come
description: “”
trigger:

  • type: motion
    platform: device
    device_id: e90e227be9aa46ceb3afe269bd7a73be
    entity_id: binary_sensor.hue_motion_sensor_outside_motion
    domain: binary_sensor
    condition:
  • condition: sun
    after: sunset
    after_offset: “00:15:00”
    action:
  • device_id: 26d8d5d7d291ca4e7bc1e8690f40fd02
    domain: light
    entity_id: light.barbecuePreformatted text
    alias: Wel come
    description: “”
    trigger:
  • type: motion
    platform: device
    device_id: e90e227be9aa46ceb3afe269bd7a73be
    entity_id: binary_sensor.hue_motion_sensor_outside_motion
    domain: binary_sensor
    condition:
  • condition: sun
    after: sunset
    after_offset: “00:15:00”
    action:
  • device_id: 26d8d5d7d291ca4e7bc1e8690f40fd02
    domain: light
    entity_id: light.barbecue
    type: flash
  • type: turn_on
    device_id: 4d8705a0b3f1724f38f3dd4434b3183c
    entity_id: light.hue_smart_plug_hojbede
    domain: light
  • type: turn_on
    device_id: 45b5a7eab353febd1fac305d08a39752
    entity_id: light.out_front_door_spot
    domain: light
    brightness_pct: 100
  • delay:
    hours: 0
    minutes: 2
    seconds: 0
    milliseconds: 0
  • type: turn_off
    device_id: 4d8705a0b3f1724f38f3dd4434b3183c
    entity_id: light.hue_smart_plug_hojbede
    domain: light
  • type: turn_off
    device_id: 45b5a7eab353febd1fac305d08a39752
    entity_id: light.out_front_door_spot
    domain: light
    mode: parallel
1 Like