This object is in archive! 

Rule help

Toni Falk shared this question 8 years ago
Need Answer

Hey all!

Does anyone have a good idea on how to make a rule in the rule creator so the lights switched on and off at random when the sun goes down and the house is ARMD

Replies (1)

photo
1

Hi, You need to add a virtual whether station (local to your place) to your system as first.

Then you need to create 2 rules that will set 1 variable to a certain value at sunset and sunrise:

When scheduler (astro) sunset at your location, set variable to 100 and another rule with astro scheduler for sunrise that will change the same variable to 50. This way your valiable will be at 100 when the sun has gone down.

Now you can set a rule that will be executed when the system is armer and if the variable is 100.

Insert any actuators as set to and set them to work with a random time +/- a different variable values...

I have not done random light switching rule myself, but have seen this somewhere in the community...

Leave a Comment
 
Attach a file