Repeat automation wrong understanding

Hey guys, im pretty sure I have a misunderstanding of the repeat part in automation.

Using the following code, I want to run image processing when boolean is turned on. Detect the state. If below 1, meaning there are no people (state 0). I want to restart image processing and check again until it is below 1.

As of now the service doesn’t even get triggerd ?

Hope you guys understands me ?

alias: boolean buite uit.
description: ''
trigger:
  - platform: state
    entity_id: input_boolean.beweging_buiten
    from: 'off'
    to: 'on'
condition: []
action:
  - service: image_processing.scan
    data: {}
    entity_id: image_processing.rekognition_husky_air_d53127471
  - repeat:
      while:
        - condition: numeric_state
          entity_id: image_processing.rekognition_husky_air_d53127471
          below: '1'
      sequence:
        - service: input_boolean.turn_off
          data: {}
          entity_id: input_boolean.beweging_buiten
mode: single