Xathros Posted February 24, 2015 Posted February 24, 2015 (edited) You are missing Parens: If ( Status 'Main House / Master Bath / Main: MBath Toilet Light' is not Off Or Status 'Main House / Master Bath / Main: Mbath Shower' is not Off Or Status 'Main House / Master Bath / Main: MBath Keypad' is not Off ) And Control 'Leak - Motion - Trigger - Spr / Main: Trigger Drive-Opened' is switched On Then Run Program 'Driveway Alarm Master Bath' (Then Path) Else - No Actions - (To add one, press 'Action') Without the parens, the AND is only joining with the line above not the 3 lines above. This makes the program trigger if either of the first 2 devices turn off regardless of the Control message from the last device. What you were saying there is: If the toilet light is not off or If the Shower light is not off or If the keypad is not off and Drive-Open switched On Then run the next program - the next program will re-trigger this since it turns on toilet and shower lights. -Xathros Edited February 24, 2015 by Xathros
oberkc Posted February 24, 2015 Posted February 24, 2015 "Why would that cause a loop? I ask because the basement main control is part of the basement scene but works. " Xathros' response, above, is the same as I would suggest. It is one of those logic priorities, similar to the mathmatical "distributive" property we all learned in the fifth grade, but forgot by the sixth. Logical AND trumps logical OR.
RichTJ99 Posted February 25, 2015 Author Posted February 25, 2015 So to confirm: If -( | Status 'Main House / Master Bath / Main: MBath Toilet Light' is not Off | Or Status 'Main House / Master Bath / Main: Mbath Shower' is not Off | Or Status 'Main House / Master Bath / Main: MBath Keypad' is not Off -) And Control 'Leak - Motion - Trigger - Spr / Main: Trigger Drive-Opened' is switched On Then Run Program 'Driveway Alarm Master Bath' (Then Path) Else - No Actions - (To add one, press 'Action')
RichTJ99 Posted March 2, 2015 Author Posted March 2, 2015 Thanks! I have it turned on & have yet to be in the bathroom when the driveway alarm works but the ISY hasnt crashed so I think I might be good to go!
Recommended Posts