Jump to content

Folder Conditions


db2ace2

Recommended Posts

Hello Team,

 

I have a question on using Folder Conditions.  If you have a FOLDER that contains Programs whose conditions are TRUE but the condition on the FOLDER is FALSE, then the program correctly does not execute. If you then set the FOLDER Condition to TRUE and the Program IF Condition  is still TRUE, then is there a way to then detect that condition and make the program RUN without having to manually run them?

 

I know I can manually run them but I want them to start running automatically as soon as the FOLDER Condition is TRUE again, If there is not q way, that would be a Great Enhancement!   This would allow you to not have programs not starting at Reboot and allow you to start them with a Delayed start of the FOLDER condition. This would be very helpful to all ISY users when debugging and fighting against code that loops.  There are many other uses for this functionality too! I know there are other ways around this but this seems like it would be a no brainer to implement and would be extremely helpful.

 

Thanks

Charles Seiler

Link to comment

The Folder Status can be checked in the Program.  This check can be Ored or Anded with existing Program checks.

 

TestFolderVar - [iD 002A][Parent 0029]
 
If
        Folder  'Folder2' is True
 
Then
        
 
Else
   - No Actions - (To add one, press 'Action')
Link to comment

I tested on 4.3.1 before  my post.  The Program triggers when the Folder becomes True.

 

The Variable becoming > 0 makes the Folder True.  My test Program turns on D1.

 

Fri 05/08/2015 05:28:31 PM : [VAR  2    6 ]       0
Fri 05/08/2015 05:29:19 PM : [VAR  2    6 ]       10
Fri 05/08/2015 05:29:19 PM : [         X10]       D1
Fri 05/08/2015 05:29:19 PM : [X10-RSP     ] 02 63 A6 00 06 
Fri 05/08/2015 05:29:19 PM : [         X10]       D1/On (3)
Fri 05/08/2015 05:29:20 PM : [X10-RSP     ] 02 63 A2 80 06 
Fri 05/08/2015 05:29:20 PM : [X10-RX      ] 02 52 A6 00 
Fri 05/08/2015 05:29:20 PM : [         X10]       D1
 
 
 
TestFolderVar - [iD 002A][Parent 0029]
 
If
        Folder  'Folder2' is True
Then
        Send X10 'D1/On (3)'
        Wait  5 minutes 
        Send X10 'D1/Off (11)'
Else
   - No Actions - (To add one, press 'Action')
 
===================================================================================
Folder2 - [iD 0029][Parent 0001]
 
Folder Conditions for 'Folder2'
 
If
        Status  'KPL 8 Dimmer v40 / KPL 8 Dimmer v40 - G' is 100%
     Or $State_6 > 0
 
Then
   Allow the programs in this folder to run.
 
 
 
 
 
Link to comment

Archived

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


  • Recently Browsing

    • No registered users viewing this page.
  • Who's Online (See full list)

  • Forum Statistics

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