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.
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.
Can you explain a virtual switch?
>> add new device >> virtual devices >> virtual switch
This is not a real life switch but you can you it on your controller.
I should have been more specific.....Sorry about that. What I meant is, what is a virtual switch and what does it do?
Just make one and use it in a rule.
I tried and it keeps asking me to pay $99.
Contact firstname.lastname@example.org or support.zipato.com
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.
Thanks for sharing about that. I am looking for more information about it. I will follow you to update the latest posts.
Replies have been locked on this page!