jjwinston Posted November 16, 2012 Posted November 16, 2012 Hi, Just continuing to try and wrap my head around the programming. I have written some very simple programs that check tima and turn on or off my stair lights and my yard lights. The yard light program is working fine but the stair light program is not working. Looking in the program summary, the stair light program is "false" and has never run while the yard light program is "true" and runs at the scheduled time. I am sure I am missing some very basic lesson here. I appreciate the responses. Thanks!
LeeG Posted November 16, 2012 Posted November 16, 2012 Status reflects the last If section evaluation. A Program with True status means the last time the Program was triggered the If section evaluated to True causing the Then clause to execute. A Program with False status means the last time the Program was triggered the If section evaluated to False causing the Else clause to execute.
jjwinston Posted November 17, 2012 Author Posted November 17, 2012 Thanks Lee. Why would a program not be triggered if I am using "sunset" as the Run If? I am not by my ISY right now or I would copy out the program, but believe me it is the simpliest thing. Basically - If Sunset - Then set Switchlinc to On - Else Nothing. These are older Switchlincs (more than a year) and a brand new ISY99i.
LeeG Posted November 17, 2012 Posted November 17, 2012 Really need to see the Program. When at the ISY check for basic stuff like it is Enabled, there are no Saves pending for the Program. With a False status it suggests the Program did trigger but the If condition was evaluated as False which would cause the Else clause to run. Perhaps the previous iteration is generating a False If even thought the current (not saved) version should not be false.
oberkc Posted November 17, 2012 Posted November 17, 2012 Perhaps, also, that program is being called by another program, such as: if ... then run sunset program
jjwinston Posted November 18, 2012 Author Posted November 18, 2012 Hello, Here is the summary, program and scene that I am using in the stair_lights program. As you can see, it is very striped down.
LeeG Posted November 18, 2012 Posted November 18, 2012 The Scene image is actually the Program Summary but I don't think that is important at this point. The Program summary information is not explainable. The QueryAll Program which runs every night shows a last run date of 11/10 rather than the expected 11/17. The Stair_Way_On Program has a next run date of 11/18 but nothing reflects it running on 11/17. What does Help | About show for Firmware and UI?
jjwinston Posted November 18, 2012 Author Posted November 18, 2012 Firmware and UI are 3.2.6 Actually, before I made the screen shots I restored the two SwitchLincs - this is the first time they have had a scheduled run time - that column was always blank. Perhaps the restore has done the trick? I guess the proof of the pudding will be if it runs the "off" program in the morning. Here is the screen shot of the scene. Thanks again for the input.
jjwinston Posted November 18, 2012 Author Posted November 18, 2012 Well, I have learned many software programs in my line of work and I realize that newbies can create problems that will puzzle trainers. All of these problems were created by the condition that I had somehow slipped into the My Programs folder. The "From..To" restraint from the yardlights program was now an IF condition of the folder - thus completely screwing up the scheduling of other programs. Thanks for all the help. I guess this will be one more thing for a newbie to check!
LeeG Posted November 18, 2012 Posted November 18, 2012 Can't say I have ever seen Conditions being added to the My Programs Folder. I did look to see if there was a user defined Folder above the Program. Never thought to ask about the My Programs Folder. Thanks for posting back the resolution.
Recommended Posts