Jump to content

Multiple Programs Waiting on Motion Detector


JTsao

Recommended Posts

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

 

Link to comment

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.

Link to comment

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

   --

Link to comment

Archived

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


×
×
  • Create New...