elite-rob Posted Tuesday at 10:45 PM Posted Tuesday at 10:45 PM Hello Everyone, I have a program (under "My Programs") named "House Sleep". This program turns off all the lights in my home when I click a button on my keypad. This works perfectly. I created a copy of this program named "House Sleep 2am" that is supposed to run automatically at 2am and turn off all the house lights. I have the IF condition set as: Time is 2:00:00AM. In the admin console, the little icon beside "House Sleep" is green and the icon beside "House Sleep 2am" is red. It's just a small line on the left side of the icon. As far as I can tell, both programs are enabled. The "House Sleep 2am" doesn't seem to be running as my lights are still on in the morning. I assume this red indicator is trying to tell me there's a problem, but I'm not sure what. Can someone please help me understand what the red icon means and how I can resolve it? Or possibly how I can check the logs to see if/when this program is running as that may provide a clue. Many thanks in advance! Quote
Guy Lavoie Posted Tuesday at 11:09 PM Posted Tuesday at 11:09 PM Red would indicate that it's running the ELSE code in the program. You should post the whole program (right click, copy to clipboard). Could be some kind of logic condition causing it. 1 Quote
Techman Posted Wednesday at 01:44 AM Posted Wednesday at 01:44 AM @elite-rob You either have to put all the lights in a scene and have the "THEN" clause turn off the scene or, list each light in the THEN clause of your 2:00 am program A green bar to the left of the program would indicate that the "IF" clause was true and that "THEN" cause ran. A red line indicates that the "IF" clause was false and the "ELSE" clause ran. To test your program, right click on the program and run the "THEN" clause, do your lights turn off? Note: your "IF" clause will only be true exactly at 2:00 am 1 Quote
Geddy Posted Wednesday at 05:38 PM Posted Wednesday at 05:38 PM @elite-rob The wiki outlines the color meanings: https://wiki.universal-devices.com/index.php?title=ISY_Programs:Icon_Colors As @Guy Lavoie suggests it would be helpful to post the program (posting as text so it can be easier to edit/highlight what might need to change). Right click on the program and select the last item of "COPY to Clipboard". Then paste as text in your reply. It might also be helpful to post an (small) image of the icon you're seeing so we can help you confirm what might have happened. The red on the program isn't saying there's an error. Reference the wiki for color description and meaning. Lastly, you can review the Summary tab of the programs to see when the program last ran (evaluated). Rather than running exactly on the hour I might suggest you run it a few seconds or a minute past the hour. My assumption would be that the program that works uses "controlled" (showing in the IF as "switched") meaning a physical pressing of a switch. If you made a copy of that and said to run at 2am it might be looking for 2am if that device is switched and unless you wake up and turn off that switch exactly at 2am it won't be true. Thus, the red. Either remove the reference to the switch or change it to "Status" (Off?). What's your ultimate goal of the copy of a working program? 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.