Interface of Rule generator

Rule Generator is a visual programming tool designed to facilitate the process of creating automation rules using blocks. Each block represents a specific code element, and by combining them you can create automation rules without the need to enter text code.
Access to the service can be obtained via the link https://i3-ast-generator.web.appFor authorization, the login and password of the i3 Home application are used. If you do not have an account yet, create one in the i3 Home application.

The interface includes:● toolbar;● block panel;● workspace;● code panel;

1

Toolbar

The toolbar contains the necessary buttons and options for manipulating the project, namely:
● Save the project to a local file for further use;
● Download the project from a local file;
● Enable/disable code bar display;
● Information;
● Leave the project;

Illustration

2

Block panel

The blocks panel contains all the blocks that are available for use; the blocks are divided into categories by functionality. For example, mathematical operations, comparison operations, read and write operations. To use blocks, you need to drag them to the workspace.

Illustration

3

Workspace

The workspace is where the user composes an automation rule using blocks. Allows you to perform drag-and-drop operations and connect blocks. Blocks can be placed on the working field - by dragging, it is allowed to insert several blocks. A block can be deleted by selecting it and pressing delete, blocks can be copied with the key combination Ctrl +C, Ctrl +V
Each block has a context menu that can be called up by pressing the right key. From this menu, you can:
copy block;
add a comment;
collapse/expand block;
disable/enable block;
delete block.

Illustration

4

Code panel

Displays the code of the rule that can be saved on the controller for all blocks placed on the workspace, for convenience it is recommended to give names to the rules, the code of the rule is displayed as a base64-encoded rule and an AST rule if the corresponding switch is turned on.

Illustration

Building automation rules:

Any rule begins with the RULE block located in the MAIN tab. In order to save the rule on the controller, you need to do the following:
● Drag the necessary blocks to the workspace and specify the necessary parameters;
● Display the code panel and copy the data line
● In the i3 Home application, go to the automation tab and click "+", select "Code editor", toggle the switch to Base64 and insert the rule
● Specify the name of the rule and click save

Didn’t find the answer to your question?

You can contact the technical support chatbot.Found a mistake on the site? Help us fix it!