mitch236 Posted June 5, 2010 Posted June 5, 2010 I have integrated my DSC alarm system with my ISY thanks to io_guy! Now I would like to build folders that run based on the condition of the alarm. In other words, when the alarm is disarmed, one folder would run its contents. If the alarm is armed, a different folder would run. The problem is, I can't figure out which If statement to use. Once the program, Alarm off is run, it becomes true. But if Alarm On is run, alarm Off remains true. Any ideas?
Sub-Routine Posted June 5, 2010 Posted June 5, 2010 Hi Mitch, I think (depending on your programs) what you need is a line in your Alarm On program that sets the Alarm Off program False. Run Program 'Alarm Off' (Else Path) And the same with the Alarm Off program: Run Program 'Alarm On' (Else Path)
TJF1960 Posted June 5, 2010 Posted June 5, 2010 I have integrated my DSC alarm system with my ISY thanks to io_guy! Now I would like to build folders that run based on the condition of the alarm. In other words, when the alarm is disarmed, one folder would run its contents. If the alarm is armed, a different folder would run. The problem is, I can't figure out which If statement to use. Once the program, Alarm off is run, it becomes true. But if Alarm On is run, alarm Off remains true. Any ideas? Hi Mitch, I verified on my system that the programs created for the “Armed (Away)†and “Armed (Stay)†and “Disarmed†do change state when the system arms and disarms. Presently I use the "Armed (Away)" program as the status for other programs and folders. You could also use the "Armed (Stay)" program as well. In the conditions of programs (or folders) I want to run when "Away" I add "If Program Armed (Away) is true," same with the folders. At the same time If I have programs or folders I want to run when the system is disarmed I add "If Program Away is False" to their conditions. Hope that is what you were looking for. Tim
mitch236 Posted June 6, 2010 Author Posted June 6, 2010 Got it, thanks. I was using my command "arm away" instead of the DSC status "armed away". All working now!
Recommended Posts