Comfort Home Automation/ Security System Forums Home 
Home Search search Menu menu Not logged in - Login | Register
Comfort Home Automation/ Security System Forums > Support > Tips, Tricks and Tutorials > Scheduled Auto-arming when there no movement for 30 minutes

Scheduled Auto-arming when there no movement for 30 minutes
 Moderated by: slychiu
 New Topic   Reply   Printer Friendly 
 Rate Topic 
AuthorPost
 Posted: Sunday Jul 18th, 2010 05:02 am
   PM  Quote  Reply 
1st Post
mreneuk
Member
 

Joined: Sunday Jul 4th, 2010
Location:  
Posts: 23
Status: 
Offline

  back to top

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 



 Posted: Sunday Jul 18th, 2010 06:03 am
   PM  Quote  Reply 
2nd Post
slychiu
Administrator


Joined: Saturday Apr 29th, 2006
Location: Singapore
Posts: 2133
Status: 
Offline

  back to top

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

Last edited on Tuesday Jul 20th, 2010 11:44 am by slychiu



 Posted: Sunday Jul 18th, 2010 06:08 am
   PM  Quote  Reply 
3rd Post
mreneuk
Member
 

Joined: Sunday Jul 4th, 2010
Location:  
Posts: 23
Status: 
Offline

  back to top

Brilliant thanks I will give it a try.



 Posted: Sunday Jul 18th, 2010 07:26 am
   PM  Quote  Reply 
4th Post
mreneuk
Member
 

Joined: Sunday Jul 4th, 2010
Location:  
Posts: 23
Status: 
Offline

  back to top

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?



 Posted: Sunday Jul 18th, 2010 08:32 am
   PM  Quote  Reply 
5th Post
slychiu
Administrator


Joined: Saturday Apr 29th, 2006
Location: Singapore
Posts: 2133
Status: 
Offline

  back to top

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

Last edited on Sunday Jul 18th, 2010 08:41 am by slychiu



 Posted: Sunday Jul 18th, 2010 08:36 am
   PM  Quote  Reply 
6th Post
mreneuk
Member
 

Joined: Sunday Jul 4th, 2010
Location:  
Posts: 23
Status: 
Offline

  back to top

ok thanks. 



 Posted: Sunday Jul 18th, 2010 10:58 am
   PM  Quote  Reply 
7th Post
mreneuk
Member
 

Joined: Sunday Jul 4th, 2010
Location:  
Posts: 23
Status: 
Offline

  back to top

I made the changes recommended but the alarm did not even trigger.



 Posted: Sunday Jul 18th, 2010 12:54 pm
   PM  Quote  Reply 
8th Post
slychiu
Administrator


Joined: Saturday Apr 29th, 2006
Location: Singapore
Posts: 2133
Status: 
Offline

  back to top

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

Attachment: AutoarmIfNoPIR.zip (Downloaded 18 times)



 Posted: Sunday Jul 18th, 2010 04:27 pm
   PM  Quote  Reply 
9th Post
mreneuk
Member
 

Joined: Sunday Jul 4th, 2010
Location:  
Posts: 23
Status: 
Offline

  back to top

OK I understand why it did not trigger.  I will try it with the new logic.



 Posted: Tuesday Jul 20th, 2010 09:48 am
   PM  Quote  Reply 
10th Post
mreneuk
Member
 

Joined: Sunday Jul 4th, 2010
Location:  
Posts: 23
Status: 
Offline

  back to top

Thank you this worked a treat!:D



 Posted: Monday Jul 26th, 2010 10:46 am
   PM  Quote  Reply 
11th Post
peteryandeh
Member
 

Joined: Friday May 2nd, 2008
Location:  
Posts: 2
Status: 
Offline

  back to top

peteryandeh wrote: Please Quote this productslychiu wrote: 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




 Current time is 05:29 am
Comfort Home Automation/ Security System Forums > Support > Tips, Tricks and Tutorials > Scheduled Auto-arming when there no movement for 30 minutes
Top




UltraBB 1.17 Copyright © 2007-2008 Data 1 Systems