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.

"WAIT" command question.

Featured Replies

Posted

I need help understanding the "WAIT" command.

 

IF 
KPL button G is OFF
And KPL button G is turned ON

THEN
WAIT 2 seconds
SET Scene "for goodnight KPL button control" OFF.

 

This program executes correctly ONLY when the WAIT command is removed.

 

Does this mean that if the condition (IF) changed during the wait time, the program will not execute the next command in THEN :?:

 

If so, how do I create a timer that does not worry about the IF state once the condition was met :?:

The Program triggers initially because the KPL button is Off. When the Status of the KPL becomes On the If condition has changed causing the If to be reevaluated because of the Wait.

 

Separate the If and Then clauses in different Programs. That way the change in the If conditions during the Wait do not affect the Program containing the Then clause.

Does this mean that if the condition (IF) changed during the wait time, the program will not execute the next command in THEN

The quick and simple answer is yes. This is also true with "repeat" commands.

 

LeeG offered the standard solution for this "problem".

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.