The Vera app for Ezlo hubs (Ezlo Atom and Ezlo PlugHub) comes now with the logic operators to improve the scene creation flow:
- In scene creation you can now use AND, OR, NOT logical operators, as well as the ability to create groups with them to define in the triggers the logic that best fits your needs.
- With scenes you can now set the house mode to home/ away/ night/ vacation when certain triggers are met.
This guide will teach you how to:
- create a group of triggers
- how to add groups, devices and schedule triggers in the same scene
- how the logic operators behave
- how to add an action with a house mode change
1. How to select the logic relation (OR, AND) between the conditions I set for a scene
- You open the mobile apps (iOS or Android) and tap on "+" to create a scene.
2. How to create groups with your triggers
- You tap on Add group to start creating your first group of triggers
- You will have to name the group - by default is going to be named Group 1, Group 2 etc.
- You will choose the triggers you want to add in the group and the relation between them OR or AND. For example you can select a Device as the first trigger: whenever sensor is armed and tripped.
- You tap DONE when you finish with the group and the previous screen is shown, now with the Group as a trigger
- You will see the group name, what relation is applied inside the group (AND or OR) and a summary of the triggers added inside.
3. How to finalize the group creation - add at least 2 triggers
In order to create the group, you have to add at least 2 triggers in it. To do this tap on the plus (+) button on the above screen and select the second trigger (device or schedule).
For example, the second trigger can be again a device - when switch is turned off.
After the second trigger is selected, tap on Done to add it in group. You will see a summary with the triggers you added in the group and the logical operator used.
To change the logical operator tap on the dropdown menu where you will see the logical operators that you can choose from by tapping on it:
- Any trigger is met - means OR and this is the default choice
- Triggers are met at the same time - means AND
After you select between OR and AND you tap on Done and you will see the summary for the group you added.
4. How to add other triggers in the same scene where you have a group
You can add a second trigger in the same scene - it can be either another group or a simple trigger - device or schedule. In the example below tap on the plus button and add a simple schedule trigger.
You can also select between OR and AND for the 2 triggers you have - the schedule trigger OR/AND the group trigger. By default the OR option is displayed.
As you see in the above example, the system supports nested triggers like: A or (B or C).
5. How the logic operators behave:
- AND - when all conditions are met the result is true, otherwise is false.
- OR - if at least one condition is met, the result is true.
- NOT - if the condition is false, the result is true and vice-versa.
IMPORTANT! The NOT applies only to a condition or a group, it cannot be used to establish the relationship between conditions → you still must select an AND or a OR.
- You can apply a NOT for any trigger, including if it is inside a group
- iOS - swipe to left
- Android - enable the toggle
You are not able to select more than 10 conditions (1 conditions means 1 trigger) in one scene, no matter where the triggers are added (groups or outside the group). The plus button to add a new trigger is disabled when you reach 10 triggers.
7. How to add an action with a house mode change
After you added the trigger(s) you can start adding actions - what do you want to happen when the trigger conditions are met.
You will see 2 options: Devices and Mode.
You can select to change your devices behavior and you can also select to change the house mode as you desire. You can only select one of the 4 modes in each action.
But you can always add a delay and select any other mode in that delay.
8. How to add an action with a device change
After you already added the house mode action you can only see the Device option. Here you can add as many devices as you desire.
You can now continue with saving the scene.
- When you will select Immediately set mode Home/Away/Night/Vacation, when the scene runs the house mode will be changed after the preset timer ( if a house mode has 30 seconds set to wait until it becomes active, the same time will be applied when is applied by a scene;
- Only one house mode can be set as an action in a scene. Once the user selected a house mode as an action if he wants to add another action, he will see just Devices as an option.