This object is in archive! 

Combining Two Rules

Nathan shared this question 9 years ago
Need Answer

I have a rule that turns on my Christmas lights at sunset and then turns them off at midnight. Right now it's two separate rules. Is there a way to combine these?


It works just fine, but I'm trying to learn a little more about the rules.

Replies (7)

photo
1

You could try with an "OR"


But better is to make 1 rule with the sunset/sunrise that triggers a virtual switch. Then you can use this switch in one rule.

photo
1

Can you explain a virtual switch?

photo
1

>> add new device >> virtual devices >> virtual switch


This is not a real life switch but you can you it on your controller.

photo
1

I should have been more specific.....Sorry about that. What I meant is, what is a virtual switch and what does it do?

photo
1

Just make one and use it in a rule.

photo
photo
1

I tried and it keeps asking me to pay $99.

photo
1

Contact support@zipato.com or support.zipato.com

photo
photo
1

A switch is just like a boolean variable (on/off = true/false). I use a lot of them to control many rules, for example:

- Working day switch (is today a working day?)

- Cloudy day switch (is it cloudy?)

- Daytime switch

- Autumn/winter switch


etc etc. You set up a rule to set the value, and then you can use the value in many other rules. In a way it's a substitute for the ability to define subroutines.

photo
1

Thanks for sharing about that. I am looking for more information about it. I will follow you to update the latest posts.

Leave a Comment
 
Attach a file