Jump to content

Looking for a better way (Random)


jmed999

Recommended Posts

I currently have this program to light 2 lamps when someone enters the house...

 

Living Room Lamps

If
       From    Sunset 
       To      Sunrise (next day)
   And (
            Elk Zone 'Front Door' is Violated
         Or Elk Zone 'Garage Entry Dr' is Violated
       )

Then
       Set Scene 'Living Room Lamps' Fast On
       Wait  5 minutes 
       Set Scene 'Living Room Lamps' Fast Off

Else
       Wait  5 minutes 
       Set Scene 'Living Room Lamps' Fast Off


 

I would also like to add a program to randomly turn those lamps on and off while we are away so I have this...

 

Random Lights

If
       From    Sunset 
       To      Sunrise (next day)
   And Program 'Living Room Lamps' is False
   And Elk Area 'The Home' 'Armed State' is Armed Away

Then
       Set 'Insteon Bulb 1' On
       Wait  1 minute  (Random)
       Set 'Insteon Bulb 1' Off
       Set 'Insteon Bulb 2' On
       Wait  1 minute  (Random)
       Set 'Insteon Bulb 2' Fast Off
       Run Program 'Random Lights' (Then Path)

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

 

Is there a better way to do this? The lamps aren't very random. They just turn on for 1 minute then the other one turns on for 1 minute.

 

Thoughts?

Link to comment

I ran this test Program with 5 Wait 1 minute (Random) statements. The actual Wait times were 26, 17, 0, 51, and 2 seconds. This was run on 3.3.9 (RC6). A Wait 1 minute Random seems to be working okay here.

 

Then

Send X10 'A1/On (3)'

Wait 1 minute (Random)

Send X10 'A1/On (3)'

Wait 1 minute (Random)

Send X10 'A1/On (3)'

Wait 1 minute (Random)

Send X10 'A1/On (3)'

Wait 1 minute (Random)

Send X10 'A1/On (3)'

Wait 1 minute (Random)

Send X10 'A1/On (3)'

 

Else

 

Wed 01/16/2013 10:14:43 PM : [X10] A1/On (3)

26 second wait

Wed 01/16/2013 10:15:09 PM : [X10] A1/On (3)

17 second wait

Wed 01/16/2013 10:15:26 PM : [X10] A1/On (3)

0 second wait

Wed 01/16/2013 10:15:26 PM : [X10] A1/On (3)

51 second wait

Wed 01/16/2013 10:16:17 PM : [X10] A1/On (3)

2 second wait

Wed 01/16/2013 10:16:19 PM : [X10] A1/On (3)

Link to comment

Archived

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


  • Recently Browsing

    • No registered users viewing this page.
  • Forum Statistics

    • Total Topics
      36.9k
    • Total Posts
      370.3k
×
×
  • Create New...