Notification Automation - Garage door left open

Hi,

I’m rather new to HA and not a programmer so, please, bare with me.
I want to create an automation to send a notification if garage doors are left open (door/window sensor) for longer than 15 minutes between 20:00 and 6:00. My automation only works if someone opens the doors in that time frame, but not if the doors were opened already sooner than that, let’s say at 18:00 and then left open. I want to cover that scenario as well.

alias: Garage door left open
description: ""
triggers:
  - type: opened
    device_id: 02e5bbb61f0f64c4fa1a983ce6880ac4
    entity_id: 5aceddab2bf2ccf556ab09e29d5235b7
    domain: binary_sensor
    trigger: device
    for:
      hours: 0
      minutes: 15
      seconds: 0
conditions:
  - condition: time
    after: "20:00:00"
    before: "06:00:00"
    weekday:
      - mon
      - tue
      - wed
      - thu
      - fri
      - sat
      - sun
actions:
  - action: notify.mobile_app_google_pixel_watch
    metadata: {}
    data:
      message: My message
  - action: notify.mobile_app_pixel_7_pro
    metadata: {}
    data:
      message: My message
mode: single

Thank you for your help.

I have found a working solution on Reddit.
Adding

 - minutes: /10
    trigger: time_pattern

works. However, I am even more happy by the fact that HA fixed my syntax from the “old way” (platform: …) to the “new way”.

As a reference, this is my automation that checks if the garage is open between 9pm-6am. It will notify every 5 minutes if it’s not closed.

alias: Left Garage Door Open After 9PM
description: ""
mode: single
triggers:
  - entity_id:
      - cover.left_garage_door_door
    to: open
    for:
      hours: 0
      minutes: 5
      seconds: 0
    trigger: state
conditions: []
actions:
  - repeat:
      while:
        - condition: state
          entity_id: cover.left_garage_door_door
          state: open
      sequence:
        - choose:
            - conditions:
                - condition: time
                  before: "06:00:00"
                  after: "21:00:00"
              sequence:
                - data:
                    announcement: >-
                      The left garage door has been open for more than 5
                      minutes, please close it!
                  action: script.echo_announcement
          default: []
        - delay:
            hours: 0
            minutes: 5
            seconds: 0
            milliseconds: 0