nowandthen Posted June 7, 2012 Posted June 7, 2012 Reading the user manual, it sounds like checking this option will make the ISY run the checked programs upon a restart. So if the power goes out, then comes back on, the ISY will run any checked program, and in effect test the If statements, what should have been turned on will be turned on, what should have turned off will turn off, etc. Am I understanding that correctly?
LeeG Posted June 9, 2012 Posted June 9, 2012 Yes, the Program is triggered after the ISY boots up. What it does when triggered is entirely up to how it is written. Not trying to be vague here, just nothing about Run At Startup that is absolutely related to turning devices On or Off.
nowandthen Posted June 9, 2012 Author Posted June 9, 2012 Ok so I have a program that says turn porch light on at sunset. Say the power goes out 30 minutes before sunset. Then 30 minutes after sunset the power comes on. If my program says turn porch light on at sunset and I have Run at Startup enabled, then the Isy when power is restored will test that program and turn the porch light on because the IF is true. Correct?
LeeG Posted June 9, 2012 Posted June 9, 2012 Sorry, don't know that specific answer. Code it up and see what happens.
LeeG Posted June 9, 2012 Posted June 9, 2012 I have a test set up for the specific question. Will post result tonight after Sunset.
RichTJ99 Posted June 9, 2012 Posted June 9, 2012 I am sure the WAF factor at your house is going to be low when you cut the power to the house for a half hour before sunset. Good luck Lee!
nowandthen Posted June 9, 2012 Author Posted June 9, 2012 I am sure the WAF factor at your house is going to be low when you cut the power to the house for a half hour before sunset. Good luck Lee! Once again Lee falling on his sword for the rest of the ISY community. What a guy! I think I can just unplug my ISY and PLM just before Sunset, plug it back in some time after sunset and see if evening lights catch up. Going to my friends this evening so I can't test tonight, but will try tomorrow night (Sunday) and report back as well.
LeeG Posted June 10, 2012 Posted June 10, 2012 Program was triggered after reboot. The Else clause ran ( it was not Sunset so If was False) so the action in the Then clause to turn On the Insteon device did not execute.
LeeG Posted June 10, 2012 Posted June 10, 2012 This is the test Program that has Run at Startup which did not turn On the ICON device. If Time is Sunset Then Set 'ICON Relay 2' On Else - No Actions - (To add one, press 'Action') What is needed is a Program specifically written to "fix" things. This Program has Run at Startup and is Disabled so it cannot be triggered by device activity. I chose the To time as Sunrise the next day. It could be anything that defines the desired range, If Status 'ICON Relay 2' is Off And From Sunset To Sunrise (next day) Then Set 'ICON Relay 2' On Else - No Actions - (To add one, press 'Action')
nowandthen Posted June 10, 2012 Author Posted June 10, 2012 I would never have figured that out. Thanks Lee!
ISYhbsh01 Posted June 11, 2012 Posted June 11, 2012 Isn't this what the "Catch up schedules at restart"Â and the "Missed Schedule Grace Period" settings are all about?
bsobel Posted June 11, 2012 Posted June 11, 2012 Lee would it be possible to add a 'Startup' as a schedule option in programs? This way the two programs cab be collapsed into one: If Sunset or ( Startup and (Sunset to Sunrise) ) then Actions....
LeeG Posted June 11, 2012 Posted June 11, 2012 hbsh01 Yes. For those not familiar the UDI Wiki covers both. bsobel Very logical. Don't know if it is practical without knowing the internal of the ISY.
nowandthen Posted June 20, 2012 Author Posted June 20, 2012 I'm hoping UDI will chime in. I understand Lee's program but it seems that most users would not figure that out (I didn't without Lee's help). I wonder if UDI would modify the Run At Startup to do just that, run any program that is checked as Run At Startup. If power goes out and a program or programs have Run At Startup checked, then upon restart, those programs test the IF statement in such a way that if it should be on then turn it on. Seems to me to be an easy way for most non-sophisticated users to catch-up after a power outage without coming here for help. More intuitive = more happy users.
Michel Kohanim Posted June 21, 2012 Posted June 21, 2012 First of all, thanks so very much LeeG! nowandthen, run at startup does precisely what you wrote in your last post and LeeG helped verify. Would you be kind enough to let me know in what respect you would like us to chime in? hbsh01, Catch up schedules/grace period applies ONLY to programs that are time based. With kind regards, Michel
nowandthen Posted June 22, 2012 Author Posted June 22, 2012 First of all, thanks so very much LeeG! nowandthen, run at startup does precisely what you wrote in your last post and LeeG helped verify. Would you be kind enough to let me know in what respect you would like us to chime in? hbsh01, Catch up schedules/grace period applies ONLY to programs that are time based. With kind regards, Michel Hi Michel, I guess I find it unusual that you have to check the status of the device, as shown in Lee's program. Perhaps checking the status is not necessary? His program that worked also had a from/to unlike his first program that didn't work. My front porch is basically as Lee's working program is written except I don't check status in the IF section. It's a From/To program. I'll unplug my ISY and see if my from/to program will catch up on start up.
nowandthen Posted June 22, 2012 Author Posted June 22, 2012 I unplugged my PLM and ISY just before sunset. I have a number of programs that run from sunset to sunrise (next day) or from sunset + 5-10 minutes to sunrise (next day). They do not have the status line in the If section like Lee's program, just a From/To. I waited until about 20 minutes after sunset then plugged the PLM and ISY back in, hurray! the lights caught up! That's all I was looking for, a simple, ISY for dummies switch. I suppose if the power goes out at 2 AM then comes on at 3 AM, the lights won't catch up as it is already next day (If from sunset to sunrise (next day)). But nothing is really critical and if they don't turn on for the rest of the night then so be it. Off to figure where this "Missed Schedule Grace Period" setting is located, and try to understand what that means...
Xathros Posted June 22, 2012 Posted June 22, 2012 Off to figure where this "Missed Schedule Grace Period" setting is located, and try to understand what that means... I do believe that this is the amount of time the ISY will look back into the past on power up to find items that need to be "Caught Up" to current. Without this, how would the ISY know where to begin catching up the schedules ? -Xathros EDIT: Here is what the Wiki has to say: Catch up schedules at Restart - When this box is checked (default) the ISY will attempt to run all programs that are time dependent beginning at midnight until the present time. Missed Schedule Grace Period - If Catch up schedules at restart is not checked or if a program is not run because the ISY is busy this will check for programs that were scheduled to run from the period specified until the present time. Default is 15 minutes.
Recommended Posts