BrianM Posted November 12, 2015 Posted November 12, 2015 I have an ISY994i/IR running 4.3.26.One of the main functions it provides is to give my house a lived in lookwhen I'm away. I'd like to be able to turn the outside lights on & off a randomnumber of minutes before & after sunrise & sunset.I figured out how to create a random number and store it in a variable but I can'tincorporate the variable into the code of the program that controls theoutside lights.Anyone know how to do this?Thanks,Brian
jerlands Posted November 12, 2015 Posted November 12, 2015 I'm uncertain why you want the variable? I do a similar thing without... Front Bedroom Light - [ID 0006][Parent 0001][Run At Startup] If From Sunset - 1 hour To 10:00:00PM (same day) Or From Sunrise To Sunrise + 2 hours (same day) Then Repeat 2 times Wait 50 minutes Wait 20 minutes (Random) Set 'Light Front Bedroom' On Wait 5 minutes (Random) Set 'Light Front Bedroom' Off Wait 1 hour and 15 minutes Wait 15 minutes (Random) Set 'Light Front Bedroom' On Wait 7 minutes (Random) Set 'Light Front Bedroom' Off Else Set 'Light Front Bedroom' Off Jon...
BrianM Posted November 13, 2015 Author Posted November 13, 2015 Jon... Thanks...I've not used the Wait command often and wasn't aware there's a Random option. Your solution suits me fine. Thanks. Brian
roblombardo Posted November 13, 2015 Posted November 13, 2015 (edited) When you "wait 15 minutes (random)", does that mean 15 minutes is the maximum or minimum? Edited November 13, 2015 by roblombardo
jerlands Posted November 13, 2015 Posted November 13, 2015 When you "wait 15 minutes (random)", does that mean 15 minutes is the maximum or minimum? 15 would be the maximum.. anywhere between 0 and 15 Jon...
Recommended Posts