Trying to automate security alarm, for which I need to test historical state of the door, specifically need to know if the door had last changed state more than 5 minutes ago.
The first line reports the date and time of door’s last state-change.
The second line reports how long ago the state-change occured (in HH:MM:SS format).
The third line reports true if the state-change occured more than 5 minutes ago. Otherwise it reports false.
Theses three results will help us understand what is happening with your condition. FWIW, the third line is what I recommend you use in your Template Condition.