PDA

View Full Version : Event Triggering



harleydude
December 20th, 2006, 03:52 PM
When I arm my Elk system I receive the following events

15:47:40:390 12/20/2006 Device Manager ElkM1EZ8\Security Area Area 1:Status=Armed Fully
15:46:41:359 12/20/2006 Device Manager ElkM1EZ8\Security Area Area 1:Status=Armed with Exit Timer Working
15:46:40:968 12/20/2006 Device Manager ElkM1EZ8\Security Area Area 1:Security Mode=Armed Away
15:46:40:953 12/20/2006 Device Manager ElkM1EZ8\Security Area Area 1:Status=Armed Fully


As you can see I receive a status update event that the system is Armed Fully, then Armed with Exit Timer Working, then finally another Armed Fully event. I want to be able to trigger off of the second Armed Fully event. How would I go about doing this?

Rick

Promixis
December 20th, 2006, 04:24 PM
Rick,

There should be events in the logger that you can drag to the action tree.

You want to use the Mode event -> this should track the actual security mode. The status is simple a text description of the controllers state.

Also, would be useful if you posted your Elk Provider code so I can how you are doing things.

harleydude
December 20th, 2006, 06:08 PM
I am currently using the Mode event to trigger my action, but what I actually want to do is trigger on the second Status=Armed Fully when the exit timer has actually expired. Right now if someone arms the system, my script action is executed, but if they disarm the system for some reason and then rearm the script action gets executed again.

Rob H
December 20th, 2006, 08:16 PM
Perhaps you could use a Macro Event?

harleydude
December 21st, 2006, 07:21 AM
Using the States.GML example I was able to get this to work. Thanks Rob.

Now is it possible to get access to the Security Area device from within my scripting action?

Rick