Graphic script editor allows you to program the behavior of the system without knowledge of programming languages. Scripts are created as block-diagram.

The block-diagram mechanism does not cover all of the scripting tasks. If you need a complex branched script, you need to use the classic version of writing the script in the form of code.
Read more about the scenarios here
The command system is presented here

To create a new scene in the form of a block-diagram:

  • Press the “+” button
  • Select “New Block Diagram”

In the properties window of the script fill in the following fields:

  • Scene ID – Script identifier.
  • Name – Script name
  • Comment – Script commentary

Select the line with the script, open the bottom window and select “Block Diagram”:

To make it easier to work with the block-diagram, open it to full screen.

Note on working with block diagrams:
Adding elements to the block diagram is done with the “+” button
Deleting elements and lines – using the “-” button or the Backspace key
When holding the Shift key, you can select multiple elements or lines.
While holding the Ctrl key on the lines you can put points.

Script creation

To add elements to the block diagram of the script, click the “+” button. A window opens with the elements:


Drag the necessary elements in the block-diagram field:

And connect the dots in accordance with the logic of the script:

Next, you need to determine the properties of the elements of the block diagram. Each element has its own set of properties.

Double click on the element of the block diagram. The properties window for this item opens:

The result was a script. As shown in the figure above: “If water leaks, close the water supply valve”.

Based on the block diagram, a script is generated. You can see it:

Note: In this window, editing the script is not allowed. 

Device modes in scripts

Devices in the block diagram are displayed in two colors depending on the mode:

The device is displayed in red if it is in “Trigger” mode, and in yellow if in “State” mode.
What does this mean? In the example above, this is well shown.

The script starts when the motion sensor triggers (SMOTION_1_1). Next, check the status of the light sensor (SDARKNESS1). Further, by the condition of “AND” the lamp turns on (LAMP_1_1).

The same thing we see in the script code:

Template lines in logs and messages

Sometimes in messages or logs it is necessary to use template lines:

Message line format:
Attention. Water leak!

You can use the following parameters:

Description of parameters is given here: command system

Close Menu