This object is in archive! 

Turn on 2 lights randomly.

Philippe Bidlot shared this question 8 years ago
Need Answer

How do i make a rule to turn on 2 lights in randomly order.


For example,

monday light A turn on first and light B second,

tuesday light B turn on first and light A second, and so on.

So it is also possible that light A is 2 or 3 days on a row first

and light B second or reversed.

Replies (3)

photo
2

try this, let me know if it works

photo
1

Hi Adrian,


I have tested the rule witch i created (as show below in this topic) and it works flawless, so thanks for that.

I hope you can help me with an other rule to understand why it doesn't work like i expected.

The meaning of this rule is when i turn on the virtual switch and the temp. is between 26 and 30 C

the schutters are closing to the given point. When the temp. is above 30.1 C the shutters had to close a little bit more. So far so good. Now comes the part witch i don't understand. When the temp. drops under 25 C the shutters don't go open. I hope you can tell me what i did wrong.

Thanks in advance

photo
photo
1

Schedule every day at time you like


put a random number between 1 and 10 into a variable

if variable is <= 5 then first A on and then B on

else first B on and than A on


ready

photo
1

Both thanks for your quick response.

I create a rule so i can try this.

Other suggestions or ideas are always welkom.

Leave a Comment
 
Attach a file