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 Question about Repeat Function

Featured Replies

Posted

Hey guys, I have a programming question regarding the repeat function that I am wondering if you can help me with. I currently have the program set up so that when the house alarm is activated, at sunset, a series of lights go on at different times. Once the sequence is over the program ends. This works fine when the person comes home every night. What I would like it to do is repeat the program every night until the alarm is turned off.

The Goodbye program that is activated with the alarm set is as follows:

If

From Sunset

To Sunrise (Next day)

and Program 'C1 Status' is True

 

Then

Set 'Entry Light On'

Set Living room.....etc

Else

-No Actions-

 

The Program that stops the Goodbye program when the alarm is deactivated is as follows:

If

X10 'C1/Off is received

and Program 'Goodbye On' is true

 

Then

Stop Program 'Goodbye ON'

 

Else

-No Actions-

 

Your help is greatly appreciated and this forum is excellent for learning and getting new ideas.

Thanks

You can try something like this. It is necessary to handle in two Programs so the Repeat loop does not get canceled at Sunrise. The Off Program would stop ‘Program On Repeat’

 

 

If

From Sunset

To Sunrise (Next day)

and Program 'C1 Status' is True

 

Then

Run Program ‘Program On Repeat’ (If)

Else

 

Program On Repeat

 

If

- No Conditions - (To add one, press 'Schedule' or 'Condition')

Then

Repeat every 24 hours

Set 'Entry Light On'

Set Living room.....etc

Else

-No Actions-

Alternatively, you could create a program folder, with condition:

 

Program C1 status is true
Then run the programs in this folder

 

In the folder, put a program such as:

 

If
Time is Sunset

Then
Set 'Entry Light On' 
Set Living room.....etc
Else
-No Actions-

  • Author

Thanks for the quick response guys. I'll give those options a try. You've been very helpful This is a great forum!

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.