X10 Community Forum

🖥️ActiveHome Pro => Plug-ins => Smart Macros => Topic started by: thejfk on November 15, 2008, 01:40:34 PM

Title: Help with gate alarm
Post by: thejfk on November 15, 2008, 01:40:34 PM
I set up a gate alarm  for my pedestrian gate to my front yard.
I used a N/O magnetic switch connected to a powerflash (A3)

Macro 1(gate open)trigger A3/ON  =set flag 1 , turn on  dummy switch (M1)

Macro 2(gate closed) trigger A3/OFF=clear flag 1,turn M1 off

Macro 3, conditions: flag 1 set, trigger M1/ON= sound chime..turn M1 off...30 second delay...turn M1 on...2 second delay turn M1 off

IF the gate is left open (flag 1 set), every time A1 goes on it restarts Macro three.

The alarm system works , BUT the A3/OFF is not always heard(CM15/AHP),and Macro 3 continues to ring the chime even when the gate is closed .
 I used A3 for the powerflash because "A" is the monitored house code.
Are powerflash units monitored? or am I missing the "monitored" concept?
 Thanks Guys
Title: Re: Help with gate alarm
Post by: Puck on December 08, 2008, 09:11:14 AM
Within macro 3, which is triggered by M1 ON, you have a command "M1 ON"; this will cause it to execute multiple times and technically, it should never come out of this infinite loop. This is most likely why you are still hearing the chime even after the gate is closed.

What are you trying to do with macro 3?
Title: Re: Help with gate alarm
Post by: HA Dave on December 08, 2008, 05:11:32 PM
Puck how did this guy slip through the posts since nov 15th?

I think... my garage door reminder (http://www.x10community.com/forums/index.php?topic=14721.msg81860#msg81860) would work fine for the gate thejfk is using. Of course I use a BVC (http://davesdomainonline.com/bvc/bvc.htm) voice announcement.... but a chime will work also. The Garage door announcement can be seen in my YouTube Video (http://www.youtube.com/watch?v=apZF77tsZlI).
Title: Re: Help with gate alarm
Post by: thejfk on December 09, 2008, 08:08:27 PM
Puck,
What I was trying to do with macro 3 is create a  "gate open" reminder,  which worked great, and as you said, continues to loop indefinitely. The idea was to have macro 3 only run when flag 1 is set, and closing the gate SHOULD clear flag 1,but it was not reliable...(why it is not reliable was the reason for the original post).
I have taken Dave's advice and copied his garage door reminder, which works great. Thanks Dave!