Jump to content
View in the app

A better way to browse. Learn more.

Universal Devices Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

competing programs?

Featured Replies

Posted

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!
 

 

The Programs are not overriding each other.  While in the 15 minute Wait the first Program is not doing anything.  Look for other reason such as turning Off devices causes the first Program to be triggered turning Island back On.

  • Author

Thanks Lee - I will look around.

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.

  • Author

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.
 

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.

  • Author

Hmmm...Interesting. Yes - the Mudroom ICON switch is part of the "all" scene. And that switch is part of a 3-way situation of the same load with another ICON switch. Both are part of the "All" scene.

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.

  • Author

I will do that. Thanks!!

Guest
This topic is now closed to further replies.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.