Jump to content

Writing programs with Elk plug in


jmpenza

Recommended Posts

I am having some issues writing programs with ELK on the ISY994i. I am trying to make a countdown timer using one of my motion detectors so I would be able to automatically arm my system at night if no one has been walking in that zone. The issues I am having is the program won't start when in the "If" section I write If motion detector is normal. Also when I write a program stating when a variable is greater than a certain number it won't start either when its supposed to. Can anybody help me with this, thanks.

Link to comment

In general the state/status of something has to change for it to trigger a Program. The evaluation of the IF statement, whether True or False determines which clause, Then or Else, actually runs. A static condition does not trigger a Program.

 

A change of a variable value will trigger a Program only when using a State Variable. A change in value of an Integer variable does not trigger a Program. That is the functional difference between a State and Integer variable.

Link to comment

A Motion based event is simple as when the Motion is sensed an action is taken.

 

From the initial post it sounds like you want to do something when the Motion On has not been sensed for some period of time. That is not a motion based event.

Link to comment

This program '15 minute timer' get the ball rolling. At 8pm it will start trying to arm after 15 minute wait

 

If
       Time is  8:00:00PM

Then
       Enable program 'motion detector'
       Wait  15 minutes 
       Set Elk Area 'Main House' Arm Night

Else
  - No Actions - (To add one, press 'Action')

 

This program 'motion detector' will look for the motion detector to activate. If it does, it will start the 15 minutes over again.

 


If
       Control 'motion detector' is switched On

Then
       Run Program '15 minute timer' (Then Path)

Else
  - No Actions - (To add one, press 'Action')

 

This program will cause the auto arm program to stop, in my example by disarming your system. You could have something else do it.

 


If
       Elk Area 'Main House' 'Armed State' is Disarmed

Then
       Stop program '15 minute timer'
       Disable program 'motion detector'

Else
  - No Actions - (To add one, press 'Action')

Link to comment
Guest
This topic is now closed to further replies.

  • Recently Browsing

    • No registered users viewing this page.
  • Forum Statistics

    • Total Topics
      37k
    • Total Posts
      370.8k
×
×
  • Create New...