Smart Scenario

How to configure the Smart Scenario component in Ilevia Manager: execution component, conditions, delays and loop, with a complete example.


INTRODUCTION

Smart Scenario performs a series of actions on multiple components, which can depend on a condition (for example, a sensor value). This guide explains how to set up the Smart Scenario component in the configuration software Ilevia Manager.

Component properties

Smart Scenario component properties.

Execution component: Connect a Switch, a Lock, a Colored info or a Text info to run the Smart Scenario.

Loop: When enabled, this option allows the Smart Scenario to run in loop mode.

Component configuration: Opens the component configuration screen for the components that will be triggered when the Smart Scenario runs.

Configuration screen properties

Smart Scenario component wizard properties within the Ilevia Ilevia Manager configuration software.
  1. Component: Select the components that will be triggered when the Smart Scenario runs;

  2. Value: Select the exact value to which the component will be set when the Smart Scenario runs;

  3. Condition component: Select the component whose value is checked by the Smart Scenario before performing the action;

  4. Condition: Choose the comparison operator to apply to the condition component value;

  5. Value: This is the value that the condition component must have for the action to be performed when the Smart Scenario is started;

  6. Delay (s): Set a delay, in seconds, between Smart Scenario operations;

  7. Copy row: This button duplicates the current row;

  8. Delete row: This button will delete the selected row;

  9. Add component: This button adds a new row.

Component configuration

In this example, the Smart Scenario component, once executed, opens the shutters and turns on some lights, but only if the brightness detected by the Lux sensor meets the configured condition.

Step 1:

Open the Ilevia Manager software. Go to the Components section.

Opening the Ilevia Manager configuration software

Step 2:

1. Open the “Scenario” section from the Components library of Ilevia Manager; 2. add the Smart Scenario component to the project.

Adding the Smart Scenario component to the Ilevia Manager project

Step 3:

Add 3 Shutter components, 2 Switch components and 1 Adjustable value to the project.

Adding the components required to build the Smart Scenario component in the Ilevia Ilevia Manager configuration software.

Step 4:

Open the Smart Scenario component configuration screen by clicking the “Configuration wizard” button in the component properties.

Accessing the Smart Scenario component configuration screen.

Step 5:

1. Click Add component to create a new row; 2. select a Shutter component that will be triggered by the Smart Scenario once started and select the value to which it will be set. Repeat the procedure for the other shutters.

Configuring the components that make up the Smart Scenario execution.

Step 6:

1. Add a new row and select the first Switch component from the Component drop-down menu, then set 1 as the value in the “Value” parameter; 2. add the Adjustable value component: this component will simulate a light sensor; 3. set the condition type (in our case less than or equal to).

Adding the lighting component in the Smart Scenario wizard

Step 7:

Add a new Switch and select it as the execution component of the Smart Scenario.

Adding and setting the Smart Scenario execution component

Step 8:

Go to the user interface editor, add the components and finally upload the project to the server.

Adding Smart Scenario components within the user interface and uploading the project to the server.

Result

Step 9:

This is the visual result of the Smart Scenario component inside the Ilevia Control app (classic style).

Smart Scenario components with true condition

Representation of Smart Scenario execution with correct condition parameters

(Img. 1)

Smart Scenario components with false condition

Representation of Smart Scenario with incorrect condition.

(Img. 2)

As you can see from the images above, the first example shows the execution of the components once the Smart Scenario is started. In the image on the left (Img. 1), once the Smart Scenario has been executed, all components have been triggered because, in the case of the lights, the sensor value meets the condition specified in the settings. On the contrary, in the other image (Img. 2), lights 1 and 2 were not triggered because the Lux sensor value did not meet the set condition.

Click the link to download the example project and try it out.

Download the project here!

Last updated: