Automatisierung

Hello, everyone,
I’m new here and I’ve only been dealing with the Home Assistant interface for a few days.
Since I’m going to despair soon, I would be very happy if someone could help me here.
I would like to implement the following automation:
I would like to mount a Shelly window contact under the freezer door. (They got up twice already).
If the door is open for more than 5 minutes, the Ring Chime doorbell should ring. And so until the door is closed again. This ring chime rings 2x per “tactile function”. So there has to be some kind of repetition here.
Of course, if the door is closed within these 5 minutes, nothing should ring.
I have the process running so far that the bell rings 2x immediately after opening the contact. And unfortunately I can’t do anything else.
And so I kindly ask for your help here.
Here is the version of the process that doesn’t work for me.

Many greetings
Bodo

alias: Türe offen
description: ''
trigger:
  - platform: state
    entity_id:
      - binary_sensor.shelly_gefrierschrank_door
    from: 'off'
    to: 'on'
    for:
      hours: 0
      minutes: 5
      seconds: 0
condition:
  - condition: state
    entity_id: binary_sensor.shelly_gefrierschrank_door
    state: 'on'
    for:
      hours: 0
      minutes: 0
      seconds: 0
action:
  - if:
      - condition: state
        entity_id: binary_sensor.shelly_gefrierschrank_door
        state: 'on'
        for:
          hours: 0
          minutes: 0
          seconds: 2
    then:
      - service: siren.turn_on
        data: {}
        target:
          device_id: a949c5df06faab665aca9f1316fc0135
      - repeat:
          until:
            - condition: state
              entity_id: binary_sensor.shelly_gefrierschrank_door
              state: 'off'
          sequence: []
    else:
      - stop: Türe zu
mode: single

Please follow the Language Guidelines

Sorry, I didn’t know that everything is written in English here