Usermod with SR501

Hi
I try to enable the usermod with PIR sensor and the PIR switch sequentially(on->off->on->off). I have checked the same wiring on ESPhome and the sensor worked correctly. Did I miss any settings or codes need to be adjusted in usermod?

I am not sure 0s is ok for off time. Try larger time.