Prevent automation to run if light is on

How do I prevent this automation to run if the light “garderob” is already on? I have tried as below without success…

alias: 'Sensor: Motion, light, Garderob/<4 lux@Trapp'
description: >-
  Turns on Garderob when motion in Hall or Trapp, below 4 lx at Trapp and
  Garderob is off
trigger:
  - type: motion
    platform: device
    device_id: cc1e17f3f6f04547dc9eaa327d15e900
    entity_id: binary_sensor.motion_hall_occupancy
    domain: binary_sensor
    id: motion_hall
  - type: motion
    platform: device
    device_id: 2e0e2d9195e56050daa62f4e1415da55
    entity_id: binary_sensor.motion_trapp_occupancy
    domain: binary_sensor
    for:
      hours: 0
      minutes: 0
      seconds: 5
    id: motion_trapp
condition: []
action:
  - choose:
      - conditions:
          - condition: or
            conditions:
              - condition: trigger
                id: motion_hall
              - condition: trigger
                id: motion_trapp
          - condition: numeric_state
            entity_id: sun.sun
            attribute: elevation
            above: '-4.0'
          - condition: numeric_state
            entity_id: sensor.motion_trapp_illuminance_lux
            below: '4'
          - condition: device
            type: is_off
            device_id: 698f00a14d15ddcf7a7449d3e66f7ad9
            entity_id: light.garderob
            domain: light
        sequence:
          - service: light.turn_on
            target:
              entity_id: light.garderob
            data:
              kelvin: 2000
              brightness_pct: 40
          - wait_for_trigger:
              - type: no_motion
                platform: device
                device_id: cc1e17f3f6f04547dc9eaa327d15e900
                entity_id: binary_sensor.motion_hall_occupancy
                domain: binary_sensor
                for:
                  hours: 0
                  minutes: 2
                  seconds: 0
              - type: no_motion
                platform: device
                device_id: 2e0e2d9195e56050daa62f4e1415da55
                entity_id: binary_sensor.motion_trapp_occupancy
                domain: binary_sensor
                for:
                  hours: 0
                  minutes: 0
                  seconds: 30
            continue_on_timeout: false
      - conditions:
          - condition: or
            conditions:
              - condition: trigger
                id: motion_hall
              - condition: trigger
                id: motion_trapp
          - condition: numeric_state
            entity_id: sun.sun
            below: '-4.0'
            attribute: elevation
          - condition: numeric_state
            entity_id: sensor.motion_trapp_illuminance_lux
            below: '4'
          - condition: device
            type: is_off
            device_id: 698f00a14d15ddcf7a7449d3e66f7ad9
            entity_id: light.garderob
            domain: light
        sequence:
          - service: light.turn_on
            target:
              entity_id: light.garderob
            data:
              kelvin: 2000
              brightness_pct: 1
          - wait_for_trigger:
              - type: no_motion
                platform: device
                device_id: cc1e17f3f6f04547dc9eaa327d15e900
                entity_id: binary_sensor.motion_hall_occupancy
                domain: binary_sensor
                for:
                  hours: 0
                  minutes: 2
                  seconds: 0
              - type: no_motion
                platform: device
                device_id: 2e0e2d9195e56050daa62f4e1415da55
                entity_id: binary_sensor.motion_trapp_occupancy
                domain: binary_sensor
                for:
                  hours: 0
                  minutes: 0
                  seconds: 30
            continue_on_timeout: false
          - type: turn_off
            device_id: 698f00a14d15ddcf7a7449d3e66f7ad9
            entity_id: light.garderob
            domain: light
    default:
      - wait_for_trigger:
          - type: no_motion
            platform: device
            device_id: cc1e17f3f6f04547dc9eaa327d15e900
            entity_id: binary_sensor.motion_hall_occupancy
            domain: binary_sensor
            for:
              hours: 0
              minutes: 2
              seconds: 0
          - type: no_motion
            platform: device
            device_id: 2e0e2d9195e56050daa62f4e1415da55
            entity_id: binary_sensor.motion_trapp_occupancy
            domain: binary_sensor
            for:
              hours: 0
              minutes: 0
              seconds: 30
        continue_on_timeout: false
      - type: turn_off
        device_id: 698f00a14d15ddcf7a7449d3e66f7ad9
        entity_id: light.garderob
        domain: light
mode: restart

Add top level condition:

condition:
  - condition: state
    entity_id: light.garderob
    state: 'off'

Thanks! So easy and yet so hard to figure out :grin::crazy_face: