You can eaisily create that automation in home assistant automation section. Create one automation for turning light on and other for turning it off. If your pir senor has a illuminance sensor put that also in. So it will trigger light only when lux is bellow some value.
Battery on my aquara pirs are 100% and they are detecting a motion all day long for more than 6 months.
Works now!..you must exactly set the same duration time in the automation and in the helper
When my aqara motion sensor dedects a motion the status is at detected for 1,5 minutes and after 1,5 minutes the status goes to normal.
So when for example you move after one minute the timer dont reset to 5minutes because the status of the pir is already on detected (for 1,5 min)
How to change this time?
I never had that issue and I dont think that you can actually change detection time. Maybe something is moving in front of sensor. When sensor detect motion it should go off in 5 to max 10 sec.
I dont know why you have such a long detection time, but you can try few things. Move sensor to another room and see if anything changes. You can also remove senosr from zigee2mqtt and pair it again.
Maybe an idea: depending on where you use this, you might have a second automation to switch the light off when there is no motion anymore, and after some time has passed.
I had a problem that in some cases this initial way of just having a timer that starts when motion is detected, and I returned to that room, I could end up in the dark.
It’s a different way of handling lights with motion sensors, a preference and also case specific.