mikewu99 Posted yesterday at 01:08 AM Posted yesterday at 01:08 AM 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. Quote
Solution paulbates Posted yesterday at 01:36 AM Solution Posted yesterday at 01:36 AM 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 Quote
mikewu99 Posted yesterday at 02:13 AM Author Posted yesterday at 02:13 AM Thanks, I figured it would be something like that. I keep forgetting that ISY programs are really state machines and not sequential programs. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.