Jump to content

Program Troubleshooting


Recommended Posts

Posted

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
 

 

 

Posted

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.

Posted

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

 

Posted

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 :(

 

image.thumb.png.5a6d339c78f2438ea0a729246f75c314.png

Posted

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.

 

 

Archived

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

×
×
  • Create New...