Auto-Arming Based On Occupancy

The M1 System can be automatically armed using rules.  This is useful in commercial applications.  The customer may desire to have the system armed at a particular time.  This is easily accomplished using a rule like the one below:

WHENEVER TIME IS 11:00PM
THEN ARM AREA(S)1 TO AWAY IMMEDIATELY

Another desirable option may be, to arm when there is no longer anyone occupying the building.  By monitoring key doors and motion detectors, the system can detect when there has been a lack of activity the building for a certain amount of time, and arm the building.

When a zone is tripped (a door opens or a motion sensor detects motion) a counter is set to a certain value.  This value determines the period of time in which there can be no motion detected before the system will arm.  In this example the counter will be set to 30.

WHENEVER Motion 1 (Zn 1) BECOMES NOT SECURE
     THEN SET AutoArm (Counter 1) TO 30

  WHENEVER Door 1 (Zn 2) BECOMES NOT SECURE
     THEN SET AutoArm (Counter 1) TO 30

A rule similar to the ones above must be written for every zone that is being monitored for motion.  Each zone will set the same counter (counter 1 in this example) to 30 so that each time a zone is tripped the counter is reset to 30.

If there is no motion detected for a period of 60 seconds on any of the monitored zones, a value of 1 will be subtracted from the counter.  In this example the counter was set to 30, therefore the system will automatically arm if there is no motion for 30 minutes.  An AND statement must be included for each zone that is being monitored.

WHENEVER EVERY 60 SECONDS
     AND Motion 1 (Zn 1) IS SECURE
     AND Door 1 (Zn 2) IS SECURE
          THEN SUBTRACT 1 FROM AutoArm (Counter 1)

When the counter reaches 0 (meaning that there has been no motion detected for 30 minutes) the system will automatically arm to away mode.

WHENEVER AutoArm (Counter 1) CHANGES TO 0
          THEN ARM AREA(S) 1 TO AWAY IMMEDIATELY

By adding additional THEN statements to the rule, other actions can be performed when the counter reaches 0.  For example, a task can be activated that will turn all the lights off or set the thermostat to economy mode.

WHENEVER AutoArm (Counter 1) CHANGES TO 0
          THEN ARM AREA(S) 1 TO AWAY IMMEDIATELY
          THEN ACTIVATE Lights Off (Task 1)
          THEN ACTIVATE Tstat_Economy (Task2)

Auto-Arming with Warning Announcements

When choosing to Automatically Arm you can arm immediately as shown above or you can arm after a duration of time.  If the system is programmed to arm after a duration, the system will automatically announce a warning message for the last ten minutes before the system is armed.  This message is announced every minute and informs any occupants of the building how long it will be before the system arms.  In this example the system is set to automatically arm to away mode after 10 minutes when the counter reaches 0.

WHENEVER  AutoArm (Counter 1) CHANGES TO 0
     THEN ARM AREA(S) 1 TO AWAY AFTER 10 MINS

If there is someone in the building who wishes to remain, they will need to manually arm the system, and then disarm the system to cancel the auto-arming sequence or extend the time until auto-arming at the keypad. 

In some cases, the system should auto-arm with warning messages, but the auto-arming sequence should automatically reset if motion is detected, eliminating the need to arm and disarm or extend the time.  This can be done using rules to make the warning announcements and using the Automatically Arm immediately option.  In this example, 5 miscellaneous messages are set up to give the warning announcements.  The messages are set up to say “System Will Arm in X Minutes”, where the X represents the value of the “AutoArm” counter (and the number of minutes left until the system automatically arms).  If desired a message such as “Warning System Set to Auto Arm” can be set up as a miscellaneous message and announced each minute. 

WHENEVER AutoArm (Counter 1) CHANGES TO 5
          THEN ANNOUNCE Miscellaneous 5 (vm 243)

WHENEVER AutoArm (Counter 1) CHANGES TO 4
          THEN ANNOUNCE Miscellaneous 4 (vm 242)

WHENEVER AutoArm (Counter 1) CHANGES TO 3
          THEN ANNOUNCE Miscellaneous 3 (vm 241)

WHENEVER AutoArm (Counter 1) CHANGES TO 2
          THEN ANNOUNCE Miscellaneous 2 (vm 240)

WHENEVER AutoArm (Counter 1) CHANGES TO 1
          THEN ANNOUNCE Miscellaneous 1 (vm 239)

When the counter reaches 0, the system will then automatically arm to away mode, immediately.

WHENEVER AutoArm (Counter 1) CHANGES TO 0
          THEN ARM AREA(S) 1 TO AWAY IMMEDIATELY

Welcome to our blog, the Security & Automation Connection!


Learn more about security, home automation, business solutions, energy management, access control, and many other solutions available though ELK's M1 Cross Platform Controls. Our goal is to make this blog a great resource for getting new ideas on how to take advantage of the powerful integration and programming capabilities of the M1. We will also provide tech tips and how-to's on a variety of applications to get you well on your way to securing and simplifying life!

Explore Topics