Rule to Turn on/off light randomly

Hello All,
I'm having trouble trying to create a rule where it turns on a light randomly after sunset and turn off between 11pm - 1am. I want to simulate occupancy during an upcoming vacation.

Any help is appreciated :grin:

You want How to randomize a turn on time after trigger within defined window - #2 by bravenel if using Rule Machine. Basically, use sunset as the trigger. First action should be to turn on the lights; however, put a random delay on the action.

Then you could wait until a certain time and then use a random delay to turn off the lights.

4 Likes

Thank you so much. Was able to make my rule and it works like a charm.

Cheers :slightly_smiling_face:

2 Likes