Running two copies should work. But, that's too easy.
I added 24h to the stop time and that gets the correct date:
2 2018-12-28 04:17:09.755 debugtimeWindowStop = Sat Dec 29 07:14:00 EST 2018 adjusted: Sat Dec 29 07:14:00 EST 2018
app:5602018-12-28 04:15:09.642 debugInstalled with settings: [frequency_minutes:17, number_of_active_lights:1, switches:[Living Dimmer, Dining Light, Hall Front Light, Bed Front Dimmer, Bed Side Dimmer, Master Bed Dimmer, Master Bath Light, Kitchen Dimmer, Bathroom Light], newMode:[Away], startTimeType:sunset, starting:2018-12-28T00:01:00.000-0500, endTimeType:sunrise, endTimeOffset:1440, people:[A, D]]
Tried starting 24h earlier: works fine.
Worked fine with a 1440 min delay:
I will post some updates to vacation lighting director.
Some of the issues reported in times are related to differences in HE vs. Smartthings.
In Smartthings, the sunrise/sunset times adjust for scheduling into the future, where as in HE they do not, so code has to be added for this (new updates coming).
Another issue is the timeOfDayIsBetween, ST handles the above time adjustments, where HE does not.
Again the new code will fix this. Timehandling is incompatible in these functions between the platforms.
Thank you much.
Will test the new code when available.
Here is the beta version
This is also available in HPM
Note this is branch beta
New code works great. Here is the log. I rebooted the hub at 3:44 am.
Both start and stop times say Saturday. It was Saturday when I installed the code.
The previous code would log wrong time and not start.
app:7152019-01-19 03:34:43.795 debugInstalled with settings: [frequency_minutes:20, number_of_active_lights:1, switches:[Living Dimmer, Dining Light, Hall Front Light, Bed Front Dimmer, Bed Side Dimmer, Garage Light, Master Bed Dimmer, Master Bath Light, Kitchen Dimmer, Bathroom Light], newMode:[Away], on_during_active_lights:[Aeon LED Bulb], startTimeType:sunset, endTimeType:sunrise, startTimeOffset:-15, people:[A, D]]
And here is the log from this morning. Worked perfect. The dates are correct.
Hi.. Is this the latest version? Does it only fire when all users are out of the geofence?
Do i need to set anything or,does it just turn on random devices at random times between sunset and a specific time?
When you install there are settings you apply in the HE console
- what lights to use
- when to turn on/off
- what it is using to decide to run or not (could be presence, or a mode setting, etc).
So install, and apply setting you wish after installing.
Howdy, I just found this on Hubitat Package Manager and installed it for away and vacation coverage. It Looks great!
I noticed there’s an option for how long lights are to remain on, is this a Max on time and the actual duration is randomised within that range?
Btw, it’d be great if the end time could be a randomised definable off range eg
11:30pm = off time
Off Range = 1 hour (make user definable)
So then VLD would randomly switch off between 11:00pm and 12 midnight
This would make the simulated bed Time more realistic.
I use it and it works for my needs. I see you have Package Manager installed. Bryan (@bptworld) wrote a nice simulator you might be interested in. -Joel
Hi @nh.schottfam is there any chance you can add a seperate group of switches that can turn on & off switches (in my case virtual ones) to turn a (or more) speakers on & off. Could also turn your TV on & off.
Adding this would better simulate being home, although there would need to be 2 seperate times setup as naturally lights don't need to go on during daytime, & the speakers or TV would.
You can run a separate instance for this if needed:
I haven't worked it out, so I've just done it with RM. I have 4 different rules, over alternating days, AM & PM was pretty easy to do
There is an updated version out today.
It further optimizes operations on HE, and has instructions if you want to install multiple versions.
It also can turn logging off after 2 hrs.
It is available in HPM. Vacation Lighting Director.
Thanks for this app, saved me hours of headaches....
A couple of questions, can I change it to leave the lights on between the selected times? I don't want them to cycle.
can I get a notification when it runs?
So you want it to leave a light on when VLD is off?
VLD can log, but it does not have push notifications...it seems this is more debugging that normal operating state?
No, I want the lights to stay on between the times I selected, for example Sunset to midnight.
If I am out of the house, I would like to receive a notification like Rule Machine does when the rule is triggered. is that too complicated to add?