Trigger desired actions in ALSO IoT Platform using RULES

When you want to trigger an action depending on certain thresholds, use the Rule engine!

Introduction

The true value of IoT projects is realised not when the data is received on the cloud but when decisions are taken based on that data. These decisions can be as simple as notifying the correct people in case something is going wrong (or right), to as complex as controlling devices on the network based on signals received from other devices.

Herein, we introduce you to Earl, our next generation rule and automation engine which brings drag & drop simplicity to create rules and merge your business processes with your IoT projects. Nevertheless, you can still create customised rules for your convenience. 

 

ezgif-4-c1387e4e6bb3

A rules engine lets you automate work by defining actions that need to be taken in response to a set of triggers. For example, you could make it turn the lights on when you open the door, dispense cat food at predefined times, or notify you if your package is handled improperly in transport.
Note: to define rules, no code writing experience is needed. Our rule designer is a drag-and-drop environment that you can use to define the logic of any complexity.

How to create a Rule?

You can create a simple rule by following these steps:

  1. Go to the RULES tab in the ALSO IoT Platform 
  2. click on a + NEW RULE
  3. Drag one or more devices from the DEVICES to the TRIGGERS block
  4. Choose one or more Assets you want to operate with
  5. Drag one of the elements from the COMPONENTS to the ACTIONS block
    1. choose what you want to do with the chosen Asset (e.g. make a comparison)
    2. choose which action you want to perform in regards to the previous step (e.g. notify via web and email)
  6. Click on CREATE RULE

Of course, if the steps mentioned above are not enough to meet your needs, you can scroll a little bit down and to check out the rule example along with the video tutorial to show you much more of this powerful engine.

The Rule example

In the video tutorial below I’ll show you how you can create a simple rule in our Workplace+ Solution Accelerator offering, but also the a more advanced rule that triggers the desk occupancy with changing images. Simply said, already by looking on the pinboard, you’ll be aware if the desk is occupied or not. 
The device I use herein is the Desk Device placed under my desk. It has the update interval (wake-up from the sleep mode) about every 5 minutes. If anybody is sitting by the desk, the "Occupied” Pin will change from the green to the red colour (in the simpler example), and from the “Available” image to the “Occupied” one in a more complex example. 

PRO tip: to change images in the pinboard control, which is called “image enum”, you can simply use the imgur.com website where you can upload any picture and use the direct URL needed for this type of the control.

Rules

Get yourself more acquainted with our Rules 

We always strive to give you the best of our effort and outcomes to suit your (business) needs. therefore, if you want to know how to use the Rule engine in more details, here are some links to interesting articles within the Learning Centre:

Note: Do take a look on our webinar, recorded for the sake of introducing EARL broadly.

Use case: Microsoft Teams and/or Twitter

For more business oriented solutions, you can directly use the Rule engine to: