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.

programming lights with exception

Featured Replies

Posted

I have a program that family room perimeter lights switch on via motion sensor between sunset and midnight, stay on for 10 minutes then switch off. I'd like to add the exception that if family room overhead light is already on when motion sensor is switched on to ignore the command. How would I write that into the program.

Thanks

At the very basic level simply add your existing program to a folder that says:

If time is from sunset to 12am and status overhead lights are off

Then allow this program to run

You could choose the two program option as well: One Trigger program that has the motion detector being switched on in the If statement and is enabled, and One Conditional program that has the other conditions (time range and status of overhead lights) in the If that is disabled. Same structure as using the folder as suggested above but extensively discussed here in these forums and in the Wiki. May be a more conventional approach than the folder.

Edited by Goose66

  • 2 weeks later...

This seems unnecessarily complicated and is wasting a node with an extra folder or program.  If the perimeter lights are not the same as the overhead lights, then it can just be two conditions in one program.  Status of overhead is not On and the sensor is switched on , then...

1 hour ago, ScottAvery said:

This seems unnecessarily complicated and is wasting a node with an extra folder or program.  If the perimeter lights are not the same as the overhead lights, then it can just be two conditions in one program.  Status of overhead is not On and the sensor is switched on , then...

But then you run the risk of the wait timer being cancelled by the occurrence of one of the other conditions (the times in the time range, status of the overhead light changing) and therefore your perimeter lights never being turned off. This is the classic source of confusion with the ISY programming model (not to mention why the Else branch is practically worthless) and why so many use the two program approach as a matter of course to separate their trigger events from their conditional statements.

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.