- iRidi Studio 2019
- Control and logic tools for i3 pro and iRidi Server
Control and logic tools
Equipment control and logic are available in both i3 pro and iRidi Server, since both applications can communicate directly with equipment. However, iRidi Server has tools that are not available in i3 pro.
Control and logic tools include:
-
Devices . The list of devices and services that i3 pro or iRidi Server connects to for control and data acquisition (not all devices may be shown here, since devices can also be created through JavaScript)
-
Programming (i3 pro only). Actions performed by a graphic object in i3 pro when it is pressed. Items can control the internal logic of the visualization interface and send/display data received from equipment
-
JS . The JavaScript editor, available for i3 pro or iRidi Server. When developing scripts, consider the environment - server or visualization interface - since it determines the available methods and ways to access data.
-
Project tokens . Variables that can store user data between launches of i3 pro or iRidi Server.
-
System tokens . Variables that provide information about the device running i3 pro or iRidi Server (time, OS type, network and screen settings, and so on)
-
Schedule (iRidi Server only). A schedule of events with configurable execution times and repetition intervals
-
Routines (iRidi Server only). Routines (command sequences and their triggering conditions) that can be run on a schedule
-
GC cloud . An online database of infrared commands for controlling audio/video equipment via IR. Commands are stored in the format used by equipment from Global Cache
-
iRidi IR Base - an IR command database for iRidi AV equipment.
-
ETS import . Import group addresses from an ETS5 project (*.knxproj).
DRIVERS. Devices and services
A driver is a subprogram in i3 pro or iRidi Server that communicates with external resources (devices and services). The data format and addressing system depend on the transmission medium. The driver forms and addresses data packets and processes incoming information.
You can create a driver:
- by importing a file containing your equipment configuration, or by scanning the local network. The following are supported (see iRidi Studio for the current list):
- DuoTecno - network scanning
- HDL-BUS Pro - network scanning
- KNX (ETS, *.knxproj) - file import; creates a list of IP interfaces and group addresses
- Modbus (*.csv) - imports a file in the internal iRidi format; see the Modbus documentation. Creates a list of registers
- Crestron (Simpl, *.smw) - file import; creates a list of joins
- iRidi script (iRidi Studio, *.js) - file import; adds scripts from one project to another
- iRidi project (iRidi Studio, *.irpz, *.sirpz) - file import; adds drivers from one project to another
- Domintell - network scanning
- Velbus - network scanning
- AMX (TPDesign, *.TP4, *.TP5) - not shown in driver import, but a TP4 project can be opened in Studio just like *.irpz; the *.TP4 file is automatically converted to the i3 pro format
- from the database , which contains drivers of different types that you can use in your project. Commands and feedbacks must be created manually
- from JavaScript . In this case, it is not shown in the device tree, but works when the application runs, in the way defined by the developer. See JS API

PROGRAMMING. Actions on pressing
Pages and popups in the visualization interface contain graphic items that perform actions when pressed or change their appearance when data is received from equipment. An item's behavior depends on its settings; all commands it sends are shown on the Programming tab.

Macro editor commands for interacting with drivers and project variables:
- Send to driver (sending values to driver commands)
- Send number. Send a constant - a decimal number (DEC)
- Send text. Send a constant - a data string (ASCII)
- Send data. Send a constant - binary data (BIN)
- Send tag. Send data obtained from project variables (Value, coordinates, dimensions, and so on - variable values determined by object properties)
- Send to project token (sending data to variables - item properties, drivers and project tokens)
- Send number to tag. Write a constant (a DEC number) to a variable
- Send text to tag. Write a constant (an ASCII string) to a variable
- Send tag to tag. Write one variable to another (for example, an item property to a project token)
To send a command when an item is pressed, drag the driver command/token onto the item. To display driver feedback on an item, drag the driver feedback/token onto the item.


