Useful RULES - Post your rules here!
Thread for rules people have created. Please use the format provided in the first post and only discuss the rules by using the reply function in the relevant post. Thank you!
I am using lots of virtual switches to do the things I want more or less automatically based on rules. I decided to put the my most useful rules here. There more rules but they are pretty specific to me needs. E.g. wake up is detected by motion sensors in a particular time frame and the home then goes to wake up mode, which means some light, sound and heating configuration changes..
In my opinion it all depends on the clever and more or less not noticeable placement of sensors. If you do not use the Philips Hue system you should definitely consider buying it. It will be a total game changer.
But this only fun if every Z-Wave sensor or actuator is reachable by the Zipabox. To assure this you should also buy some Fibaro Wall Plugs, not for switching stuf on or off but for establishing a better mesh network. But make sure that they really work as router. You can do so by clicking onto "Network Heal" in the Zipabox Settings menu. If they do not show up as a routing device you have to exclude in include them again.
________
"At Home or Away?"-Rules
Purpose:
To find out if someone is at home or not and to do the appropriate stuff according to the result.
Requirements:
- door sensor (located at place of entry and exit)
- motion sensor (located inside near the place of entry)
- virtual switch "Anwesenheit" (indicating the home [ON] or away mode [OFF])
- variable "Bewegung" (indicating movement [1] or no movement [0] inside the home)
Screenshot:
Explanation:
In order find out if someone is at home or not, we have to use two rules. We need a door sensor and a motion sensor. We also need to create a virtual switch for storing the home or away state and a variable for storing the motion sensing state. As this variable only stores the values 0 and 1 it could be replaced by a virtual switch.
The first rule (Rule 20) is executed when the door is opened. The checks if motion has been sensed inside the house just a moment before. If no motion has been sensed the rule assumes that the door has been opened from the outside and switches the virtual switch "Anwesenheit" ("at home") to on. If motion has been sensed the rule waits for two minutes before checking again if motion has been sensed. If after two minutes no motion has been sensed the rule assumes that the door has been opened from the inside and the you have left the house. It then puts the virtual switch "Anwesenheit" into the off position. You have to create a rule for this switch to do the stuff you want to do when it moves to off or on. An example will follow later.
The second rule (Rule 19) is executed when motion is sensed by the motion sensor. If you have more than one motion sensor, a similar rule should be created for each of the sensors for better reliability. If motion has been sensed the variable "Bewegung" ("motion") is set to "1". The rule then waits for two minutes before setting the variable "Bewegung" back to "0".
Notes:
- Variables can be created in the rule creator. Log out after creation and log in again to make sure that they are available in the rule creator.
- Virtual switches can be created by adding a Z-Wave device in the device manager.
Rule for Virtual Switch
Purpose:
Rule for doing something when a virtual switch has been switched into the ON or OFF position. This example uses the virtual switch "Anwesenheit" from the first example to do something when someone is leaving or entering the home.
Requirements:
Screenshot:
Explanation:
The rule is executed when the virtual switch has been moved - by another rule or manually by yourself! - into the ON position. A variable called "anwesend" representing that someone is at home ("1") or not ("0") is set to "1". The heating is then set to 22 degrees celcius. Afterwards the rule checks the luminance value of a luminance sensor. If the luminance value is below 50 the rule assumes that it is dark and moves another virtual switch called "Licht Hell" ("Light Bright") into the ON position.
Notes:
Rule for Virtual Switch
Purpose:
Rule for doing something when a virtual switch has been switched into the ON or OFF position. This example uses the virtual switch "Anwesenheit" from the first example to do something when someone is leaving or entering the home.
Requirements:
Screenshot:
Explanation:
The rule is executed when the virtual switch has been moved - by another rule or manually by yourself! - into the ON position. A variable called "anwesend" representing that someone is at home ("1") or not ("0") is set to "1". The heating is then set to 22 degrees celcius. Afterwards the rule checks the luminance value of a luminance sensor. If the luminance value is below 50 the rule assumes that it is dark and moves another virtual switch called "Licht Hell" ("Light Bright") into the ON position.
Notes:
Rule for switching lighting on or off (Philips Hue)
Purpose:
Another virtual switch based rule for switching lighting on or off. In this example the Philips Hue system is used.
Requirements:
Screenshot:
Explanation:
The rule is executed when the virtual switch "Licht Hell" ("Light Bright") is moved either into the ON or into the OFF position either by another rule or manually. It then checks if the virtual switch has been moved into the ON position.
In this case a "HTTP request" action is executed. This action sending a command to the bridge of the Philips Hue system and switches a light on:
The URL consists of the IP address of the Philips Hue bridge and the username used to control the bridge. You can finde more information here. The Hue system is pretty powerful and high quality. It can also be controlled very easily by "HTTP request" actions. The light is identified by its number ID in the URL field. The state the light should move into is defined in the Body field. Here the light is switched on, set to maximal brightness, set to a particular color defined by its hue value and set to a particular saturation.
If the virtual switch has been moved into the OFF position another "HTTP request" action is executed which switches the light off. In order to do this the "bri", "hue" and "sat" lines in the above body field have to be removed and "true" has to be replaced by "false".
Notes:
Rule for switching lighting on or off (Philips Hue)
Purpose:
Another virtual switch based rule for switching lighting on or off. In this example the Philips Hue system is used.
Requirements:
Screenshot:
Explanation:
The rule is executed when the virtual switch "Licht Hell" ("Light Bright") is moved either into the ON or into the OFF position either by another rule or manually. It then checks if the virtual switch has been moved into the ON position.
In this case a "HTTP request" action is executed. This action sending a command to the bridge of the Philips Hue system and switches a light on:
The URL consists of the IP address of the Philips Hue bridge and the username used to control the bridge. You can finde more information here. The Hue system is pretty powerful and high quality. It can also be controlled very easily by "HTTP request" actions. The light is identified by its number ID in the URL field. The state the light should move into is defined in the Body field. Here the light is switched on, set to maximal brightness, set to a particular color defined by its hue value and set to a particular saturation.
If the virtual switch has been moved into the OFF position another "HTTP request" action is executed which switches the light off. In order to do this the "bri", "hue" and "sat" lines in the above body field have to be removed and "true" has to be replaced by "false".
Notes:
Nice one guys
Nice one guys
This is a nice idea!
maby zipato can make a topic whit this.
This is a nice idea!
maby zipato can make a topic whit this.
And by duplicating the body you can switch on/off multiple hue bulbs I guess, right?
And by duplicating the body you can switch on/off multiple hue bulbs I guess, right?
I recommend the POSTMAN app (can be found in the Chrome web store) for testing your REST API calls to systems like the Hue Bridge.
I recommend the POSTMAN app (can be found in the Chrome web store) for testing your REST API calls to systems like the Hue Bridge.
Why not organize this on the Wiki instead? Great idea, but having the rules "drown" in comments in the forum is not so good.
Why not organize this on the Wiki instead? Great idea, but having the rules "drown" in comments in the forum is not so good.
I have a rule that turns my washer in to a smart device :)
When the machine starts i receive a push message and the RGB light tuns on if the machine is done i receive " washer ready" and the light turns to blue.
I have a rule that turns my washer in to a smart device :)
When the machine starts i receive a push message and the RGB light tuns on if the machine is done i receive " washer ready" and the light turns to blue.
Sensor: Fibaro Motion Sensor
Actuator: Zipato RGBW Bulb
Purpose of the rule: Set RGBW bulb luminosity to 100% if the motion sensor has detected motion and the luminosity in the room is less than 50 lux, also this rule will only turn on the light if the bulb is completely off. This is so if you entered the room and then you activated an scene, lets say, you dim the light to 50% this rule wont override the luminosity set by the scene.
Sensor: Fibaro Motion Sensor
Actuator: Zipato RGBW Bulb
Purpose of the rule: Set RGBW bulb luminosity to 100% if the motion sensor has detected motion and the luminosity in the room is less than 50 lux, also this rule will only turn on the light if the bulb is completely off. This is so if you entered the room and then you activated an scene, lets say, you dim the light to 50% this rule wont override the luminosity set by the scene.
Hi Guys. Found this veeeery usefull. I am a newbie to the zipato rules, and I am trying to establish a rule with is set off by double(or triple)pressing on, with a Nexa LWST-605. Any pointers to get me going in the right direction?
Hi Guys. Found this veeeery usefull. I am a newbie to the zipato rules, and I am trying to establish a rule with is set off by double(or triple)pressing on, with a Nexa LWST-605. Any pointers to get me going in the right direction?
I´m not sure if this is what you are looking for: I use it as an SOS Counter to send an emergency mail if my mother presses one button of the remote three times. Perhaps useful as a first approach (I´m not quite sure if Increment is part of standard package. If not, you need Pro-Features or you have to rewrite it with a decrement. Increment or decrement is part of pro-features)
I´m not sure if this is what you are looking for: I use it as an SOS Counter to send an emergency mail if my mother presses one button of the remote three times. Perhaps useful as a first approach (I´m not quite sure if Increment is part of standard package. If not, you need Pro-Features or you have to rewrite it with a decrement. Increment or decrement is part of pro-features)
Hi Klaus. Thanks for responding. I will give it a go and get back to you.
Hi Klaus. Thanks for responding. I will give it a go and get back to you.
here is a rule of a virtual meter I have been using with IFTTT, Alexa and the Maker channel. This may help someone who is looking to use alexa or google assistant but not with the pre configured voice settings. This will require users to say "Alexa/Echo/Computer(new), trigger, ........whatever you want to say......."
Or if you have the Google Home, use Google Assistant. This is actually better and faster and allows you to custom up to 3 different ways of saying a command, and its response. And you dont need "trigger" But you do have to say "hey google"
here is a rule of a virtual meter I have been using with IFTTT, Alexa and the Maker channel. This may help someone who is looking to use alexa or google assistant but not with the pre configured voice settings. This will require users to say "Alexa/Echo/Computer(new), trigger, ........whatever you want to say......."
Or if you have the Google Home, use Google Assistant. This is actually better and faster and allows you to custom up to 3 different ways of saying a command, and its response. And you dont need "trigger" But you do have to say "hey google"
Good Morning!!
I want to make a level system in a water box, using Four Icos Mini Buoys and two switch zipato with two inputs and two outputs is it possible to use in my rule some virtual device shows the percentage status of the box, @apoio zipato would help me get started or any tips
Good Morning!!
I want to make a level system in a water box, using Four Icos Mini Buoys and two switch zipato with two inputs and two outputs is it possible to use in my rule some virtual device shows the percentage status of the box, @apoio zipato would help me get started or any tips
Hi Everyone. Any of you that has tried to make a rule where Zipato needs to "sense" a push and hold of a button/lightswitch?
Hi Everyone. Any of you that has tried to make a rule where Zipato needs to "sense" a push and hold of a button/lightswitch?
I have an "Indoor IP Camera Zipato" Some time ago she recorded a short video and sent it to my e-mail, I think it's cool!, but this happened by accident, In the rule that camera is included Its function and when the alarm is violated capture some photos and send them to the email, Instead of the photos he recorded a video i found very interesting. I already asked questions for the "@support zipato"and said that it is not possible If it is not possible, then why did my "Indoor IP Camera Zipato" record and send the video via email! I really want to do this, does anyone know or have ever done anything like it?
I have an "Indoor IP Camera Zipato" Some time ago she recorded a short video and sent it to my e-mail, I think it's cool!, but this happened by accident, In the rule that camera is included Its function and when the alarm is violated capture some photos and send them to the email, Instead of the photos he recorded a video i found very interesting. I already asked questions for the "@support zipato"and said that it is not possible If it is not possible, then why did my "Indoor IP Camera Zipato" record and send the video via email! I really want to do this, does anyone know or have ever done anything like it?
Hi all,
I would like to have a rule to give me the max and min temperature or humidity of a sensor for a period of time. Any of you have something similar?
Hi all,
I would like to have a rule to give me the max and min temperature or humidity of a sensor for a period of time. Any of you have something similar?
Another approch for sending a message when the washingmachine is finished.
3 minutes aftere the variable wasmachine (=washingmachine) the message will be send.
Another approch for sending a message when the washingmachine is finished.
3 minutes aftere the variable wasmachine (=washingmachine) the message will be send.
Reply URL
I would be inclided to insert a Join command after the When block to stop executing the washing mashine rule in multiple instances. Otherwise nice rule
I would be inclided to insert a Join command after the When block to stop executing the washing mashine rule in multiple instances. Otherwise nice rule
Replies have been locked on this page!