palayman Posted February 12, 2019 Posted February 12, 2019 I have a number of lights that go on and off with random waits while I'm away from home. What happens to these if I have a power failure or I reboot the ISY during one of these? For example I have some out side lights that come on from sunset to 11PM. The else clause has a "wait 1 hour (random)" before they turn off. Will they just stay on after a power failure during the wait" Paul
paulbates Posted February 12, 2019 Posted February 12, 2019 There’s an option on the Configuration tab: - Catch up schedules at restart -check box - Missed schedule grace period in minutes and seconds. you can ask the ISY to travel back in time as far as the value that you set , at restart i’ve not used that. I try to make my programs as resilient as possible paul 1
Sub-Routine Posted February 12, 2019 Posted February 12, 2019 The lights should return to their previous state. If you have 'Configuration/System' the option 'Catch up Schedules at Restart' checked (the default) the ISY will run through your programs. The method isn't perfect, but it is pretty close for most things. Yes, the Wait will probably restart and it may be an hour before they dim to off. I use a Repeat Every 40 minutes, followed by a Wait Random 20 minutes, for the duration of the program schedule. 1
TrojanHorse Posted February 12, 2019 Posted February 12, 2019 Good advice above. Without knowing if your ISY is on a UPS and how that would impact your program (paste the code for additional thoughts if needed), I’d also suggest looking into setting the program to “run at startup”. Sent from my iPhone using Tapatalk
Hurting2Ride Posted February 13, 2019 Posted February 13, 2019 From the wiki: 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. -------- I've always been a bit afraid of the system rerunning a bunch programs all in a row - some previously run, some not - after an unexpected interruption. I'd like to think my programming or the ISY wouldn't do anything unexpected...but, that's why they call it unexpected. Personally I prefer to run a reboot check each time the system comes up, set a variable as an indicator & let programs decide if they should be (re)run. 1
Recommended Posts