Hello, just gonna drop this awesome blueprint I use for every light in my house.
It might just fit your requirements. It also doesn’t just turn on because you triggered the sensor again after manually turning it off (until the delay time is expired at least).