Light automation keeps triggering on after lights off, due to PIR sensor

Hi,
I have 2 automation for Lights On and Off based on PIR sensor (DIGOO PIR Sensor) triggered.
The problem is when the light goes off due to timeout without any movement, then (for some reason, i guess due to lux change) the light goes on again and the timer starts over.
I have try to implement with a timer and then through the automation but the result is the same. The light goes on again after a sec.
Is there away to delay the ON automation for (let’s say 3-5 sec) or temp disable the PIR sensor (let’s say 3-5 sec) in order to avoid that?
Any other thoughts would be great too.

TURN OFF AUTOMATION

---
id: '6789057843657567367837'
alias: Turn off Playground light when there is no movement
trigger:
#- platform: event`
#  event_type: timer.finished`
#  event_data:`
#    entity_id: timer.timer_playground_main_lights`

- entity_id: binary_sensor.playground_main1_pir
  for: 0:01:00
  platform: state
  to: 'off'
action:
- entity_id: light.playground
  service: light.turn_off
initial_state: 'on'

TURN ON AUTOMATION

---
id: '6783363643657567367837'
alias: Turn on Playground light when there is movement
trigger:
  - entity_id: binary_sensor.playground_main1_pir
    platform: state
    to: 'on'
  - entity_id: binary_sensor.playground_motion_detected
    platform: state
    to: 'on'
action:
#- service: timer.start
#  entity_id: timer.timer_playground_main_lights
- entity_id: light.playground
  service: light.turn_on
initial_state: 'on'

TIMER

---
timer_playground_main_lights:
  duration: '00:10:00'

I know this is an old post and I couldn’t find answers for this myself on the forum. I did this:

- alias: "Switch On Lights If Motion Is Detected"
  initial_state: true
  trigger:
    platform: state
    entity_id: binary_sensor.foyer_motion
    to: "on"
  condition:
    - condition: state
      entity_id: binary_sensor.anybody_home
      state: "off"
    - condition: template
      value_template: >-
        {# prevent the light turning off after the last trigger to trigger the motion sensor again immediately #}
        {{ (utcnow() - states.light.foyer.last_changed).seconds >= 1 }}
    - condition: or
      conditions:
        - condition: sun
          after: sunset
          after_offset: "-02:00:00"
        - condition: sun
          before: sunrise
          before_offset: "-00:30:00"
        - condition: state
          entity_id: binary_sensor.low_light
          state: "on"
  action:
    ...