jmpenza Posted June 5, 2013 Posted June 5, 2013 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.
LeeG Posted June 5, 2013 Posted June 5, 2013 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.
jmpenza Posted June 5, 2013 Author Posted June 5, 2013 Would you have any idea how I could start writing a program to allow me to do get it to self arm at a certain time with using the motion sensor?
jmpenza Posted June 5, 2013 Author Posted June 5, 2013 I just finished watching a tutorial on how to allow a motion sensor when tripped to turn on your lights. How come I can't get this to work with my system?
LeeG Posted June 5, 2013 Posted June 5, 2013 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.
apostolakisl Posted June 6, 2013 Posted June 6, 2013 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')
Recommended Posts