Aqara motion from 2:00 to 30 sec delay

I geot this work with PYTHON SCRIPT
I set if for aqara motion sensor, to set state “off” after motion detected.
Main issue was when motion is triggered, sensor state keeps “on” for 2 minutes and then sets “off”
Thank you rodpayne for pyhon script
How to manually set state/value of sensor