Jump to content

competing programs?


TheWabit

Recommended Posts

I had an interested observation last night

 

I have 2 programs - one to turn the light on over the island when someone comes in the door from the garage and one that that turns all lights off at midnight (both below).

 

(This is 2nd of 2 programs. The first one just sets the conditions)

 

If
   - No Conditions - (To add one, press 'Schedule' or 'Condition')
 
Then
        Disable Program 'Mud Room Light Up - 1'
        Set Scene 'Island' On
        Wait  15 minutes
        Set Scene 'Island' Off
        Enable Program 'Mud Room Light Up - 1'
 
Else
   - No Actions - (To add one, press 'Action')

 

---------------------------------------------------------------------------------------------------------------

If
        Time is 12:01:00AM
 
Then
        Set Scene 'All' Off
 
Else
   - No Actions - (To add one, press 'Action')
 

 

(this scene includes the Island light)

 

So someone came in the door about 11:55 (started the 15 minute timer). At midnight, the "All Off" command was sent and all lights went off EXCEPT the island light. My question is: programmatically, why is the first program above overriding the 2 nd one? Or should I be looking at some other reason?

 

Thanks for the help!
 

 

Link to comment

I see nothing that starts any 15 minute countdown or ANY reason that the first (second?) program would run.  Are there other things you have going on here not shown?

 

If your second program turned off ALL lights, and the island failed to turn off, then there is likely a scene definition error, or a comm error.

Link to comment

oberkc - I probably should have included the first program. Here they are together:

 

Program 1

 

If
        From    Sunset
        To      Sunrise (next day)
    And Control 'Triggerlinc' is switched On
    And Status  'Island (Mudroom Door ICON)' is Off
 
Then
        Run Program 'Mud Room Lightup - 2' (Then Path)
 
Else
   - No Actions - (To add one, press 'Action')

 

Program 2

 

If
   - No Conditions - (To add one, press 'Schedule' or 'Condition')
 
Then
        Disable Program 'Mud Room Light Up - 1'
        Set Scene 'Island' On
        Wait  15 minutes
        Set Scene 'Island' Off
        Enable Program 'Mud Room Light Up - 1'
 
Else
   - No Actions - (To add one, press 'Action')
 

 

Then at midnight, this one runs:

 

If
        Time is 12:01:00AM
 
Then
        Set Scene 'All' Off
 
Else
   - No Actions - (To add one, press 'Action')
 

 

Scene "All" has every light in it. When program 2 starts (triggered by Triggerlinc), it turns on the island light and starts the 15 minute timer. It seems to work well. Last night though, program 2 ran, started the timer, then the scene "all off" ran but that light didn't turn off like the rest of them. But I tested today by forcing the "thens" to run and it didn't duplicate this. Not a big deal but I was just curious if the timer running "overrode" that midnight scene for some reason.

Thanks for the input.
 

Link to comment
I was just curious if the timer running "overrode" that midnight scene for some reason

 

No...not to my knowledge.  As I understand, programs run simultaneously.  The midnight program should run normally, even if another program is also running.

 

Question...is 'Island (Mudroom Door ICON)' part of the scene 'All'?  If so, when the midnight program runs, it could trigger an evaluation of program 1.  I cannot help but be concerned that this may be a problem if it happens at the wrong time.  I haven't given it a lot of thought, however.  Perhaps your disable commands take care of this problem.  Regardless, I don't think that is a factor in your original problem.

Link to comment

My quick review of your programs makes me thing that this is NOT a problem, but I just wanted to point out that when you turn the ALL scene off, it could trigger an evaluation of program 1 as a result of a status change of the mudroom icon switch.  I notice that this program can be disabled at times by program 2, and that if program 1 is triggered by a change in status, it will likely evaluate false, which is pretty harmless. 

 

But you are most familiar with your programs and intentions.  Double check that there are no unintended consequences there.

Link to comment

Archived

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


×
×
  • Create New...