Jump to content

conditional folder question


baabm

Recommended Posts

I have an "away from home" folder where I keep programs that will make the house look lived in. It's condition is a state variable called "away" which is set to 1 when away by the push of a KPL switch. I have a program in this folder that turns on a lamp and then waits about 2 hours and then turns it off. If I come home while the program is in the wait state and push the KPL button, turning the away variable back to a zero, the program seems to stop and never turns the light back on. Is this the way that ISY handles this situation? If so, is there an easy way to get these programs to complete? I have many programs like this and hope I don't have to create another whole set of programs that check if "away" just switched back to "home" and then do something special for each device.Thanks.

Link to comment

Thanks, but I am not sure your suggestion will drive the behavior I am looking for. I want the programs "then" clause to run to completion once triggered. I think the only way to do this is to create a "disabled" program with no conditions which executes the else clause and call this from the original program. If I understand it correctly, this second program will run to completion regardless of the state of the conditions that caused it to be called in the first place. Is this correct? Thanks

Link to comment

"If I come home while the program is in the wait state and push the KPL button, turning the away variable back to a zero, the program seems to stop and never turns the light back on"

 

I am a little confused. If the program is in a WAIT state, is not the light already on? Why would you expect the program to turn it "back on"?

 

I would describe things a little different than LeeG. I undedstand programs can, in fact, run when in a disabled folder. They will not, however, self-initiate from their own conditions. They would run only if called externally, such as from another program.

 

I am not confident with this, but I expect that a program, once running, would continue to run even after a parent folder becomes disabled. If I wanted to be certain, I would set up a simple experiment, with a temporary program that includes a wait statement and disable the folder while the program is executing. I would watch program status at the point the folder is disabled and observe whether the program continues to run.

 

Is it possible, in your case, that the program has a condition based upon the away button or variable?

Link to comment

Thanks, but I am not sure your suggestion will drive the behavior I am looking for. I want the programs "then" clause to run to completion once triggered. I think the only way to do this is to create a "disabled" program with no conditions which executes the else clause and call this from the original program. If I understand it correctly, this second program will run to completion regardless of the state of the conditions that caused it to be called in the first place. Is this correct? Thanks

You are correct. I do this a lot.
Link to comment

With one note, a program with no conditions does not need to be disabled as it cannot self trigger with no conditions.  Disabling makes not difference in this case.

 

-Xathros

Link to comment

Archived

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


×
×
  • Create New...