SteveKlos Posted March 1, 2013 Posted March 1, 2013 I'm new to programming the ISY-994i, but I've dealt with state based, event-driven programming a fair amount and thought I'd had this system worked out... However, it's not to be. One thing has eluded me - I've tried to search through the forums to no avail, perhaps I'm not using the right search terms. Basically, I have a variable called "Vacation". When this integer variable is set to 1, I want the programs that are in the Vacation Folder to execute. Seems rather straight-forward, so here's what I've done: - Folder created with the name Vacation - Conditional on Folder: if $Vacation is 1 then Allow the programs in this folder to run - I tested the various programs in the folder - they all execute properly and as expected when outside of the folder So the system is running, all the various programs for the lights in the house are working properly. I want to head out of the house for a few days... - I change the Vacation Variable (both the init, and value) to 1 and I apply these changes. - I check on the vacation folder in Programs, Summary, Looking at the folder Vacation, the Status is still False. - I highlight the vacation folder and save the program - thinking that maybe it only reads the variables when it's saved - no change Basically, I can't get the folder to recognize that there has been a change in the variable so that the programs inside the folder are added into the event loop. Anyone have any idea on why this may be happening? Am I using the conditional in the folder the wrong way? By the way, the reason I'm using folders is simply for organizational cleanliness. I have multiple states I want to use variables for - Christmas, Vacation, Party, etc. These programs are targeted to be running only during those times when the variable is set to a value. Variables can be set to a value either pragmatically, or via the UI. So far, I've only been setting the variables via the UI, but the next step will be do setup conditionals like, Christmas programming goes from Dec 1 - Jan 6th... Need to figure out what's going on with the variables before I add these new functions to the system... Any help is greatly appreciated! Cheers, SK
Brian H Posted March 1, 2013 Posted March 1, 2013 You may want to update your firmware to the latest official release. That way all the replies would be for the latest released firmware. viewtopic.php?f=25&t=10602
LeeG Posted March 1, 2013 Posted March 1, 2013 For sure move to 3.3.10 at a minimum. It sounds like the variable used in the folder condition is an Integer Variable. Integer Variables do not trigger Folders or Programs when the value changes. The Folder Variable has to be a State Variable when it is the only Folder condition. Also note that the Folder going True does not cause the Programs in the Folder to execute. It only allows the Conditions in the Program to trigger the Programs.
SteveKlos Posted March 1, 2013 Author Posted March 1, 2013 LeeG, Thanks for that - I didn't expect there to be a difference between an Integer and a State variable in the folders... You are correct, the variable is an integer. I will update my firmware and change the variable to a state variable, then will report back on the outcome. Many thanks!
Recommended Posts