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.

Using "And" or "Or"

Featured Replies

I'm new to ISY programming and was wondering if the following program will run correctly, or should I be using "And" in place of "Or"? Looking to create a "random look" On and Off of the device on Wed-Sat.

 

 

If

On Wed

From 6:25:00PM

To 6:44:00PM (same day)

Or On Thu

From 6:09:00PM

To 6:48:00PM (same day)

Or On Fri

From 6:02:00PM

To 6:35:00PM (same day)

Or On Sat

From 6:43:00PM

To 7:15:00PM (same day)

 

Then

Set 'Foyer Key A (Lightpole)' On

 

Else

Set 'Foyer Key A (Lightpole)' Off

 

 

 

 

Thanks!

Hi jfvalenti,

 

Why don't you use the Wait function with the Random attribute. It seems that the days are Wed, Thu, Fri, and Sat. So, make your condition as follows

If

On Wed

Time is 6:00:00PM

Or On Thu

Time is 6:00:00PM

Or On Fri

Time is 6:00:00PM

Or On Sat

Time is 6:00:00PM

Then

Wait 0 hours 45 minutes 00 seconds Random

Do whatever needs to be done

 

So, the random will pick a number between 0 minutes (6:00 PM) up to 45 minutes (6:45 PM).

 

With kind regards,

Michel

 

I'm new to ISY programming and was wondering if the following program will run correctly, or should I be using "And" in place of "Or"? Looking to create a "random look" On and Off of the device on Wed-Sat.

 

 

If

On Wed

From 6:25:00PM

To 6:44:00PM (same day)

Or On Thu

From 6:09:00PM

To 6:48:00PM (same day)

Or On Fri

From 6:02:00PM

To 6:35:00PM (same day)

Or On Sat

From 6:43:00PM

To 7:15:00PM (same day)

 

Then

Set 'Foyer Key A (Lightpole)' On

 

Else

Set 'Foyer Key A (Lightpole)' Off

 

 

 

 

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.