02-07-2018, 04:03 AM
Hi, I use a set of responses to do an automatic Security Off in a morning (e.g. within 2 minutes of LAST activating my Upstairs PIR (if in NightMode, between 6am and 10am ), if Staircase PIR and then Hallway PIR are triggered in sequence before timer expires then auto disarm.
This has worked well for months until this weekend. I cannot figure out why it didn\'t auto disarm. It\'s impossible not to trigger the PIRs so my only theory is that perhaps Timers do not operate as I understand.
For context this is my very simplified set of responses. The only real issue is PIR1 though
PIR1_Response:If nightmode AND DisarmStep = 0 AND Hours ok Then Do CancelDisarmCheck After 120 seconds Using NightDisarmTimer
PIR2_Response:If ... AND DisarmStep = 0 AND NightDisarmTimer <> 0 Then (i.e. if timer still going) Set DisarmStep = 1
PIR3_Response:If ... AND DisarmStep = 1 AND NightDisarmTimer <> 0 Then (i.e. if timer still going) Execute actions to disable security now
CancelDisarmCheck:Set DisarmStep = 0 -- it\'s been 2 mins since we started the sequence, so reset step
What I wanted to confirm is, does the \"Do Response After NN secs Using TimerName\" cancel and restart the timer every time that response is triggered? I had assumed it would. That is the only thing I can think of to explain why it didn\'t work on this one ocassion - e.g. perhaps I started to walk downstairs 1 minute and 59 seconds after FIRST triggering the upstairs PIR regardless of how many times I had subsequently triggered it.
For now, I\'ve changed my PIR1 response to check if the timer is running, stop it, then re-start it, so that should work even if I misunderstand how Comfort resets/restarts timers.
All is working fine again for now but I just wondered if anyone can confirm either way?
Thanks
This has worked well for months until this weekend. I cannot figure out why it didn\'t auto disarm. It\'s impossible not to trigger the PIRs so my only theory is that perhaps Timers do not operate as I understand.
For context this is my very simplified set of responses. The only real issue is PIR1 though
PIR1_Response:If nightmode AND DisarmStep = 0 AND Hours ok Then Do CancelDisarmCheck After 120 seconds Using NightDisarmTimer
PIR2_Response:If ... AND DisarmStep = 0 AND NightDisarmTimer <> 0 Then (i.e. if timer still going) Set DisarmStep = 1
PIR3_Response:If ... AND DisarmStep = 1 AND NightDisarmTimer <> 0 Then (i.e. if timer still going) Execute actions to disable security now
CancelDisarmCheck:Set DisarmStep = 0 -- it\'s been 2 mins since we started the sequence, so reset step
What I wanted to confirm is, does the \"Do Response After NN secs Using TimerName\" cancel and restart the timer every time that response is triggered? I had assumed it would. That is the only thing I can think of to explain why it didn\'t work on this one ocassion - e.g. perhaps I started to walk downstairs 1 minute and 59 seconds after FIRST triggering the upstairs PIR regardless of how many times I had subsequently triggered it.
For now, I\'ve changed my PIR1 response to check if the timer is running, stop it, then re-start it, so that should work even if I misunderstand how Comfort resets/restarts timers.
All is working fine again for now but I just wondered if anyone can confirm either way?
Thanks

