Jump to content

Programming Question (Wait condition before notification)


Scottmichaelj

Recommended Posts

I have two side gates with Outdoor Honeywell 5816OD Sensors on them. I want to receive a notification if the gates are left open for more than a minute (when unarmed) and need a bit of clarification how to do this. I was thinking I could do this easy as one program but I don't think it will work. Would this be best for a variable?

 

Like a program that sets the variable to 1 and 0 based on the zone violation from the ELK (1=Opened/Violated and 0=Closed/Normal) - then program 2 sees variable 1 and waits then checks to see what the variable is after the time frame needed and sends a notification if its not back to 0? How would I do this?

 

Thanks in advance for the help.

Link to comment

I have two side gates with Outdoor Honeywell 5816OD Sensors on them. I want to receive a notification if the gates are left open for more than a minute (when unarmed) and need a bit of clarification how to do this. I was thinking I could do this easy as one program but I don't think it will work. Would this be best for a variable?

 

Like a program that sets the variable to 1 and 0 based on the zone violation from the ELK (1=Opened/Violated and 0=Closed/Normal) - then program 2 sees variable 1 and waits then checks to see what the variable is after the time frame needed and sends a notification if its not back to 0? How would I do this?

 

Thanks in advance for the help.

This can be done with two programs and no variables but, as features are thought of, you may want to add more.

 

 

If

     control of gate1_contact is 'Off'

   AND

     control of gate1_contact is not 'On'

Then

    wait 1 minute

    send notification Gate1_is_open to You

Else

  --

 

If

     control of gate2_contact is 'Off'

   AND

     control of gate2_contact is not 'On'

Then

    wait 1 minute

    send notification Gate2_is_open to You

Else

  --

 

If you use "control" with both polarities of logic ('is Off' and 'is Not On') when the gate is opened the Then section will run and start timing  and then if the gate contact does not report 'Off' during the Wait 1 minute time, the notification will be sent.

 

IOW: if the Else ever runs then the Then section Wait is cancelled.

 

It would seem two programs would be needed otherwise both gates could be open and when one is closed it would cancel for both.

Link to comment

Thank you very much for the help, will try this out. So I would put "only if the Elk alarm is unarmed" as the first line in the IF section? I don't want a notification if this happens when the alarm is triggered, already get a notification for them.

Sorry, See my revised programs. I made a logical error in using one program.

 

You should be able to just add a status check for the Elk minding the parenthesis application. The change in Elk status should be able to run the Else clause but not the Then clause due to never encountering simultaneous signals.

 

Another possibility is to put the programs into a folder and put the Elk armed in the folder condition.

 

If

  (

     control of gate1_contact is 'Off'

   AND

     control of gate1_contact is not 'On'

   )

  AND

    status Elk is not armed

 

Then

    wait 1 minute

    send notification Gate1_is_open to You

Else

  --

Link to comment

