Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Scheduled Auto-arming when there no movement for 30 minutes
#1
I have set to system to auto alarm at 11pm every night.  However, there are always occasions in which someone is still up at this time. When this happens there is a mad rush to the keypad to disable the system before the system arms.

Is it possible to prevent the auto alarm if one of the downstairs PIR\'s are triggered at this time?  Also is it then possible for every 30 minutes to check the PIR activity and if there is no activity and the night mode has not been activited then for the alarm to be activiated.

Thanks 
#2
That is a good example of the programmable power of Comfort

The attached cclx file shows how it can be done (and this is not the only way to do it)

Time Program 1 is set at 11:30 PM or any starting time that you want - it sets Flag 1
Time Program 2 is programmed at 6:00 AM or any time you prefer - it clears Flag 1. So Flag 1 is on between 11:30 PM and 6 AM

Time Program 1 Response = Set Flag Flag01
Time Progran 2 Response = Clear Flag Flag01

Zone 8 (or any zone you prefer) is programmed as a Night /Away Zone Type, with On Response which starts a Timer for 30 minutes or any interval you choose. Hence every time to PIR detects movement it starts a 30 minutes timer. At the end of the time, it calls another Response Autoarm to Night if Flag 1 is on AND Security is Off

Zone 8 Response:
Do AutoarmToNightIf After 1800 Seconds Using Timer10

Timer 10 is the timer used (out of 64 timers)

Autoarmto Night Response=
If Flag Flag01 <> 0 And SecurityMode = SecurityOff Then
    AutoArm NightMode
End If

Hence whenever there is no motion at the zone for 30 minutes, the timed response checks a flag which determines if the time is between 11:30 PM and 6 AM and system is not armed, and auto-arms to Night Mode

This can be extended to check more than 1 zone for movement but I will leave that as anothr exercise
#3
Brilliant thanks I will give it a try.
#4
Is it possible to have multiple entries for Zones?  On the Zone/Input section I already have an automated responsible to trigger a light coming on when motion is detected.  Can I just added another entry for the same zone to enable the auto arm?
#5
A zone can only trigger one Response so you cannot trigger another one
However a Response can consist of multiple actions.
If you already have a zone Response assigned to the zone you can add the new actions to the existing Response assigned to the zone

I have changed the totle of this topic and moved it to the Tips, Tricks and Tutorials Forum as this is a good example of such programming in Comfort
#6
ok thanks. 
#7
I made the changes recommended but the alarm did not even trigger.
#8
Do you mean the alarm \"did not trigger\" or the system did not arm to Night Mode?

Remember for it to arm to night mode,
  • The PIR zone must be triggered and be idle for 30 minutes
  • At the end of the 30 minutes PIR idle time, the time must be past 11:30 PM and before 6:00 AM according to the times in Time Program 1 and 2
However I have just found a flaw in my logic
If the PIR has already been idle for more than 30 minutes at 11:30 PM, then flag 1 is set but the system will not arm to Night mode because the timer 10 has already expired and the Response has already checked that flag 1 was 0

I have changed the Response for Time Program 1 to
Set Flag Flag01
If Timer Timer10 = 0 Then
    Do AutoarmToNightIf
End If

Hence at 11:30 PM, if Timer 10 is not running, ie the delay time of 30 minutes is NOT running, the system will auto-arm to night mode immediately


Pleae note that if you wish to test this by changing the time, you must let the time cross 11:30 PM for the time program to work - in other words you cannot change the time to 11:31 PM because the time program works only when the time reaches the set time

The new program is attached



Attached Files
.zip   AutoarmIfNoPIR.zip (Size: 17.35 KB / Downloads: 22)
#9
OK I understand why it did not trigger.  I will try it with the new logic.
#10
Thank you this worked a treat!Big Grin


Forum Jump:


Users browsing this thread: 1 Guest(s)