You can also link a driver command/feedback/token to a graphic item by dragging it into the Programming window. To do this:
- Create a graphic item (for example, a button);
- Select the required graphic item with the cursor;
- Drag the command/feedback/token into the required tab in the Programming window:
- Relations - assign the token/driver feedback value to the item;
- Press - send commands when the button is touched;
- Release - send commands when the button is released;
- Hold - repeatedly send commands while the item is held;
- End of hold - send commands once when a button that was held is released;
- Move - send commands when a slider or joystick is moved;
- Select - select an entry or subentry in a List item (a scripted list). Access is through List API;
- Enter - press the Enter key in an Edit Box item;
- Gestures - gestures (swipes). Only a page handles a gesture (you cannot configure a gesture for a popup or a region on an item). A gesture can start on the page itself, a graphic item or a popup, but is passed to the parent page, triggering the commands configured for that page. The exceptions are Level, Joystic, List and Static List items, which handle the Move event instead of gestures.

- For details, see sending commands and displaying data
- For details, see Press, Release and other events in Programming
Adaptive Programming mode
You can enable Adaptation of "Programming" tab (beta) in the Studio settings window

The tab in adaptive mode
Enabling Adaptation of "Programming" tab (beta) gives the Programming window the following properties:
- Color markers appear:

- Driver control channel - cyan
- Driver feedback channel - green
- Graphic property - yellow
- Tokens, system tokens and other commands - white
- Script function - orange
- The information format in each line changes

- Object category indicators are removed from tags: UI, Driver, Token, Tag, Command
- Relations are displayed in this order: Source > Receiver.
- Additional information is shown in a small font below the names of unselected items, control channels, feedback channels and tags:
- for control and feedback channels - the driver name, or the network and subdevice names (HDL Buspro Network)
- for items - the full path to the item (Popup 1.Item 3.State 2),
- for selected items referencing a property of one of their states - the item state (State 1 / State 2)
- for tokens - the type (Tokens / System / HDL Buspro Network).
- Object and action indicators are removed from macros:
- value from an object
- text
- number
- data
- sound
![]()
- If a relation or macro uses a property of the selected graphic object, only the property remains in the reference, without a reference to the item:
-
For a relation to another graphic item, that item's icon is displayed alongside it
-
Hovering over a macro/relation line displays a tooltip with the full name and location of the object.

JS. JavaScript programming (iRidi script)
Scripts are available for i3 pro and iRidi Server. JavaScript lets you program interface and equipment control logic. The engine is ECMAScript 3; methods from more recent editions are not available.
When developing scripts, consider the environment - server or visualization interface - since it determines the available methods and ways to access data. Scripts may therefore need changes when moved between the interface and server.
For many tasks that can only be performed with scripts, there are ready-made solutions that you can use without programming skills .

| Icon | Description |
|---|---|
| Show the script tree | |
| New script: create a script file Add script from file (*.js) | |
| Delete the script file selected in the list | |
| Move up/move down | |
| Set a password for viewing and editing the script file (save and reopen the project for the password to take effect) | |
| Apply changes made to the script | |
Save to a file *.js | |
| Open in an external editor * Encrypted scripts cannot be opened in an external editor | |
| Undo/redo a change | |
| Insert a color value in the editor | |
| Show/hide help on IR methods and events. | |
| Search for a word or string (Ctrl+F) | |
| Enable the script in the client | |
![]() | Disable the script in the client (disabled scripts have a gray icon) |
| Enter the password | |
| Reset the password (leave the "Set new password" field empty to remove it) |
Scripts are a powerful tool for implementing logic. To get started with scripts:
| Option | Value |
|---|---|
| Explore the ready-made solutions and support forum | your task may already have a solution |
| Take training | at iRidi Academy on the iRidi script courses |
| Use the guide | to JavaScript in iRidi |
| Use the reference | for i3 pro and iRidi Server methods, properties and events |
PROJECT TOKENS. Project tokens
Project tokens are variables for storing user data that is used repeatedly. You can write a number or string to a token, and the value is retained between launches of i3 pro or iRidi Server.
For example, a token can store passwords, settings and other values that the user changes during operation and that need to be retained within a session and between launches.

In the token settings, you can specify its initial value - the default value.
In the project settings, select Remember the state of project tokens if you need to retain previous values each time the application starts. Otherwise, each time the project starts, it displays the values specified in Default value.

SYSTEM TOKENS. System tokens
System tokens are variables that provide information about the device running i3 pro. Most system tokens are read-only, but some can also be controlled. System token data can be used in the interface (for example, to display the date and time) and in the visualization project's logic.

