slpelts Posted February 8, 2015 Posted February 8, 2015 I have a Program that I want to run that fires when the controller button is pressed. I don't want it to trigger while it is running. I created state variable $ThermWarmUp and set it first line in the THEN block. however the program then exits. any suggestions on how to address this? thanks If Control 'MBDR Controller (5)' is switched On And $SeasonWinter is 1 And $ThermWarmUp is 0 Then Send Notification to 'SteveEMail' Set 'ThermD' 69° (Heat Setpoint) Wait 2 hours Set 'ThermD' 65° (Heat Setpoint) Send Notification to 'SteveEMail' $ThermWarmUp = 0 Else - No Actions - (To add one, press 'Action')
jwagner010 Posted February 8, 2015 Posted February 8, 2015 The wait causes the if to be reassessed. You need to break your program into 2. First sets variable to 1 then calls the then of the second program.
Recommended Posts