Jump to content

Basic Question on Variables in ISY-994i, Firmware: 3.2.6


SteveKlos

Recommended Posts

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

Link to comment

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.

Link to comment

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!

Link to comment

Archived

This topic is now archived and is closed to further replies.


  • Recently Browsing

    • No registered users viewing this page.
  • Forum Statistics

    • Total Topics
      36.9k
    • Total Posts
      370.3k
×
×
  • Create New...