Jump to content

Program doesnt fails to issue commands after wait


killervette

Recommended Posts

Posted

My program summary says last run time and last finish time are the same.

 

 

If

Elk Area 'House' 'Alarm State' is Entrance Delay Active

And From Sunset

To Sunrise (next day)

 

Then

Set 'Lights / Study:Study Light' On

Set 'Lights / Living Room:Living Room Light' 35%

Wait 5 minutes

Set 'Lights / Study:Study Light' Off

Set 'Lights / Outside:Outside Garage Lights' Off

Set 'Lights / Porch Light Keypad' Off

 

Else

- No Actions - (To add one, press 'Action')

Posted

killervette

 

When statements after a Wait do not execute it means the If condition has changed before the Wait expires with the resulting reevaluation to False so the Else clause runs. Check the Status column which will likely indicate False for that last run condition.

 

Have this Program Run another Program which contains all the current Then statements and nothing in the If clause. The second Program will not reevaluate so the statements after the Wait will execute.

 

Lee

Posted
killervette

 

When statements after a Wait do not execute it means the If condition has changed before the Wait expires with the resulting reevaluation to False so the Else clause runs. Check the Status column which will likely indicate False for that last run condition.

 

Have this Program Run another Program which contains all the current Then statements and nothing in the If clause. The second Program will not reevaluate so the statements after the Wait will execute.

 

Lee

 

Ok. I see now. That seems odd to me. I figured once the condition exists, it would execute through the entire then. I changed it to multiple programs. I will try it out tomorrow

Posted

killervette

 

For those of us who came from a programming background it is a little strange but there are uses for such behavior in an event driven environment. State variables, Insteon Status work the same way. The reevaluation applies to the Repeat function as well as the Wait function. The Wiki has a good explanation of how all these things interact.

 

Lee

Posted
killervette

 

For those of us who came from a programming background it is a little strange but there are uses for such behavior in an event driven environment. State variables, Insteon Status work the same way. The reevaluation applies to the Repeat function as well as the Wait function. The Wiki has a good explanation of how all these things interact.

 

Lee

 

I will browse through the wiki. I have a lot of ideas on how I want things to function, and would rather have to do it only once. :)

Guest
This topic is now closed to further replies.

×
×
  • Create New...