Jump to content

A 'Wait' within a timed 'Repeat'


andyf0

Recommended Posts

I have a program that is not doing exactly what I want.

 

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

Then
       Repeat Every  16 minutes 
          Set 'DEVICES / OUTLETS / DR (Table Lamp)' On
          Wait  15 minutes  (Random)
          Set 'DEVICES / OUTLETS / DR (Table Lamp)' Off

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

 

My question is does the 16 minute counter start at the beginning of the repeat loop or after the last line is executed. The light turns on and off OK but the total length of time between turning it on, turning it off and turning it on again seems way longer than 16 minutes.

 

Edit: My testing would seem to indicate that the 16 minutes starts after the last instruction in the repeat loop is executed.

Link to comment
Repeat starts the repeat from when it finishes. For example:

 

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

Then
       Repeat Every  10 seconds
          Wait  10 seconds
          $sTest += 1


 

The above code takes 20 seconds between adding 1 to $sTest.

 

Except for the first time when it will take 10 secs. Although you did say 'between' so technically you're correct. :)

Link to comment

Archived

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


×
×
  • Create New...