Jump to content

Programming Question about Repeat Function


travcore

Recommended Posts

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

Posted

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-

Posted

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-

Guest
This topic is now closed to further replies.

  • Recently Browsing

    • No registered users viewing this page.
  • Forum Statistics

    • Total Topics
      37k
    • Total Posts
      371.4k
×
×
  • Create New...