Trigger an alarm if someone other than me enters the garden

I want to set off an alarm when someone is in my yard. I have motion detectors here.

This alarm shouldn’t go off when I go into the garden.
I can tell from a few motion detectors that are in the house.

The alarm shouldn’t go off if I’m in the garden for a while and sometimes trigger the motion detector and sometimes not for a while.

I created an input boolean

input_boolean.authorized_in_garden

and try to operate the switch using these 2 automations.
It just doesn’t work that well.
Maybe I’m approaching this whole thing wrong.

alias: Berechtigter im Garten erkannt
description: "
Authorized person in the garden recognized"
triggers:
  - trigger: state
    entity_id:
      - binary_sensor.hue_motion_og1_motion
    to: "on"
  - trigger: state
    entity_id:
      - binary_sensor.hue_motion_eg_motion
    to: "on"
  - trigger: state
    entity_id:
      - binary_sensor.hue_motion_keller_ausgang_motion
    to: "on"
conditions: []
actions:
  - action: input_boolean.turn_on
    metadata: {}
    data: {}
    target:
      entity_id: input_boolean.authorized_in_garden
mode: single

alias: Berechtigter im Garten vorbei
description: "Authorized person in the garden over"
triggers:
  - trigger: state
    entity_id:
      - binary_sensor.hue_motion_og1_motion
    to: "off"
  - trigger: state
    entity_id:
      - binary_sensor.hue_motion_eg_motion
    to: "off"
  - trigger: state
    entity_id:
      - binary_sensor.hue_motion_keller_ausgang_motion
    to: "off"
  - trigger: state
    entity_id:
      - binary_sensor.hue_motion_outdoor_carport_motion
    to: "off"
    for:
      hours: 0
      minutes: 5
      seconds: 0
  - trigger: state
    entity_id:
      - binary_sensor.hue_motion_outdoor_tor_einfahrt_motion
    to: "off"
    for:
      hours: 0
      minutes: 5
      seconds: 0
  - trigger: state
    entity_id:
      - binary_sensor.hue_motion_outdoor_hintereingang_motion
    to: "off"
    for:
      hours: 0
      minutes: 5
      seconds: 0
  - trigger: state
    entity_id:
      - binary_sensor.hue_motion_outdoor_zelt_motion
    to: "off"
    for:
      hours: 0
      minutes: 5
      seconds: 0
conditions: []
actions:
  - delay:
      hours: 0
      minutes: 1
      seconds: 5
      milliseconds: 0
  - if:
      - condition: template
        value_template: >
          {{ 

          ( 

          not(is_state('binary_sensor.hue_motion_og1_motion', 'on')) 

          and not(is_state('binary_sensor.hue_motion_eg_motion', 'on')) 

          and not(is_state('binary_sensor.hue_motion_keller_ausgang_motion',
          'on')) 

          and not(is_state('binary_sensor.hue_motion_outdoor_zelt_motion',
          'on')) 

          and not(is_state('binary_sensor.hue_motion_outdoor_carport_motion',
          'on')) 

          and
          not(is_state('binary_sensor.hue_motion_outdoor_tor_einfahrt_motion',
          'on'))

          and
          not(is_state('binary_sensor.hue_motion_outdoor_hintereingang_motion',
          'on'))

          )  



          }}
    then:
      - action: input_boolean.turn_off
        metadata: {}
        data: {}
        target:
          entity_id: input_boolean.authorized_in_garden
mode: restart

Motion sensor in house:
binary_sensor.hue_motion_og1_motion
binary_sensor.hue_motion_eg_motion
binary_sensor.hue_motion_keller_ausgang_motion

Motion sensor in garden:
binary_sensor.hue_motion_outdoor_carport_motion
binary_sensor.hue_motion_outdoor_hintereingang_motion
binary_sensor.hue_motion_outdoor_zelt_motion
binary_sensor.hue_motion_outdoor_tor_einfahrt_motion

I can try to help but the extra complication for me is that I do not understand german. Can you add some comments into your code examples in english?

I tried to make it clear now