Automatic lights with motion sensors

Hello,

I currently have an Aqra motion sensor setup to turn the light on in a bathroom using the default automatic lights configuration in HA.

However, the lights frequently turn off when someone is still in there, and also don’t turn on again straight away even when the sensor is waved at.

Is there a way to set this up so it won’t turn off if someone is still in there with the existing setup, or do I need to get the expensive presence detection sensors for that?

I’m looking for a solution so that someone can go to the bathroom or shower and the light won’t turn off while they are in there. But will turn off within a couple of minutes of them leaving.

Edit:
I am using the Aqara Motion Sensor P1 with the following automation:

alias: Bathroom Motion Activated Lighting
description: ""
use_blueprint:
  path: homeassistant/motion_light.yaml
  input:
    motion_entity: binary_sensor.bathroom_motion_sensor_motion
    light_target:
      area_id: bathroom

Thanks!

Which Aqara Motion Sensor?

Please show your automation and also the course of the Aqara if it works and if not

I think them motion sensors have a cool down period before it detects new motion.
I remember some old ones of mine I’m sure it was about 30 seconds, I think Z2MQTT let’s you change it slightly.

I have the Aqara Motion Sensor P1.

Currently I am just using this:

alias: Bathroom Motion Activated Lighting
description: ""
use_blueprint:
  path: homeassistant/motion_light.yaml
  input:
    motion_entity: binary_sensor.bathroom_motion_sensor_motion
    light_target:
      area_id: bathroom