killervette Posted December 6, 2011 Share Posted December 6, 2011 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') Link to comment
LeeG Posted December 6, 2011 Share Posted December 6, 2011 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 Link to comment
TJF1960 Posted December 6, 2011 Share Posted December 6, 2011 Is it possible the program evaluated false which would also give the same run time as finish time? Link to comment
killervette Posted December 7, 2011 Author Share Posted December 7, 2011 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 Link to comment
LeeG Posted December 7, 2011 Share Posted December 7, 2011 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 Link to comment
killervette Posted December 7, 2011 Author Share Posted December 7, 2011 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. Link to comment
Recommended Posts