# [SOLVED] Turn item on at random time between a certain time

Hello all,

i use openhab3.
Now i have 2 rules, one turns a light on and the other is turning the light off.
Now i would like to change the rule so that the light is turned on between 8:00 and 9:00 but at a random time so that it turns on at different time everyday.
Is this possible?
I am using the GUI.

Greeting

If this is not possible, is there a other way of doing this?

Greeting

Did you search the community? Because “trigger random” gave me this:

I have no idea if it works in OH3, though.

1 Like

Yes i did, but cant find anything with OH3 with the use of the UI.

Greeting

Anything that can be done with a rule in OH2 should be doable in OH3 (possibly requiring some tweaks). Just insert the “then” portion of the OH2 rule into your UI rule as a script.

1 Like