randomize lighting on/off times for security
Posted: Thu Feb 09, 2006 1:20 pm
I've got several lights that I've got time based tasks set up for so that they come on at various times after sunset for security purposes. Before HouseBot I used to accomplish this task with the X10 timer device (I forget it's exact name but it looks like an alarm clock) that can control up to 4 different lights. I like the flexibility of HouseBot and the fact that all my home automation is configured from one application. However, since setting up HB to perform this task I've lost the "security" feature of the X10 timer device. That device has a security feature where it can randomize the on/off time within an hour of what you specify. Is there a way I can do something similar in HB? I realize I could make tasks for each day of the week with a slightly different on/off time but a better solution would be to be able to generate a random number within a specific range (like a random number between 1 and 60 for the minutes in an hour so that I could randomize how much time I add to the SUNSET_DATE_AND_TIME variable. I'm sure a VB script could accomplish this but I was curious if there was a simpler way it could be done directly in HB that I'm not aware of. No point in making things more complicated then they need to be.