Zone inactive for x minutes doesn't work with variable... How to troubleshoot

I have also been left in the dark, after the sensors have “said” "zone inactive"and i do enter the room again. Solved it by adding “Zone active” card after the “zone inactive in xxminutes”. Never been left in the dark since that. I guess the timer starts at first “zone inactive” report, and again at next, and so on.