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 not working???

Featured Replies

Posted

I created a very basic program and to me it looks like I have an issue with WAIT command.

After some testing and simplifying my program (to find the culprit) I concluded that WAIT command does not work as I expected.

If
        '1 Entry motion' Status is On
 
Then
        Set '1 entry hall' On
        Wait  10 minutes
        Set '1 entry hall' Off
 
Else
   - No Actions - (To add one, press 'Action')
 

So... I notice that this program would work only if WAIT time is less than 30 seconds (??) Any clue why? 

 

Thanks in advance!

 

 

 

24 minutes ago, MarkDFW said:

I created a very basic program and to me it looks like I have an issue with WAIT command.

After some testing and simplifying my program (to find the culprit) I concluded that WAIT command does not work as I expected.

If
        '1 Entry motion' Status is On
 
Then
        Set '1 entry hall' On
        Wait  10 minutes
        Set '1 entry hall' Off
 
Else
   - No Actions - (To add one, press 'Action')
 

So... I notice that this program would work only if WAIT time is less than 30 seconds (??) Any clue why? 

 

Thanks in advance!

 

 

 

Try using Control rather than status in the "If " statement of your program and set your motion sensor so it sends only "On" signals.

As stated, use control. By using status, the sensor must be "on" for in order to trigger the wait.

It works at 30 seconds because it's probably within the timeout period before the sensor changes to off

The key phrase from the Wiki is "The program's conditions are reevaluated each time a Wait statement is encountered"

IOW, when the Wait time concludes, the If clause is re-tested;  if it is now false, execution of the Then statements is aborted and any Else statements are executed.

4 hours ago, KeviNH said:

The key phrase from the Wiki is "The program's conditions are reevaluated each time a Wait statement is encountered"

IOW, when the Wait time concludes, the If clause is re-tested;  if it is now false, execution of the Then statements is aborted and any Else statements are executed.

The phrase is incorrect and should have read. "The program's conditions can be reevaluated each time a Wait statement is encountered"

Unless some trigger is involved, nothing is re-evaluated anywhere. ISY is a trigger based engine from end to end.

  • Author

THANK you for your help. I understand the issue now :) 

3 hours ago, larryllix said:

The phrase is incorrect and should have read. "The program's conditions can be reevaluated each time a Wait statement is encountered"

Unless some trigger is involved, nothing is re-evaluated anywhere. ISY is a trigger based engine from end to end.

I tried testing with an Integer variable, and it worked as you said -- conditions were not re-evaluated after a wait.

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.