M1 Dealer Site  
Search

Any term All terms

Main Menu
Home
FAQs
Bulletin Board (Forums)
Site Search
Downloads **
Email Elk Tech Support
M1 Training Videos
RP Training Videos
XEP Training Videos
XSP Training Videos
Webinar Training Videos
Go to Main Elk Website

View Topic
Forums :: ElkRP "Software for Installer Programming" :: Rules based on arm states not firing

| Reply Reply |
Rules based on arm states not firing
Posted by brad77 on 01/04/2010 07:46 PM

Hello. I am having trouble getting rules to fire when the system is armed to different arm states (stay, away, vacation, etc.) I am running the latest firmware (5.1.20).

I have rules set up that set a counter based on whether the arm state is home or away. As a debugging measure, the rules announce when they run. I have also set up rules that announce the counter state whenever it is changed.

When I arm the system in any state, the rules do not fire. The disarm rule, however, does fire. When checking the log, I noticed that the event code for all arming events is 1173 regardless of which state is selected. All disarm events are 1174.

Is this system not firing the appropriate events for the corresponding alarm arm state? According to the Installation and Programming Manual, I should expect to see the following event codes:

  • 1173 = Area Armed
  • 1183 = Area 1 Armed Away
  • 1191 = Area 1 Armed Stay
  • etc.

Thanks in advance for any insight you may have.



Edited by brad77 on 01/04/2010 07:49 PM

Re: Rules based on arm states not firing
Posted by bradweeks on 01/05/2010 07:55 AM

What is an example of your rule?

Re: Rules based on arm states not firing
Posted by brad77 on 01/05/2010 02:28 PM

Here are a couple of examples:

WHENEVER xxxx (Area 1) ARM STATE BECOMES DISARMED
    THEN SET OffStayAway (Counter 2) TO 0
WHENEVER xxxx (Area 1) IS ARMED NIGHT
    THEN SET OffStayAway (Counter 2) TO 1
    THEN ANNOUNCE Miscellaneous 1 (vm239)
WHENEVER xxxx (Area 1) IS ARMED VACATION
    THEN SET OffStayAway (Counter 2) TO 2
    THEN ANNOUNCE Miscellaneous 4 (vm242)

And the counter debug rules:

WHENEVER OffStayAway (Counter 2) CHANGES TO 0
    THEN ANNOUNCE Miscellaneous 8 (vm246)
WHENEVER OffStayAway (Counter 2) CHANGES TO 1
    THEN ANNOUNCE Miscellaneous 9 (vm247)
WHENEVER OffStayAway (Counter 2) CHANGES TO 2
    THEN ANNOUNCE Miscellaneous 10 (vm248)

In the above examples, only the disarmed rule and the rule associated with changing the counter to 0 fires. Other rules do not appear to fire at all.

Thanks for your help!



Edited by brad77 on 01/05/2010 02:30 PM

Re: Rules based on arm states not firing
Posted by bradweeks on 01/06/2010 06:52 PM

For testing purposes Add Turn Output 3 on for 30 seconds so that you have a visual indication the rule fired.

Re: Rules based on arm states not firing
Posted by brad77 on 01/24/2010 10:39 PM

Ok. I was finally able to test this. It looks like the rules are firing in all cases, but the voice announcements are not occurring when some of the rules are fired. For instance, when the counter gets set to zero (disarmed), I hear the announcement. When the counter is set to 1 or 2, the output turns on but the announcement is not heard.

I've tried a few variations with setting unassigned outputs for a few seconds before speaking, but I still don't hear the announcement. Is there something preventing the announcements from being made?

Thanks!

Edited by brad77 on 01/24/2010 10:40 PM

Re: Rules based on arm states not firing
Posted by bradweeks on 01/25/2010 12:06 PM

In ELK-RP if you highlight the Rule and click "Test" do you hear the voice messages?

Re: Rules based on arm states not firing
Posted by brad77 on 01/26/2010 03:07 PM

Yes. When I test, I hear the voice message I set up in the rule. Here's a specific example of the rule:

WHENEVER xxxx (Area 1) IS ARMED VACATION
    THEN SET OffStayAway (Counter 2) TO 2
    THEN TURN Output 003 (Out 3) ON FOR 15 SECS
    THEN ANNOUNCE Miscellaneous 4 (vm242)

When I test, all statements fire and I hear the announcement. When I arm the system in vacation mode, the output turns on and the counter appears to be set, but the announcement is never heard.



Re: Rules based on arm states not firing
Posted by bradweeks on 01/29/2010 09:14 AM

Please try the following Rule:
Whenever Exit Delay Ends
And My Home (Area 1) Is Armed Vacation Mode
Then Announce Miscellaneous 4 (vm242)

Re: Rules based on arm states not firing
Posted by brad77 on 02/02/2010 01:16 PM

After some experimenting, I realize my mistake. I was misusing the output, thinking that would pause rule execution until the output was turned off when in fact the announcement was run immediately after the output was turned on. I'm assuming that I didn't hear it because the system was already speaking (as it does when the system is armed or disarmed).

I have other rules that run when the EXIT DELAY ends, and they work correctly. Here is what I ended up doing:

WHENEVER xxxx (Area 1) IS ARMED NIGHT
    THEN SET OffStayAway (Counter 2) TO 1
    THEN SET Announce (Counter 3) TO 1
    THEN TURN Output 207 ON FOR 3 SECS

WHENEVER Output 207 STATE IS TURNED OFF
  AND Announce (Counter 3) IS EQUAL TO 1
    THEN SET Announce (Counter 3) TO 0
    THEN ANNOUNCE Miscellaneous 1 (vm239)

This works reliably. I can set the Announce counter to whatever I want to announce, then have rules defined to make the appropriate announcement whenever output 207 turns off.

Thank you for your help.



Edited by brad77 on 02/02/2010 01:17 PM

| Reply Reply |

What's Related
These might interest you as well
FAQ

Form Generator

Web Pages