ldrinc Posted September 9, 2016 Posted September 9, 2016 Recently installed an Elk M1 Gold security system and the ISY Elk Module. Having trouble getting a program to correctly notify me of the state of my alarm. Here is what I have written so far. My intent is to have a notification text sent to me when the alarm goes into a certain state. Security Armed Notify - [iD 0035][Parent 0069] If From Sunrise To Sunset (same day) And Elk Output 'Output 065' is On (Using a phantom output on the Elk system helps to identify the user who has armed the system.) And Elk Area 'Area 1' 'Armed State' is Armed Away And Elk Area 'Area 1' 'Arm Up State' is Armed Fully Then Set Scene 'Lighting Scenes / All Lights Scene' Off Send Notification to 'DL Only' content 'Security System Armed Away' Set Elk Output 'Output 065' Off Else - No Actions - (To add one, press 'Action') ____________________________________- I have the same program written for disarming the system. Security Disarmed Notify - [iD 0064][Parent 0069] If From Sunrise To Sunset (same day) And Elk Output 'Output 065' is On And Elk Area 'Area 1' 'Armed State' is Disarmed And Elk Area 'Area 1' 'Arm Up State' is Ready To Arm Then Set Scene 'Lighting Scenes / All Lights Scene' On Send Notification to 'DL Only' content 'Security System Disarmed' Set Elk Output 'Output 065' Off Else - No Actions - (To add one, press 'Action') ________________________________________________ The problem that I am having with this logic is that the ISY will send me two messages--- one notifying me of a disarmed system and one message notifying me of an armed system at the same time. This leaves me confused as to what state the alarm is in. Any help to correct this would be appreciated. dL
larryllix Posted September 9, 2016 Posted September 9, 2016 Both programs test for the output to be "On" and your program plays with the same point. Does the 065 affect the other status inputs?
ldrinc Posted September 9, 2016 Author Posted September 9, 2016 No, there is only one phantom output that I have active.
ldrinc Posted September 9, 2016 Author Posted September 9, 2016 (edited) My apologies, the second program should read as follows. Security Disarmed Notify - [iD 0064][Parent 0069] If From Sunset To Sunrise (next day) And Elk Output 'Output 065' is On And Elk Area 'Area 1' 'Armed State' is Disarmed And Elk Area 'Area 1' 'Arm Up State' is Ready To Arm Then Set Scene 'Lighting Scenes / All Lights Scene' On Send Notification to 'DL Only' content 'Security System Disarmed' Set Elk Output 'Output 065' Off Else - No Actions - (To add one, press 'Action') Edited September 9, 2016 by ldrinc
PurdueGuy Posted September 9, 2016 Posted September 9, 2016 I don't have an Elk, so just guessing. Is there some state between "Disarmed" and "Armed"? I know my DSC panel goes Disarmed -> Exit Delay -> Armed. Also, if the parameters don't change synchronously (even a small delay) will mean that those things won't pass the IF test, and cause the other program to trigger? It seems like "Elk Output 'Output 065' must be getting set to "On" before the other two entries change. I'd try adding a small 'wait' to the start of each THEN. Just 5 seconds might do it. That will give the ISY time to get the variables in sync and things to settle.
ldrinc Posted September 9, 2016 Author Posted September 9, 2016 (edited) Thanks, I think that did the trick. ------------------------------ Security Disarm Notify 2 - [iD 0068][Parent 0069] If From Sunset To Sunrise (next day) And Elk Output 'Output 065' is On And Elk Area 'Area 1' 'Armed State' is Disarmed And ( Elk Area 'Area 1' 'Arm Up State' is Ready To Arm ) Then Wait 5 seconds Set Scene 'Lighting Scenes / All Lights Scene' On Set Elk Output 'Output 065' Off Send Notification to 'DL Only' content 'Security System Disarmed' Wait 5 minutes Set Scene 'Lighting Scenes / All Lights Scene' Off Else - No Actions - (To add one, press 'Action') Edited September 9, 2016 by ldrinc
Recommended Posts