iRidi for Clipsal
Tools for creating interfaces to control Clipsal equipment
Documentation updated 01.01.2024
Attention: This driver is outdated; its functionality may work incorrectly or may not be supported.
training:
download:
Description
iRidi for Clipsal is a set of tools for creating a home or office control interface based on Clipsal equipment.
iRidi for Clipsal allows a control panel (iOS, Android, Windows, Mac) to connect to equipment directly through a CNI Ethernet interface or through the C-Gate application. When using a CNI Ethernet interface, Clipsal supports 1 connection (1 control panel at a time). When using C-Gate, the number of connections is configured in the application settings. The number of connections through a CNI Ethernet interface can be increased using iRidi Server.
Connection
Equipment configuration and settings required for iRidi to control Clipsal.
Connection methods for Clipsal
Different connection methods provide local and Internet access

- CNI Ethernet interface

-
C-Gate
-
A CNI Ethernet interface (Clipsal driver) provides a direct connection to C-Bus, but allows only one control panel to operate at a time
-
C-Gate (Clipsal Gate driver) requires software to be installed on a PC, but allows several control panels to operate simultaneously.
Both connection methods allow access to C-Bus over the Internet.
Adding a Clipsal driver to iRidi
Import the list of controllable devices from a C-Bus Toolkit *.xml file.
Create and configure a Clipsal control project in C-Bus Toolkit. Command names are generated in the format "Application_Group name > Lighting_Group 1"

The project file is located in the Clipsal software folder: Clipsal\C-Gate2\tag and has the .xml format

Select a connection method: Clipsal (CNI Ethernet interface) or Clipsal Gate (C-Gate)
When using Clipsal (CNI Ethernet interface), you can select only 1 Network
When using Clipsal Gate (C-Gate), the selection is limited to several Networks
Select the checkbox next to the driver to add it to the project. Click OK.
Clipsal driver settings:

- Log Level - logging level;
- Host - controller IP address;
- Port - TCP connection port (10001);
- Keep Alive - TCP connection check interval. If a Keep Alive request receives no response, the driver is forced into the disconnected state. This setting ensures that online status is displayed correctly when the client is disconnected abruptly or improperly. 0 disables the setting;

- Log Level - logging level;
- Host - controller IP address;
- Port - TCP connection port (20023);
- Parameters - case-sensitive project name in C-Bus Toolkit.
Commands & Feedbacks
Commands and Feedbacks are commands and feedback channels within the driver that control equipment. Commands are writable device parameters, and feedback channels are readable parameters.
A Clipsal command in iRidi Studio:

Clipsal
- Name - command name
- Unit Address - number of the module addressed by the command (Network/Units/Address in C-Bus Toolkit)
- Application - application from C-Bus Toolkit
- Application Number - application number from C-Bus Toolkit (when using a non-default application)
- Group - group address from C-Bus Toolkit
- Command - command sent to the group address
- Parameter - additional condition for the command (not used with all applications)
- ParamArg - parameter argument (not used with all applications)

Clipsal Gate
- Name - command name
- Unit Address - number of the module addressed by the command (Network/Units/Address in C-Bus Toolkit)
- Network ID - network number in the C-Bus Toolkit project
- Application - application from C-Bus Toolkit
- Application Number - application number from C-Bus Toolkit (when using a non-default application)
- Group - group address from C-Bus Toolkit
- Command - command sent to the group address
- Parameter - additional condition for the command (not used with all applications)
- ParamArg - parameter argument (not used with all applications)
Commands and feedback channels must be linked to the project's graphic items to control equipment:
- Link a command to a graphical item and specify the value to send to the register when the item is pressed
- Link a feedback channel to a graphical item to display the register state
To link a command or channel to a graphic item, use drag&drop - dragging an object onto another.
- To quickly create a Feedback with the same settings as a Command, right-click the Command and select "Create Feedback". You can create Feedbacks for several registers at once.
Configuring C-Gate
C-Gate allows connections only from IP addresses specified in its settings in advance. Add the control panel's IP address to the allowlist in the access.txt file in the Clipsal software directory: Clipsal\C-Gate2\config .
Each control panel must be specified on a separate line in the file:
interface 192.168.0.1 Program
Save the changes to the file and restart the C-Gate service from the Start menu:
Changing connection settings
You need to change connection parameters when you disconnect from the automation site's Wi-Fi network and start using 3G or another Wi-Fi network. For control to continue working, switch from the local IP address to the Internet router's public IP address.
Switching is not automatic; you need to press the connection mode selection button. For remote access, the automation system's control ports must be made public. To do this, configure Port Forwarding on the Internet router. A VPN can provide a secure connection.
-
Download the template (*.js) (right-click and save the target), then add it to the script editor using (+) Add Script from file
-
Configure the script parameters as shown in the example:
function Internal_1() {
IR.GetDevice("Clipsal").SetParameters({Host: "192.168.0.100", Port: 10001});
}
function External_1() {
IR.GetDevice("Clipsal").SetParameters({Host: "215.110.10.10", Port: 10001});
}
Copy the driver name from Project Device Panel; copy the parameter list exactly as shown in the example.
- Select the button that will switch between the Internal and External parameters. Open the macros editor for the Press event (Object Properties > Programming), select the Script call command, and double-click to add it. Select the name of the function the button will call:

Each button press now applies the corresponding connection settings.
Equipment control

To control equipment, configure Commands and Feedbacks. To send a command, drag it onto a graphical item and specify the Value to send. To display feedback, drag the Feedback onto a graphical item and specify how to display its Value.
For more information about graphical items, see Graphical item types.
The available command and feedback channel settings are shown below:
Lighting
For the Lighting Application, you can send one of the commands in the Command list:
Command:
| Parameter | Value | Description |
|---|---|---|
| Unit Address | 1...n | number of the module addressed by the command |
| Network ID | 1...n | network number in the C-Bus Toolkit project |
| Application | Lighting | C-Bus Toolkit application |
| Group | 0...7 | C-Bus Toolkit group address |
| Command | On/Off/Ramp/Terminate Ramp | On - turn on Off - turn off Ramp - ramp up to the specified value Terminate Ramp - stop ramping (Ramp) |
| ParamArg | instantaneously | set the brightness value immediately |
| over N seconds / N minutes | set the brightness value by ramping over the specified time | |
| Value | - | for Command: On, Off, Terminate Ramp, leave Value empty |
| 0...255 | for Command: Ramp, brightness varies over the range 0...255 |
*Value - specify this when dragging the command onto a graphical item
Feedback:
Feedback should be obtained using exactly these settings:
| Parameter | Value | Description |
|---|---|---|
| Unit Address | 1...n | number of the module addressed by the command |
| Network ID | 1...n | network number in the C-Bus Toolkit project |
| Application | Lighting | C-Bus Toolkit application |
| Group | 0...7 | C-Bus Toolkit group address |
| Command | Ramp | get the current brightness |
| ParamArg | instantaneously | get the brightness value |
| Value | 0...255 | current brightness |
- Value - received by the feedback channel; use it to display the value on items