JTsao Posted June 4, 2016 Posted June 4, 2016 This has probably been asked before; Can I have two or more different programs waiting for a motion detector to switch on? In other words, will both of them be able to execute properly? For example: Program 1: If Control 'StudyMD-Sensor' is switched on Then $studyMdOnCount += 1 Program 2: If Control 'StudyMd-Sensor' is switched on And Status 'Study Lt Switch' is Off Then Set Scene 'Study' On So in the cases above I want to make 100% sure that the variable would increment in program 1 AND that the lights would turn on every time if they were off in the study (Program 2). There is a specific reason that I don't want to get into why I would have two or more programs monitoring the motion detector. I just want to make sure that both programs get scheduled to run AND that they will both see the switched on condition. I don't want one running 1st, clearing the condition, then the 2nd not working. Also, in general, can this be done with any kind of sensor or switch? Thanks in advance for your help
LeeG Posted June 4, 2016 Posted June 4, 2016 (edited) Both Programs will execute. However, the order in which they run is not controllable. If the order of execution is important have Program X invoke Program Y rather than both being triggered by Motion Sensor Multiple Programs can be triggered by any Sensor or Switch using "If Control" The If condition is not lost because a Program has been triggered. Edited June 4, 2016 by LeeG
larryllix Posted June 4, 2016 Posted June 4, 2016 I use MS signals for 3-4 programs each in some cases. Never a problem. Just make sure that you aren't attempting to respond with Insteon signals at the same time or you may experience some delay as Insteon can bog don fairly fast. For my MS programs, the turn light on ones get priority and the ones that record movement, and count, or keep track of Home/Away etc.. get entrance delay timers so no interference is caused. Where timing isn't critical I use something like this. If MS is switch On Then Wait 2 seconds $sMS.count += 1 Else --
Recommended Posts