NewTech Posted February 25, 2009 Posted February 25, 2009 I am very new to ISY and I am having much trouble getting two programs to function correctly. I'm not even sure I understand enough about the issue to describe it correctly but I'll tell you what I to do. I want the lights in our back yard to come on only during the summer months when we are outside more. In the winter months I do not want these lights to come on at all. I can set up a program to begin running on April 1 and end on November 1 and in the Program Summary tab it says next scheduled run time will be on 2009/04/01 which is fine. My problem appears when I tell the program to run at 15 minutes after sunset. When I do that, the Program Summary tab says the next scheduled run time is whatever the current date is. What am I missing here?
MikeB Posted February 25, 2009 Posted February 25, 2009 Sounds like are trying to combine what should be two separate conditionals. Try this instead: If From 12:00:00AM on 2009/04/01 To 11:59:59PM on 2009/10/31 And Time is Sunset + 15 minutes
NewTech Posted February 26, 2009 Author Posted February 26, 2009 Sounds like are trying to combine what should be two separate conditionals. Try this instead: If From 12:00:00AM on 2009/04/01 To 11:59:59PM on 2009/10/31 And Time is Sunset + 15 minutes Okay, I tried this script but it still says in the Program Summary that the NEXT run time will be at TONIGHT at 15 minutes before sunset. I tried something else which seems to work... I created a winter and summer folder. I placed my summer programs in the summer folder then created an "If" that only allows the programs in this folder to run from April 1, 2009 to October 31, 2009. With this creation the next scheduled run time for my summer folder is April 1, 2009. In the actual program I created an "If" that reads: Time is Sunset + 15 minutes. Can you tell from this information if the summer program will begin running on April 1, 2009? I can tell you that last night the backyard lights did NOT turn on so I'm thinking this latest idea may be working. I created the same type of script for the winter folder and all programs in the winter folder ran last night without issue! Thanks for your assistance with this. As I said I'm new to the ISY and I'm sure I'll get it down real soon. I wanted a program that was as close to my very old Plato Houselink and SmartHome suggested the ISY!
Sub-Routine Posted February 26, 2009 Posted February 26, 2009 Sounds like are trying to combine what should be two separate conditionals. Try this instead: If From 12:00:00AM on 2009/04/01 To 11:59:59PM on 2009/10/31 And Time is Sunset + 15 minutes Okay, I tried this script but it still says in the Program Summary that the NEXT run time will be at TONIGHT at 15 minutes before sunset. Yes, the program will run every night but it will be evaluated as True or False depending on the Date condition. I tried something else which seems to work... I created a winter and summer folder. I placed my summer programs in the summer folder then created an "If" that only allows the programs in this folder to run from April 1, 2009 to October 31, 2009. With this creation the next scheduled run time for my summer folder is April 1, 2009. In the actual program I created an "If" that reads: Time is Sunset + 15 minutes. Can you tell from this information if the summer program will begin running on April 1, 2009? I can tell you that last night the backyard lights did NOT turn on so I'm thinking this latest idea may be working. I created the same type of script for the winter folder and all programs in the winter folder ran last night without issue! Thanks for your assistance with this. As I said I'm new to the ISY and I'm sure I'll get it down real soon. I wanted a program that was as close to my very old Plato Houselink and SmartHome suggested the ISY! Using Folders is the best solution and allows you to nest multiple conditions as well as to group programs sharing the same conditions. It sounds like you are doing great! Let us know when you have more questions. Plato, that must be 10 years old! Rand
NewTech Posted February 26, 2009 Author Posted February 26, 2009 Sounds like are trying to combine what should be two separate conditionals. Try this instead: If From 12:00:00AM on 2009/04/01 To 11:59:59PM on 2009/10/31 And Time is Sunset + 15 minutes Okay, I tried this script but it still says in the Program Summary that the NEXT run time will be at TONIGHT at 15 minutes before sunset. Yes, the program will run every night but it will be evaluated as True or False depending on the Date condition. Plato, that must be 10 years old! Rand Rand... Plato is older than that! It's been in almost flawless service for close to 18 years! I'd still be using it if it were Insteon ready! Above you said the program will "run" every night but will be evaulated as true or false. Can you elaborate on what the difference between true and false is? And, are you saying the program will PHYSICALLY run (turn on the lights) or does it just SHOW it will run in which case will the status be false??? Since I seem to better understand the folders I'll probably just continue to use them but I do want to understand the True and False evaluations! Thanks so much for your time in helping a newbie like myself. Maybe some day I'll be able to answer some of the questions posted here!!!
Sub-Routine Posted February 26, 2009 Posted February 26, 2009 Rand... Plato is older than that! It's been in almost flawless service for close to 18 years! I'd still be using it if it were Insteon ready! Wow! Time flies Above you said the program will "run" every night but will be evaulated as true or false. Can you elaborate on what the difference between true and false is? And, are you saying the program will PHYSICALLY run (turn on the lights) or does it just SHOW it will run in which case will the status be false??? Since I seem to better understand the folders I'll probably just continue to use them but I do want to understand the True and False evaluations! Yes, continue to use the folders. They will help you keep your programs organized even if they have no conditions. True/False Programs run whenever any of their Conditions change. When all the conditions are met the program is considered True and the Then Actions are performed. If any of the Conditions are not met the program is considered False and any Actions in the Else routine are executed. In Mike's example the program will run every Sunset +15 minutes but it will be False if the Schedule Condition is not met. If there were any Actions in the Else section they would be executed. An interesting implementation in the ISY is the ability for programs to reference other programs for their statuses. So programs can be used as a Boolean variables, True/False. Programs can be written with no Actions and be set as True/False by other programs using the Run (If), Run Then, or Run Else. Thanks so much for your time in helping a newbie like myself. Maybe some day I'll be able to answer some of the questions posted here!!! No problem, I'm glad to help. I'm sure others are reading this thread. I'm sure you will catch on quickly Rand
Recommended Posts