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.

Help Newbie with programming

Featured Replies

Posted

Hi there I have an ISY-99i and so far have just programmed a few timer programs (ie Lights on at sundown).

 

I wanted to control my counter lights with very specific conditions:

 

If 20 minutes before sunset comes before 6:00pm then turn counter lights on at 5:00pm weekdays

 

But I am having difficulty visioning the program. I thought of this:

 

Create a Variable EarlySundown=0, then these programs

 

If
       On Mon, Tue, Wed, Thu, Fri
       From    Sunset  - 20 minutes
       To       6:00:00PM (same day)

Then
       $EarlySundown  = 1

Else
       $EarlySundown  = 0

 

If
       On Mon, Tue, Wed, Thu, Fri
       Time is  5:00:00PM
   And $EarlySundown is 1

Then
       Set 'Counter Lights' On

Else
  - No Actions - (To add one, press 'Action')

 

But to me the first program would only run after the second if Sundown-20min came between 5pm and 6pm which fails my conditions, am I right?

 

If so how would one write a program for this?

 

Thanks very much for any help!

Hi Iceman68,

 

I believe you can accomplish what you want with the following one program:

 

If

From Sunset - 1 hour and 20 minutes

To 5:00:00PM (same day)

And Time is 5:00:00PM

 

Then

Set 'Counter Lights' On

 

Else

- No Actions - (To add one, press 'Action')

 

Good luck!

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.