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
To find out if someone is at home or not and to do the appropriate stuff according to the result.
- 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  or no movement  inside the home)
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".
- 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.