ewind Posted May 16, 2020 Posted May 16, 2020 I have numerous simple programs that DO execute 99% accurately and a couple that continue to have trouble's. The program below calls a scene of 3 (2x2466S & 1x2477S) switches. Unfortunately it does not matter what time of day any if the 3 2421 tiggerlinc's are triggered the scenee get activated. Service Doors Lights - [ID 0035][Parent 0001] If From Sunset To 6:58:00AM (next day) And 'ServiceDoor-GN-Opened' Status is On Or 'ServiceDoor-Workshop-Opened' Status is On Or 'North Door Coach' is switched On Then Set 'North Yard Coach Lights' On Wait 2 minutes Set 'North Yard Coach Lights' Off Else Set 'North Yard Coach Lights' Off
lilyoyo1 Posted May 16, 2020 Posted May 16, 2020 Are the sensors directly linked to the lights? If so, that would be why
ewind Posted May 17, 2020 Author Posted May 17, 2020 The sensors are not nor ever were directly linked to the lights. Each switch is independent and not a controller. The program calls the scene based on the If status is On.
PurdueGuy Posted May 17, 2020 Posted May 17, 2020 What do you want to happen? Without parentheses, the OR cases are probably triggering no matter what. Change it to: Service Doors Lights - [ID 0035][Parent 0001] If From Sunset To 6:58:00AM (next day) And ( 'ServiceDoor-GN-Opened' Status is On Or 'ServiceDoor-Workshop-Opened' Status is On Or 'North Door Coach' is switched On ) Then Set 'North Yard Coach Lights' On Wait 2 minutes Set 'North Yard Coach Lights' Off Else Set 'North Yard Coach Lights' Off
ewind Posted May 17, 2020 Author Posted May 17, 2020 I create all programs using the admin console. Are you stating I am supposed to be adding parenthesis between any if's and then's? I missed that entirely reading guide
MrBill Posted May 17, 2020 Posted May 17, 2020 Here's the wiki page to read: https://wiki.universal-devices.com/index.php?title=ISY-99i/ISY-26_INSTEON:Scope,_Precedence_and_Execution_Order It's hard to tell what your intent is. but i'll add blank lines to show you how your if is being evaluated: From Sunset To 6:58:00AM (next day) And 'ServiceDoor-GN-Opened' Status is On Or 'ServiceDoor-Workshop-Opened' Status is On Or 'North Door Coach' is switched On The AND is not coupled to all 3 switches it's only coupled to the first. The 2nd and 3rd will operate the program anytime.
ewind Posted May 17, 2020 Author Posted May 17, 2020 Thank You @PurdueGuy & @MrBill Ive been missing this concept for 3 years ? I guess it pays to read the whole manual sometime ?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.