Don't turn on light if it was closed less than 5 minutes ago

Hi, I tried this and i think it’s not working… is it supposed to or or i should create another entity separately that monitor time the light was up?

alias: light_kitchen_presence_on
description: ""
trigger:
  - platform: state
    entity_id:
      - binary_sensor.presence_cuisine
    to: "on"
condition:
  - condition: state
    entity_id: input_boolean.night_mode
    state: "off"
  - condition: state
    entity_id: light.lavabo
    state: "off"
    for:
      hours: 0
      minutes: 5
      seconds: 0
action:
  - service: light.turn_on
    data: {}
    target:
      entity_id: light.lavabo
mode: single

Have you considered a timer helper? You can trigger it, and when it completes, it can trigger again. You can also add the light on/off trigger to include the timer. If it is running, do not trigger (ie within 5 mins, no trigger)