Posted May 16, 20205 yr 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
May 17, 20205 yr Author 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.
May 17, 20205 yr 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
May 17, 20205 yr Author 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
May 17, 20205 yr 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.
May 17, 20205 yr Author Thank You @PurdueGuy & @MrBill Ive been missing this concept for 3 years ? I guess it pays to read the whole manual sometime ?
Archived
This topic is now archived and is closed to further replies.