I have a rule that switches off the lights in my room. Now I’m thinking of a way to create a random time-slot between the switching off of the lights. Now my rule is like this:
“when it is after 23:15 and SamsungSTB is absent then switch Lampje off and after 10 seconds switch Halogeenlamp off and after 30 seconds switch Ikea lamp off”
Is something like this possible:
$var1 = rnd(number between 10 and 480 seconds)
$var2 = rnd(number between 10 and 480 seconds)
“when it is after 23:15 and SamsungSTB is absent then switch Lampje off and after $var1 seconds switch Halogeenlamp off and after $var2 seconds switch Ikea lamp off”
This way I will (almost) never have the same time between the switch-off of the lights. My problem here is that I don’t know how to trigger the recreation of the var1/var2 every time