Automation to send a message every X minutes if door open or temp above X

Hi Guys,

I will like to update this automation to have the notification to be sent out every 5 minutes if the Door of the fridge or freezer is open OR the temp is above 5.

any idea how I could update my code to do so?

alias: Fridge Open for X Minutes 
trigger:
  - type: opened
    platform: device
    device_id: c6f39af9eb083ffaf219296a47b0f69e
    entity_id: binary_sensor.freezer_door
    domain: binary_sensor
    for:
      hours: 0
      minutes: 5
      seconds: 5
  - type: opened
    platform: device
    device_id: c6f39af9eb083ffaf219296a47b0f69e
    entity_id: binary_sensor.refrigerator_door
    domain: binary_sensor
    for:
      hours: 0
      minutes: 5
      seconds: 3
  - type: temperature
    platform: device
    device_id: c6f39af9eb083ffaf219296a47b0f69e
    entity_id: sensor.frezer_temp
    domain: sensor
    above: -5
    for:
      hours: 0
      minutes: 1
      seconds: 3
      milliseconds: 0
  - type: opened
    platform: device
    device_id: c6f39af9eb083ffaf219296a47b0f69e
    entity_id: binary_sensor.freezer_door
    domain: binary_sensor
    for:
      hours: 0
      minutes: 6
      seconds: 0
      milliseconds: 0
 
condition: []
action:
  - service: tts.google_say
    data:
      entity_id: media_player.all_the_speakers
      message: >-
        fridge open, the Temperature of the Freezer is {{
        states('sensor.frezer_temp') }} Celsius
  - service: telegram_bot.send_message
    data:
      message: Frige Open Temp {{ states('sensor.frezer_temp') }}
mode: single

wrap the entire action sequence in a “repeat-until” action using your sensors as the “until” condition.

Not sure how to deal with having multiple trigger, so the while condition should change based on the device trigger?

alias: Fridge Open for X Minutes with Repeat
description: ""
trigger:
  - type: opened
    platform: device
    device_id: c6f39af9eb083ffaf219296a47b0f69e
    entity_id: binary_sensor.freezer_door
    domain: binary_sensor
    for:
      hours: 0
      minutes: 5
      seconds: 5
  - type: opened
    platform: device
    device_id: c6f39af9eb083ffaf219296a47b0f69e
    entity_id: binary_sensor.refrigerator_door
    domain: binary_sensor
    for:
      hours: 0
      minutes: 5
      seconds: 3
  - type: temperature
    platform: device
    device_id: c6f39af9eb083ffaf219296a47b0f69e
    entity_id: sensor.frezer_temp
    domain: sensor
    above: -5
    for:
      hours: 0
      minutes: 1
      seconds: 3
      milliseconds: 0
  - type: opened
    platform: device
    device_id: c6f39af9eb083ffaf219296a47b0f69e
    entity_id: binary_sensor.freezer_door
    domain: binary_sensor
    for:
      hours: 0
      minutes: 6
      seconds: 0
      milliseconds: 0
  - type: opened
    platform: device
    device_id: c6f39af9eb083ffaf219296a47b0f69e
    entity_id: binary_sensor.refrigerator_door
    domain: binary_sensor
    for:
      hours: 0
      minutes: 6
      seconds: 0
      milliseconds: 0
  - type: opened
    platform: device
    device_id: c6f39af9eb083ffaf219296a47b0f69e
    entity_id: binary_sensor.freezer_door
    domain: binary_sensor
    for:
      hours: 0
      minutes: 15
      seconds: 0
      milliseconds: 0
  - type: opened
    platform: device
    device_id: c6f39af9eb083ffaf219296a47b0f69e
    entity_id: binary_sensor.refrigerator_door
    domain: binary_sensor
    for:
      hours: 0
      minutes: 15
      seconds: 0
      milliseconds: 0
