Alexa does not trigger blink doorbell routine

Hi,
I made a script in homeassistant, that makes my blink doorbell take a photo and send it as an actionable notification to my smartphone.
I exposed the script to the alexa app using emulated hue.
In Alexa, I created a routine that waits for somebody pressing the doorbell and then triggers the script.

I can maually trigger the routine and the notification arrives at my smartphone. However, when I press the doorbell button, the routine is not triggered.

It worked before (unreliably but whatever). Then, I tried to improve it, but obviously I made it worse. I guess that Blink skill has something to do with it. When it was still working, I deactivated the skill. Now I cannotre- activate it. The error message says that the account could not be linked. The alexa app needs to be updated.
However, I just updated the app.

Can anybody help?

Hi @czernobill can I ask you to post your script? I’m looking forward to do the same but my knowledge are not enough. Thank you.

sure, here’s the script:
You might not need all of it. I added that the surveillance camera will change its angle to point at the entrance once the dorbell button is pressed. As a notification, I used an actionable notification allowing me to open the door by triggering a shelly plus 1.
For me it works. However, I am pretty sure there is room for improvement.

alias: doorbell_button_pressed
sequence:
  - target:
      entity_id: camera.g8t1_tv02_3155_0j71
    data: {}
    action: blink.trigger_camera
  - action: select.select_option
    metadata: {}
    data:
      option: Tor Person
    target:
      entity_id: select.tapo_c210_einfahrt_move_to_preset
    enabled: true
  - delay:
      hours: 0
      minutes: 0
      seconds: 0
      milliseconds: 100
  - data: {}
    target:
      entity_id: camera.g8t1_tv02_3155_0j71
    action: homeassistant.update_entity
  - delay:
      hours: 0
      minutes: 0
      seconds: 0
      milliseconds: 100
  - target:
      entity_id: camera.g8t1_tv02_3155_0j71
    data:
      filename: >-
        /media/blink_doorbell_image/{{ now().strftime("%Y-%m-%d")
        }}/tuerklingel_{{ now().strftime("%Y-%m-%d-%H%M") }}.jpg
    action: camera.snapshot
  - data:
      message: Jemand steht vor der Tür
      title: Türklingel aktiviert
      data:
        ttl: 0
        priority: high
        channel: Türklingel
        image: /api/camera_proxy/camera.g8t1_tv02_3155_0j71
        actions:
          - action: OPEN_DOOR
            title: Zutritt gewähren
          - action: URI
            title: Blink öffnen
            uri: app://com.immediasemi.android.blink
          - action: URI
            title: Dashboard öffnen
            uri: /lovelace/default_view
    enabled: true
    action: notify.all_devices
  - wait_for_trigger:
      - platform: event
        event_type: mobile_app_notification_action
        event_data:
          action: OPEN_DOOR
    timeout:
      hours: 0
      minutes: 0
      seconds: 45
      milliseconds: 0
    continue_on_timeout: true
    enabled: true
  - if:
      - condition: template
        value_template: "{{ wait.trigger != none }}"
    then:
      - action: switch.toggle
        metadata: {}
        data: {}
        target:
          entity_id: switch.toroeffner_switch_0
      - action: camera.record
        metadata: {}
        data:
          duration: 60
          lookback: 0
          filename: >-
            /media/blink_doorbell_image/{{ now().strftime("%Y-%m-%d")
            }}/tuerklingel_{{     now().strftime("%Y-%m-%d-%H%M") }}.mp4
        target:
          entity_id: camera.tapo_c210_einfahrt_hd_stream
    enabled: true
  - action: select.select_option
    metadata: {}
    data:
      option: Garage oben
    target:
      entity_id: select.tapo_c210_einfahrt_move_to_preset
    enabled: true
mode: single
icon: mdi:doorbell-video