Need help with presence logic – delay before turning lights off

@Roman_Soos
Please also see my full tutorial on presence sensors. It also covers how how to do what you want.