Turning lights on/off with time variance?

Is it possible to add a time variance to automations, e.g. a random time +/- 30 minutes?

I’m looking at building a vacation routine, and I need time variances so things don’t appear so…“static.”

I’m up for options in HA Automations, NodeRed, and AppDaemon.

I use the Vacation Timer in node-red for this!

You set a “max delay” and it will pick a random number of minutes between the time set and the max delay to turn on or off:

Oh Perfect! I had no idea they even had one like this. Thanks!

Personally using this one and works pretty nice:

1 Like

I have a “vacation” automation that uses a random delay to switch off the lights.

1 Like

This look verry promissing as a start.
Found how to install that contribution.
what I want to do on vacation and I guess I need to buid separate flows for that?
Switch some lights on at sundown wit say 15 minutes variation
Some other light on 1st floor on at a certain time with some variation and off after one hour

At ‘bedtime’ I want to switch all in the livingroom off
Switich after 1 minut the light on bedrooms on for 5 miuntes with some variation.

So big thing is when I have on flow telling to have light on for 3 hours
Can I then switch some lights off although the flow tells to stay on?