Jump to content

Command after wait never executes


mikewu99
Go to solution Solved by paulbates,

Recommended Posts

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.

 

  • Solution
Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...