Jump to content

Conditional Pgm vs Conditional Folder + Null Condition Pgm?


matapan

Recommended Posts

Posted

What's the difference between how ISY evaluates a conditional program and a folder with the same condition as the conditional program which also contains a program with no condition?

 

Example Conditional Program:

 

if status 'motion sensor' is on and

status 'motion sensor' is not off

 

then

set 'lamp' on

else

set 'lamp' off

 

 

Example Folder and Null Condition Program:

 

Folder Conditions for 'Occupied'

 

if status 'motion sensor' is on and

status 'motion sensor' is not off

 

then

allow programs in this folder to run

 

 

Program:

 

if

No conditions

then

set 'lamp' on

else

 

 

The conditional program behaves differently from the folder with a null condition program. Why?

Posted

matapan

 

Is it the result in the folder example the Program with the null If does not trigger?

 

Lee

'

EDIT: the above is really asking to define the difference observed. Folder conditions allow Programs in the folder to run as opposed to triggering Programs to run. This may not have any relevance to the difference of interest.

Posted

I agree with the inference of LeeG: I expect your program will never trigger, because it has no conditions. While your folder-embedded program may become enabled and disabled, based on a set of conditions, the program still needs something to force an evaluation to run.

 

As an aside, I must admit to having having never understood the purpose of this conditions such as:

 

if
status 'motion sensor' is on and
status 'motion sensor' is not off

versus

if 
status 'motion sensor' is on

 

It seems to me that both would trigger under identical conditions (any change in status) and evaluate the same (true only when motion sensor is on).

Posted

Thank you for the replies!

 

So, programs with no conditions will not run, unless there's a calling program that will reference the appropriate branch.

 

The program with the condition does run, but the folder with the condition and program with no condition within it does not. Makes sense now.

Guest
This topic is now closed to further replies.

×
×
  • Create New...