Rules UI - Almond+ 2014

From SecuriWiki
Revision as of 08:32, 15 December 2014 by Lars (Talk | contribs)

Jump to: navigation, search

As of firmware R069bk BETA, Rules for home automation was included. The following section will help explain how to use the Rules UI and it includes examples of a couple of simple rules.

Getting started

Once you've updated to the new firmware, you might have to do a hard refresh to get the rules tab to load properly. What you should see is in the below screenshot.

Rules main.png

To create your first rule, simply click on the magic wand (Click to add a new rule). You should now see the screen below.

Rules 1.png

IF

The IF part of the rule starts automatically and it's known as a Trigger. The Trigger is the condition that has to be met before a rule would start.

Trigger

The first thing you want to do is to pick one or more triggers. In this first example, we're going to pick a door/window sensors and when it's opened, something should happen.

Rules 2.png

Simply click on Open, followed by the tick mark in the top right hand side corner to save the trigger part of the rule.

Rules 3.png
Rules 4.png

You should now see the following screen, which means that you've successfully set up the trigger part of the rule.

Rules 5.png

THEN

The second part to a rule is THEN, i.e. what will happen once the IF condition(s) is/are meet. This will cause something to happen at the end.

Wait

The Rules UI has an option to put in a delay before something should be triggered. The Wait time can be set to seconds or minutes and the maximum delay is 5 minutes.

Rules 7.png

In this case we've put in a Wait of 5 seconds.

Rules 8.png

Action

Now it's time to pick an "action" i.e. what's going to happen once the trigger is triggered. In this cease, we're turning on a binary switch. Simply click on "ON" icon for the binary switch and the action will be saved.

Rules 9.png

Once the action has been saved, you should see it appear under THEN. You can add multiple actions to the same "THEN" statement.

Rules 10.png

Saving a rule

Now it's time to save the rule. Simply type in the name you want for the rule in the "Enter Rule Name" field provided at the top and bottom of the rules UI. We'd suggest using a descriptive rule name, so you know what the rule actually does. Now click on Save Rule.

Rules 11.png

Verifying a rule

If the rule was successfully created, you should now see it as a rule in the Rules tab in the main NutsOS UI.

Rules 12.png

You can click on the small spanner symbol to see the triggers and actions performed by the rule. Note that currently this is only displaying true/false rather than say open/closed or on/off, but this will be addressed in a future firmware update.

Rules 13.png

Deleting a rule

Clicking on the small cross above the spanner will delete the rule.

Rules 12.png