Jump to content
View in the app

A better way to browse. Learn more.

Universal Devices Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Multiple Programs Waiting on Motion Detector

Featured Replies

Posted

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

 

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 by LeeG

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

   --

Guest
This topic is now closed to further replies.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.