Motion Senor won't fire repeatedly is motion exists

Hi Team,

I have a motion sensor in the kitchen that I use to turn on the lights. It trippers a timer also so that in x amount of time the lights get turned off in another piece of automation.

However, once the motion has been executed once, I can’t seem to get it to pick up on the motion again. Even for X amount of time after the lights turn off it’s the same, the motion is not recognised.

Any ideas, what I am doing wrong?

alias: Kitchen Cupboard Lights - Lights On - Movement after Sunset
description: ''
  - platform: state
    entity_id: binary_sensor.kitchen_sensor_motion_1_ias_zone
    to: 'on'
  - condition: or
      - condition: sun
        after: sunset
        after_offset: '00:00:00'
      - condition: sun
        before: sunrise
        before_offset: '00:00:00'
  - service: light.turn_on
      entity_id: light.switch_hallway_cupboardlightstrip_on_off
  - service: timer.start
      duration: '0'
      entity_id: timer.kitchen_under_cupboard_timer
  - service: notify.gmail_notifcation_notifier
      title: 09 - Lights On
      message: Kitchen Under Cupboard Lights Turned On / Reset Motion Time
mode: restart

What is the device?

@nickrout Xiaimi Motion Sensor connected to HA via ConBee II dongle

Xiaomi Mi Motion Sensor White 23953

Solution was to set the state of the sensor back to off after the execution of the automation.

  - service: python_script.set_state
      entity_id: binary_sensor.kitchen_sensor_motion_1_ias_zone
      state: 'off'

If there is another way, keen to hear it.

Your timer stops as soon as you start it with that duration.