X10 Community Forum

🖥️ActiveHome Pro => Smart Macros => Plug-ins => User-Designed Working Macros => Topic started by: Puck on October 29, 2007, 10:08:59 PM

Title: DS7000 Auto-Arm on Exit
Post by: Puck on October 29, 2007, 10:08:59 PM
Narrative:
AHP 3.206 with OnAlert.

With the exception of security Macros, I run them from the Interface (they can be run from the PC if that works better for your system).

I created the following macros just as a convenience for myself, but WAF turned out pretty good too.

I keep a SlimLine Switch on the inside of one of my kitchen cupboard doors; the primary purpose of this remote is to act as a whole system reset (and no it cannot turn off the security). Since I had a spare ON / OFF switch on it, I now use it too arm my security system automatically after I exit the house.

So once I send the B3 ON signal, a flag (13) is set. As soon as the frontdoor or garagedoor opens, if that flag (13) is set, then another flag (14) gets set. When the frontdoor or garagedoor closes and these 2 flags (13,14) are set, the RF command get sent to arm the DS7000.

What I like is that once B3 ON is sent, there is no time limited to get out the door.

Equipment, name and X10 references:

1) SlimLine Switch, SECexit, B3
2) Garagedoor security sensor DS10A, SSgaragedoor
3) Frontdoor security sensor DS10A, SSfrontdoor

MACROS:

Unless otherwise stated, all conditions are an AND.

     Create the following 6 Macros:

     Macro Name:
     SECexitON

     Trigger:
     B3 ON
     
     Condition(s):
     none

     Action(s):
     Set Flags [13]
     Clear Flags [14]
     Run Program - C:\X10Sound\securityexiton.bat   runs X10WavPlayer to announce that security will arm on exit


     Macro Name:
     SECexitOFF

     Trigger:
     B3 OFF
     
     Condition(s):
     none

     Action(s):
     Clear Flags [13,14]
     Run Program - C:\X10Sound\securityexitoff.bat   runs X10WavPlayer to announce that security arm on exit was cancelled


     Macro Name:
     GARdoorUP

     Trigger:
     SSgaragedoor - Sensor Triggered
     
     Condition(s):
     Flag Status On - 13

     Action(s):
     Set Flags [14]


     Macro Name:
     GARdoorDOWN

     Trigger:
     SSgaragedoor - Sensor Closed
     
     Condition(s):
     Flag Status On - 13, 14

     Action(s):
     Clear Flags [13, 14]
     Delay 5 seconds   this delay is optional and used to prevent any X10 signal collisions in your system; use or adjust as needed
     Arm Security System - Away Instant (RF Command)
     Delay 2 Second
     *


     Macro Name:
     FRONTDOORopen

     Trigger:
     SSfrontdoor - Sensor Triggered
     
     Condition(s):
     Flag Status On - 13

     Action(s):
     Set Flags [14]


     Macro Name:
     FRONTDOORclosed

     Trigger:
     SSfrontdoor - Sensor Closed
     
     Condition(s):
     Flag Status On - 13, 14

     Action(s):
     Clear Flags [13, 14]
     Delay 5 seconds   this delay is optional and used to prevent any X10 signal collisions in your system; use or adjust as needed
     Arm Security System - Away Instant (RF Command)
     Delay 2 Second
     *


Additional notes:
If you use OnAlert for all or part of your security and you use the built-in Armed State conditions, be aware that these will not be set when you arm the DS7000 this way.

* Where I have these, I have a call to other macros that ensure all the house lights & appliances that I don't want on while away get issued an OFF command. It also sets up all the appropriate conditions to allow the house to be in secure mode.

With the delays in the final arming macros, if you had to re-enter the house, you would have to wait for the delay to time-out and arm before disarming can be done.

Of course disarming would be done with the security remote as normal.

( and yes these macros are integrated with my other garagedoor macros ;) )
Title: Re: DS7000 Auto-Arm on Exit
Post by: RonC on May 06, 2008, 03:00:40 PM
Utterly brillant, but still didn't work for me, I suck as a newbie.
Title: Re: DS7000 Auto-Arm on Exit
Post by: zach1234 on June 14, 2008, 01:15:44 AM
Thank you, Puck. I will have to try this on a job I am doing.
Title: Re: DS7000 Auto-Arm on Exit
Post by: jayhalloran on June 28, 2008, 05:55:56 PM
Just want to say that I implimented a variation of your Arm-On-Exit macro and it works just fine.  Thanks so much for sharing your work here.  You saved me a lot of trial and error.