Jump to content

Program Troubleshooting


Recommended Posts

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
 

 

 

Link to comment

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

 

Link to comment

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.

 

 

Link to comment

Archived

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


×
×
  • Create New...