Jump to content

Programming Question about Repeat Function


travcore

Recommended Posts

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

Link to comment

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-

Link to comment

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-

Link to comment

Archived

This topic is now archived and is closed to further replies.


×
×
  • Create New...