db2ace2 Posted May 8, 2015 Posted May 8, 2015 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
LeeG Posted May 8, 2015 Posted May 8, 2015 (edited) 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') Edited May 8, 2015 by LeeG
MWareman Posted May 8, 2015 Posted May 8, 2015 (edited) LeeG, will that test within the 'If' cause the program to trigger when the folder changes to 'True'? I didn't think it would. Edited May 8, 2015 by MWareman
LeeG Posted May 8, 2015 Posted May 8, 2015 (edited) 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. Edited May 8, 2015 by LeeG
Recommended Posts