Repeat Until Condition with assigned delay not working

I have a very simple automation that blinks an LED red when my front door is locked and everyone is away from home.

I have two OR conditions that stop the led from blinking. The conditions are either a) the front door being unlocked or b) someone arrives home.

This all works fine until…

I add a time delay to the sensor that detects when people are home.

My issue:
I can’t get the time delay attached to the condition for my value template sensor “anyone_home” to be obeyed. ie the LED stops blinking as soon as someone is detected as being home. I want it to wait a minute after detecting someone has arrived home before turning the LED’s blinking state off.

If I add a minute delay to my other condition (the front door is unlocked) this works. It seems to be just the delay attached to my template sensor that doesn’t.

Any suggestions would be greatly appreciated.

My Template Sensor:

  - platform: template
    sensors:
      anyone_home:
        value_template: >
          {{ is_state('person.name1', 'home') or
            is_state('person.name2', 'home') or
            is_state('person.name3', 'home') }}

My Automation (called from another automation hence no trigger)

alias: Front Door LED (Blink Red)
description: ""
trigger: []
condition: []
action:
  - alias: Repeat Until any of These Conditions Match
    repeat:
      sequence:
        - service: light.turn_on
          metadata: {}
          data:
            color_name: red
          target:
            entity_id: light.m5_atom_led_frontdoor_builtin_led
        - delay:
            hours: 0
            minutes: 0
            seconds: 1
            milliseconds: 0
        - service: light.turn_off
          metadata: {}
          data: {}
          target:
            entity_id: light.m5_atom_led_frontdoor_builtin_led
        - delay:
            hours: 0
            minutes: 0
            seconds: 1
            milliseconds: 0
      until:
        - condition: or
          conditions:
            - condition: state
              for:
                hours: 0
                minutes: 0
                seconds: 30
              entity_id: sensor.anyone_home
              state: "True"
            - condition: state
              entity_id: lock.front_door_smart_lock
              state: unlocked
              for:
                hours: 0
                minutes: 0
                seconds: 0
    enabled: true
mode: single