Thinking about this more I would use something like this. (I don't like using folder conditions as they seem obscure and get missed causing baldness later)

 

Need one of these for each gate. (x2)

 

Program = Gate1_detect

If

     control of gate1_contact is 'Off'

   AND

     control of gate1_contact is not 'On'

 

Then

    wait 1 minute

    run (if) in program 'Notify me if unarmed'

 

Else

  --

 

Program = Gate2_detect

...as above....

 

 

Program = Notify_me_if_unarmed (disabled)

If

    Elk is unarmed

 

Then

   send notification to you.

 

Else

   --

Link to comment

So this did work: 

 

If

        (
             Elk Zone ‘Left Gate’ is Violated
         And Elk Zone ‘Left Gate’ is not Normal
        )
    And Elk Area ‘Home’ 'Armed State' is Disarmed
 
Then
        Wait  30 seconds
        Send Notification to 'Pushover' content 'Side Gate Open'
 
Else
   - No Actions - (To add one, press 'Action')
 
But I will revise to your new program and test. Is "folders" what the parenthesis are called? I need to look up how these are used in the wiki
Link to comment

 

....

 
But I will revise to your new program and test. Is "folders" what the parenthesis are called? I need to look up how these are used in the wiki

 

No. Folders are folders in the program tree that you can use to organise programs, by dragging and dropping programs into them. Look at the bottom of the Program Tab page in the Admin Console for the "New Folder" button.

Folder can also have conditions to enable/disable all programs inside them.

 

Parenthesise are used, to visually group logic lines, and to force execution of the logic in a certain order.  Normally AND has a higher precedence than OR similar to the BEDMAS order of operations rules in arithmetic.

 

http://en.wikipedia.org/wiki/Order_of_operations#Programming_languages

Link to comment

No. Folders are folders in the program tree that you can use to organise programs, by dragging and dropping programs into them. Look at the bottom of the Program Tab page in the Admin Console for the "New Folder" button.

Folder can also have conditions to enable/disable all programs inside them.

 

Parenthesise are used, to visually group logic lines, and to force execution of the logic in a certain order.  Normally AND has a higher precedence than OR similar to the BEDMAS order of operations rules in arithmetic.

 

http://en.wikipedia.org/wiki/Order_of_operations#Programming_languages

 

 

Got it. I use folders now but didn't know about the parenthesis. As for the notification why take it out of the then section and separate it?

Link to comment

Got it. I use folders now but didn't know about the parenthesis. As for the notification why take it out of the then section and separate it?

Did you want two distinct notifications? One keeps things (one unified message and more modular) under control and later more conditions can be added to only one program.

 

If

   Elk is unarmed

OR

  We haven't been home for a week and forgot to arm = true

OR

  We are in the basement and can't hear the gates

OR

  It's the middle of the night

 

Then

  ....

 

Your Elk may be handling much of this already.

Link to comment

Did you want two distinct notifications? One keeps things (one unified message and more modular) under control and later more conditions can be added to only one program.

 

If

   Elk is unarmed

OR

  We haven't been home for a week and forgot to arm = true

OR

  We are in the basement and can't hear the gates

OR

  It's the middle of the night

 

Then

  ....

 

Your Elk may be handling much of this already.

 

 

Thanks for your help. This was the end result for me if anyone cares.

 

My program:

 

If
        Elk Zone 'Left Side Gate' is Violated
    And Elk Zone 'Left Side Gate' is not Normal
    And Elk Area 'HOME' 'Armed State' is Disarmed
 
Then
        Set Elk Speak Word 'Left'
        Set Elk Speak Word 'Side'
        Set Elk Speak Word 'Gate'
        Set Elk Speak Word 'Open'
        Wait  30 seconds
        Send Notification to 'Pushover' content 'Side Gate Notification'
 
Else
   - No Actions - (To add one, press 'Action')
 
 
My "Side Gate Notification" (Pushover) is set as: URGENT! ${elk.zone.#.name} OPEN ${alert.date} at ${alert.time} 
 
I have an Elk speaker so as soon as the gate is opened it tells me "Left side gate open". Then if the gate is not shut in the 30 seconds then I get a Pushover notification. Works perfect and exactly what I wanted, thanks larryllix!
Link to comment

Is the Honeywell 5816OD Sensor a Z-Wave device? If so, then can I add it to the ISY as a stand-alone device for use in a program? I do have the Z-Wave Module.

Link to comment

Is the Honeywell 5816OD Sensor a Z-Wave device? If so, then can I add it to the ISY as a stand-alone device for use in a program? I do have the Z-Wave Module.

No its a wireless alarm sensor that can work with Elk alarm systems via the ISY Elk add-on. However you do need an ELK-M1XRF2H for your Elk alarm. You can then use any of the Honeywell/Ademco 5800 series wireless products with it. For example I have a Honeywell wireless 5809 heat detector in my garage. Now my side gates are fully secured.

 

I am hooked into the UDI "ecosystem" and if I cant get something to work with the ISY I usually don't get it!

 

http://www.security.honeywell.com/hsc/products/intruder-detection-systems/wireless/door-window-sensor/314990.html

 

http://www.elkproducts.com/product-catalog/elk-m1xrf2h-m1-wireless-receiver-for-honeywell-transmitters

Link to comment

No its a wireless alarm sensor that can work with Elk alarm systems via the ISY Elk add-on. However you do need an ELK-M1XRF2H for your Elk alarm. You can then use any of the Honeywell/Ademco 5800 series wireless products with it. For example I have a Honeywell wireless 5809 heat detector in my garage. Now my side gates are fully secured.

 

Back to Plan B (for me) which includes a relay and I/O Linc. Just seeking an easier solution. Thanks much for your reply B)

Link to comment

Archived

This topic is now archived and is closed to further replies.


  • Recently Browsing

    • No registered users viewing this page.
  • Who's Online (See full list)

    • There are no registered users currently online
  • Forum Statistics

    • Total Topics
      36.9k
    • Total Posts
      370.2k
×
×
  • Create New...