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.

Looking for a better way (Random)

Featured Replies

Posted

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?

They just turn on for 1 minute then the other one turns on for 1 minute

 

That "random" is not working?

Well, at 1 minute, what do you expect them to do? Turn on and off every minute or so like a light show?

 

Extend the time to like 15 minutes or 30 minutes. It might give you a more human touch.

  • Author

So if I change it to 15 minutes and random it will just wait for 15 minutes right? What does selecting random do?

 

Thanks for the help!

According to the wiki, choosing a "random" wait will vary the time between zero and the specified time. I am unsure if it is multiples of seconds, minutes, or something else. Try it and see how it works with a longer period.

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)

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.