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.

Question About Wait and If Conditions Changing

Featured Replies

Posted

I did a little looking around and couldn't find the answer to this simple question.

 

If I have a program that has a couple conditions, and a THEN statement that starts with a wait period before executing some other command...

 

If the conditions become true, and the wait starts, then the conditions change to false, does the THEN statement stop running? 

 

 

IF

 condition 1

AND condition 2

 

THEN

 wait 5 minutes

 turn on device

 

ELSE

 

 

Yes, if the Wait has not completed.  The If Condition can be True or False, if the Wait (or Repeat) has not completed the Wait (or Repeat) is terminated and the clause (Then or Else based on If evaluation) restarted.

And if you don't want that behavior, just split it into two programs:

 

Program1

IF

condition 1

AND condition 2

 

THEN

Program2 RunThen

 

 

Program2 (disabled!)

IF

THEN

wait 5 minutes

turn on device

  • Author

I'm doing some things with motion sensors and want to be sure they don't turn off lights after certain conditions are no longer met. Just wanted to verify the THEN (or ELSE) statement will stop running if the conditions are no longer met for a program (or are met for an ELSE statement).

 

Thanks for the responses, guys! 

The Motion Sensor does not have separate On/Off nodes.  The Motion Sensor would be set to Sensing mode: checked and On Only mode.  That way the Sensor node can turn a Scene On for quick responder reaction and use a Program(s) to turn the responder Off. 

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.