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.

Command after wait never executes

Featured Replies

Posted

Been a while since I've posted, or even touched my ISY - it's just been working. Today I tried a simple program:

 

Reset Waterfall - [ID 0014][Parent 0001]

If
        Time is  2:00:00AM
    And 'Outside / Pool Waterfall' Status is On
 
Then
        Set 'Outside / Pool Waterfall 3way' Off
        Wait  10 seconds
        Set 'Outside / Pool Waterfall 3way' On
 
Else
   - No Actions - (To add one, press 'Action')
 

What I am trying to do is every day at 2:00AM I want to check to see if a KPL button is lit. If it is I want to turn off a scene (which will turn off the KPL button) for ten seconds, then turn it back on (which should turn the button back on). What happens is that the scene gets turned off but never turns back on.

This happens if I execute a "Run Then". It also happens at 2:00AM (apparently, since the scene is off when I check it in the morning).

If I remove the wait command and "Run Then" I see the KPL button turn off then back on again.

 

Solved by paulbates

Go to solution
  • Solution

If the conditions of the program changes to false, the program will stop executing in its tracks during the Wait.

Since you turn off pool/waterfall, that kills the program in the first then statement

What you need to do is have 2 programs:

Reset Waterfall -

If
     Time is 2:00:00AM
     And 'Outside / Pool Waterfall' Status is On

Then
    Run Program Reset Waterfall 2 Then

 

Reset Waterfall 2

If
   (No condition)

Then
    Set 'Outside / Pool Waterfall 3way' Off
    Wait 10 seconds
    Set 'Outside / Pool Waterfall 3way' On

  • Author

Thanks, I figured it would be something like that. I keep forgetting that ISY programs are really state machines and not sequential programs.

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.