No motion 'for' trigger

So I have the following automation which is designed to turn off all the interior lights if there hasn’t been any motion in the living room after 11pm for more than 10 mins. This actually works, but the issue is if there is no motion after 10pm to 11pm, it doesn’t trigger because the 10 mins has past and it hasn’t reach 11pm yet. Even after 11pm, it still doesn’t trigger because its now more than 45+ mins (not 10).

How do I get this to trigger if it’s ‘more’ than 10mins after 11pm? Is there such thing as a ‘longer than’ trigger?

id: '1625027487005'
alias: Lighting - Good Night
description: ''
trigger:
  - platform: state
    entity_id: binary_sensor.living_motion_sensor
    for: '00:10:00'
    to: 'off'
condition:
  - condition: state
    entity_id: light.interior_lights
    state: 'on'
  - condition: not
    conditions:
      - condition: time
        before: '23:00:00'
        after: '05:00:00'
action:
  - service: light.turn_off
    target:
      entity_id: light.interior_lights
mode: single
trigger:
  - platform: state
    entity_id: binary_sensor.living_motion_sensor
    for: '00:10:00'
    to: 'off'
  - platform: time
    at: '23:00'
condition:
  - condition: state
    entity_id: light.interior_lights
    state: 'on'
  - condition: time
    after: '23:00'
    before: '05:00'
    conditions:
  - condition: state
    entity_id: binary_sensor.living_motion_sensor
    state: 'off'
action:
  - service: light.turn_off
    target:
      entity_id: light.interior_lights
mode: single

I think you can just add time trigger and add condition of binary_sensor off.

Also, for the time condition, its ok to specify after 23:00 and before 05:00. If after and before are defined, it can span across midnight. See here-

Wouldn’t this cause it to only trigger once at 11pm? What if there’s continuous till 11:30pm? How would it trigger again?

It will, but only if there is no motion detected and your light is still ON.

  - condition: state
    entity_id: binary_sensor.living_motion_sensor
    state: 'off'

I use Timers for each room, and then evaluate the logic when the timer.finished event has fired.
Every time there is motion I issue the cancel timer service call, followed by the start timer service call - whether it is daytime or not, it doesn’t hurt anything, and then when the timer fires - I can decide whether the conditions have been met to turn the light off - using the choose option.

Example:

alias: 'Light: Hall'
description: ''
trigger:
  - type: motion
    platform: device
    device_id: 16942ffea955cab30431d0ef8be0e53a
    entity_id: binary_sensor.hall_motion_home_security_motion_detection
    domain: binary_sensor
    id: motion
  - platform: device
    type: turned_on
    device_id: 32f11a148ef066b9bc8c729e8996ad5e
    entity_id: light.hall_light
    domain: light
    id: light_on_timer_check
    for:
      hours: 0
      minutes: 0
      seconds: 5
      milliseconds: 0
  - platform: state
    entity_id: input_number.hall_brightness
    id: set_level
  - platform: device
    type: turned_on
    device_id: 32f11a148ef066b9bc8c729e8996ad5e
    entity_id: light.hall_light
    domain: light
    id: set_level_on
    for:
      hours: 0
      minutes: 0
      seconds: 10
      milliseconds: 0
  - platform: event
    event_type: timer.finished
    id: timer_finished
    event_data:
      entity_id: timer.hall
  - platform: device
    type: turned_off
    device_id: 32f11a148ef066b9bc8c729e8996ad5e
    entity_id: light.hall_light
    domain: light
    id: light_off
condition: []
action:
  - choose:
      - conditions:
          - condition: and
            conditions:
              - condition: trigger
                id: motion
              - condition: or
                conditions:
                  - condition: state
                    entity_id: input_boolean.lighting_night_mode
                    state: 'on'
                  - condition: numeric_state
                    entity_id: sensor.lux_sensor_illuminance_lux
                    below: '1500'
                    attribute: illuminance_lux
        sequence:
          - type: turn_on
            device_id: 32f11a148ef066b9bc8c729e8996ad5e
            entity_id: light.hall_light
            domain: light
          - service: timer.cancel
            target:
              entity_id: timer.hall
          - service: timer.start
            data:
              duration: '00:15:00'
            target:
              entity_id: timer.hall
      - conditions:
          - condition: trigger
            id: light_on_timer_check
        sequence:
          - choose:
              - conditions:
                  - condition: not
                    conditions:
                      - condition: state
                        entity_id: timer.hall
                        state: active
                sequence:
                  - service: timer.start
                    data:
                      duration: '00:15:00'
                    target:
                      entity_id: timer.hall
            default: []
      - conditions:
          - condition: and
            conditions:
              - condition: trigger
                id: timer_finished
              - condition: device
                type: is_on
                device_id: 32f11a148ef066b9bc8c729e8996ad5e
                entity_id: light.hall_light
                domain: light
        sequence:
          - type: turn_off
            device_id: 32f11a148ef066b9bc8c729e8996ad5e
            entity_id: light.hall_light
            domain: light
      - conditions:
          - condition: and
            conditions:
              - condition: trigger
                id: set_level
              - condition: device
                type: is_on
                device_id: 32f11a148ef066b9bc8c729e8996ad5e
                entity_id: light.hall_light
                domain: light
        sequence:
          - service: light.turn_on
            target:
              entity_id: light.hall_light
            data_template:
              brightness_pct: '{{ trigger.to_state.state | int }}'
              transition: 8
      - conditions:
          - condition: and
            conditions:
              - condition: trigger
                id: set_level_on
              - condition: device
                type: is_on
                device_id: 32f11a148ef066b9bc8c729e8996ad5e
                entity_id: light.hall_light
                domain: light
        sequence:
          - service: light.turn_on
            target:
              entity_id: light.hall_light
            data_template:
              transition: 8
              entity_id: light.storeroom_light
              brightness_pct: '{{ states(''input_number.hall_brightness'')|int }}'
      - conditions:
          - condition: trigger
            id: light_off
        sequence:
          - service: timer.cancel
            target:
              entity_id: timer.hall
    default: []
mode: restart

EDIT:
Also just noticed your automation is in single mode, and when dealing with things like Motion sensing - you should really have this set to restart.