Accessing system tokens from JavaScript >>
System tokens that can be controlled, rather than only read:
- Update . Local project updates through iRidi transfer: 0 - disabled, 1 - enabled.
- Display.Bright . Screen brightness from 0 to 100%.
- Device.Vibro . Start a short vibration. Write the vibration duration in seconds to the token. For iOS, the value is always 1; other values are not available.
- Screensaver.Enable . Control screensaver operation. 0 - disable; 60000 - enable after 1 minute of inactivity (the value is in ms). Select the screensaver page in the project settings beforehand.
- Screensaver.Show . Control screensaver display: 0 - hide, 1 - show.
- Application. Clear Project Tokens . Reset all project token values to their defaults. To activate the token, send it any value (1...n). If a project token has no default value, it is not cleared.
SCHEDULERS. Event schedules
Event scheduling is available only on iRidi Server . It contains events that can trigger at a specified time, once or at intervals from 1 day to several years.
Each event has a start and an end. Actions can be performed both when the event starts and when it ends. The actions are configured on the Routines tab.

Configure the astronomical timer to use sunrise and sunset events: in the project settings (Setting > Location), specify the latitude and longitude of the location where iRidi Server will run.

i3 pro can manage schedules running on iRidi Server. Currently, schedules are managed using 2 types: Advanced and Simple.
Advanced - advanced (main) schedules. Advanced schedules let you preconfigure an event's start and end times and days, as well as its repetition interval, in Studio. Advanced schedules also work with the TimeTable item.
Simple - simplified schedules. Simplified schedules have fewer settings but let you work with editable routines from a running Panel Project.
- Simplified schedules let you configure only the event's start date and time. To associate an action with the end of an event, create a separate event (Event).
- Editable routine configuration is described in detail here.
Instructions: configuring and using schedules >>>
ROUTINES. Routines
Routines are available only on iRidi Server . A Routine is an action sequence described in THEN that is executed on the event specified in WHEN , subject to the conditions specified in BUT ONLY IF .
Event types for running schedules (WHEN):
- receiving a value from equipment: the value is compared for equality with the value specified in the condition
- a scheduled event triggering in SCHEDULER - the routine is executed when the scheduled event starts or ends

Instructions: configuring and using routines >>>
GC CLOUD. IR commands for Global Cache
GC CLOUD is a large, continually growing online database of infrared commands for controlling audio/video equipment via IR. Commands are stored in the format used by equipment from Global Cache. If you use Global Cache IP2IR converters (iTach, GC-100-06, GC-100-12), you can therefore use commands from the database instead of finding and configuring them yourself.
For the commands to work correctly, use the dedicated Global Cache driver from the iRidi database. You must specify the model of the Global Cache device in the driver settings:

After configuring the driver, you can drag IR commands from GC CLOUD onto its IR outputs (IR Output), as folders or individually. Enter the first letter of the manufacturer name in Brands to move quickly through the alphabetical list, then select the most suitable command set in Device type and Model:

iRidi IR Base. IR commands for AV
iRidi IR Base is a large online database of infrared commands for controlling audio/video equipment. Commands are stored in the Pronto Hex format used by iRidi AV systems equipment (ProAV Processor, I-PX-IR-3, AV Remote Control). This lets you use ready-made commands from the database without spending time manually teaching devices or searching for commands.

For the commands to work correctly, use dedicated drivers for iRidi ProAV equipment from the iRidi driver database, with support for IR interfaces.

After adding the driver, you can drag IR commands from iRidi IR Base onto its IR outputs, as entire sets or individually.
To find the required commands quickly, start entering the first letter of the brand in Brands, then select the appropriate model in Models:


ETS import. Importing group addresses from ETS
Importing protected ETS6 projects is not supported!
iRidi connects to the KNX bus and can communicate with bus devices by setting and reading group address values. You can import the group address list from an ETS5 project (*.knxproj) and add it to your iRidi project, either in full or in part. Importing additional group addresses and updating their settings are supported. Importing KNX IP BAOS datapoints is supported.
To import group addresses from an ETS5 project (*.knxproj):
- Start iRidi Studio, create a project and open the side panels ETS import and Driver tree :

- In ETS import, click Import and select a file with the *.knxproj extension:

- Specify how to import the data: as a new file or merged with other ETS projects:
- Select the devices required to create a driver based on the ETS project:

