Trigger RF Switch multiple times

Hi all,

i am new with hassio and yaml.

for light switch automation i add the following lines to me configration.yaml

    # Schalter
switch:
  - platform: broadlink
    host: 192.168.2.112
    mac: '34:EA:34:F6:F6:F6'
    name: 'bedroom'
    timeout: 200
    switches:
      # Remote ID 19993 - Livolo Living Room - scn1/All off
      hm_wz_spotseins:
        friendly_name: "Living Room 1"
        command_on: 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA='
        command_off: 'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB='

how can i trigger the command_on and the command_off 5 times with 0.2 seconds delay (cause sometimes the switches will not receive the signal)

Thanks 4 help
2flx

Some psuedo code…

trigger on hm_wz_spotseins state to ‘on’
action delay ‘00:00:00:20’ switch turn_on/off hm_wz_spotseins delay …