condition: []
action:
  - repeat:
      until:
        - type: is_not_open
          condition: device
          device_id: c6f39af9eb083ffaf219296a47b0f69e
          entity_id: binary_sensor.freezer_door
          domain: binary_sensor
      sequence:
        - service: tts.google_say
          data:
            entity_id: media_player.all_the_speakers
            message: >-
              fridge open, the Temperature of the Freezer is {{
              states('sensor.frezer_temp') }} Celsius
        - service: telegram_bot.send_message
          data:
            message: Frige Open Temp {{ states('sensor.frezer_temp') }}
mode: single


Trying the - platform: time_pattern however it does not seems to trigger

alias: Fridge Open for X Minutes with Repeat
description: ""
trigger:
  - platform: time_pattern
    minutes: "1"
condition:
  - or:
      - type: is_open
        condition: device
        device_id: c6f39af9eb083ffaf219296a47b0f69e
        entity_id: binary_sensor.freezer_door
        domain: binary_sensor
        for:
          hours: 0
          minutes: 0
          seconds: 1
      - type: is_open
        condition: device
        device_id: c6f39af9eb083ffaf219296a47b0f69e
        entity_id: binary_sensor.refrigerator_door
        domain: binary_sensor
        for:
          hours: 0
          minutes: 0
          seconds: 1
      - type: is_temperature
        condition: device
        device_id: c6f39af9eb083ffaf219296a47b0f69e
        entity_id: sensor.frezer_temp
        domain: sensor
        above: -5
      - type: is_temperature
        condition: device
        device_id: a111781782ec1184bcb67432e5c7c6e2
        entity_id: sensor.chest_frezer_temperature_2
        domain: sensor
        above: -5
      - type: is_open
        condition: device
        device_id: a111781782ec1184bcb67432e5c7c6e2
        entity_id: binary_sensor.chest_freezer_door_2
        domain: binary_sensor
        for:
          hours: 0
          minutes: 0
          seconds: 1
action:
  - service: tts.google_say
    data:
      entity_id: media_player.all_the_speakers
      message: >-
        Freezers open Temp:{{ states('sensor.frezer_temp') }} and {{
        states('sensor.chest_frezer_temperature_2') }} Celsius
  - service: telegram_bot.send_message
    data:
      message: >-
        Freezers Open Temp {{ states('sensor.frezer_temp') }} and {{
        states('sensor.chest_frezer_temperature_2') }} Celsius
mode: single

OK, I got it to work by changing minutes: “/10”

alias: Fridge Open for X Minutes with Repeat
description: ""
trigger:
  - platform: time_pattern
    minutes: "/10"
condition:
  - or:
      - type: is_open
        condition: device
        device_id: c6f39af9eb083ffaf219296a47b0f69e
        entity_id: binary_sensor.freezer_door
        domain: binary_sensor
      - type: is_open
        condition: device
        device_id: c6f39af9eb083ffaf219296a47b0f69e
        entity_id: binary_sensor.refrigerator_door
        domain: binary_sensor
      - type: is_temperature
        condition: device
        device_id: c6f39af9eb083ffaf219296a47b0f69e
        entity_id: sensor.frezer_temp
        domain: sensor
        above: -5
      - type: is_temperature
        condition: device
        device_id: a111781782ec1184bcb67432e5c7c6e2
        entity_id: sensor.chest_frezer_temperature_2
        domain: sensor
        above: -5
      - type: is_open
        condition: device
        device_id: a111781782ec1184bcb67432e5c7c6e2
        entity_id: binary_sensor.chest_freezer_door_2
        domain: binary_sensor
action:
  - service: tts.google_say
    data:
      entity_id: media_player.all_the_speakers
      message: >-
        Freezers open Temp:{{ states('sensor.frezer_temp') }} and {{
        states('sensor.chest_frezer_temperature_2') }} Celsius
  - service: telegram_bot.send_message
    data:
      message: >-
        Freezers Open Temp {{ states('sensor.frezer_temp') }} and {{
        states('sensor.chest_frezer_temperature_2') }} Celsius
mode: single