Import settings:
-
"Smart import": analyze object flags to create commands and feedbacks and configure polling;
-
Use the structure of Main and Middle groups to create folders with addresses automatically.
Analyzing group address flags combines the flags of all communication objects linked to the group address. Their presence determines whether a command and feedback are added.
- Specify the settings for synchronizing the ETS file with the device pane:
Synchronization settings:
- Add new group addresses from ETS file - add new group addresses from the ETS file.
Name format for added devices:
-
Group addresses:
- Address and name - address and name,
- Only name - name only,
- Only address - address only.
-
BAOS datapoints:
-
- Name from BAOS datapoint table - name from the BAOS datapoint table,
-
- Name of linked group address - name of the linked group address.
- You can return to the synchronization settings by clicking the settings button
in the import pane.
- When import is complete, new devices appear in the device tree, and the import window displays the ETS project database:


The link between the driver and ETS project is shown in Devices :
- Source ETS Project - the ETS project;
- Source ETS Device - the device type.
You can change or remove the link by clearing these fields.
-
Links are 1:1, so each driver is linked to only one device in the database. If driver No.2 is assigned a device that belonged to driver No.1, driver No.1 loses its link. Links can be restored.
-
Use Sync
to update the driver's addresses according to the synchronization settings.
-
To update the address list after changing the ETS project, export the file from ETS and import it again; the data is merged.
New addresses added from the ETS file are marked with [new].
- The ETS project file does not store the KNX IP interface address. Make sure you specify the current IP address of the KNX IP interface:

ETS import pane tools

- Import - add a new ETS file to the import database, or update the contents of an existing file. ETS5 files (*.knxproj) are supported.
- Synchronization settings - settings for synchronizing group address data between the import pane and driver (see the settings in step 5 of the import instructions).
- Sync - synchronize the ETS project file with the corresponding driver in the pane. To view synchronization settings, click button (3). You can synchronize by dragging the file from the import pane onto the driver.
- Group address sorting method. Sorting as in ETS is supported: "Group addresses", "Devices", "Building".
- The Name field displays group addresses, organized into folders according to the selected sorting method (4). Names consist of three parts: group address, name (as in ETS), and combined flags of the linked group objects. Only the address name is used to name the driver's command and feedback. Flags:
- Communication - neither a command nor a feedback is created without this flag;
- Write - a command is added;
- Transmit - a feedback is added. "Read on start" is disabled if the Read flag is absent;
- Read - enables "Read on start" in the settings of the created feedback;
- Update - not analyzed.
- The Type field displays the group address data subtype as specified in ETS. If the address is not linked to group objects, it is not added to the project, and Type is Unknown.
- The status field shows [new] for addresses added when an ETS file is reimported. It shows [sync] for addresses whose checkboxes have changed on the ETS import tab but have not yet been changed in the driver, or when the ETS project database is updated.
- Use a checkbox to add a command or feedback that has not been created in the driver, or to delete one that has already been added. The arrow color (9) does not change. You must then synchronize the devices (3).
- "Smart import" marks commands and feedbacks it considers necessary to add in color, and those not being added in gray.
Right-click menu
Right-clicking a driver on the ETS import tab opens a context menu .

The menu provides quick access to:
- Sync - synchronize with the driver;
- Remove connection with the driver - remove the link to the driver;
- Return default sync settings - clear user settings and restore the initial selection (applies to the entire database).
- If there is no link, synchronization prompts you to create a new driver. Otherwise, the linked driver is selected by default.
Commands & Feedbacks
The import result contains:
- KNX Router (Interface) - a driver containing the group address list for the bus.
- Commands and Feedbacks - commands and feedback channels for controlling group addresses. Commands are writable group addresses; feedback channels are readable group addresses.
- To find an entry more quickly in the device tree (Devices window), open ETS import and right-click the required address. A menu opens where you can choose to find the command or feedback channel. The selected command/channel is highlighted in Devices.

Commands and feedback channels must be linked to the project's graphic items to control equipment:
- Link a command to a graphic item, specifying the value to send to the bus address when the item is pressed.
- Link a feedback channel to a graphic item to display the group address state.
To link a command or channel to a graphic item, use drag&drop - dragging an object onto another.
- Detailed information on sending commands from the i3 pro interface and displaying data is provided here.
