iRidi for Duotecno
Tools for creating a visualization interface
The driver controls Duotecno equipment. Use the sample projects to explore its capabilities:
download examples:
Description
iRidi for Duotecno is a set of tools for creating a home or office control interface based on Duotecno equipment. It implements commands from the Duotecno TCP/IP protocol.
Connection
Control panels (iOS, Android, Windows, Mac) can control equipment on the Duotecno CAN bus only through TCP/IP Homeserver (DT18-HS).
Smartbox modules have their own TCP/IP interface and can be controlled directly. However, when connected to a Smartbox, you can control only that Smartbox (even if other modules are connected to its CAN interface). All other CAN bus modules are accessible only through TCP/IP Homeserver.

Scanning the bus to add modules
Scanning the Duotecno CAN bus through TCP/IP Homeserver is the easiest way to add Duotecno equipment that is already connected to the bus and available for control to an iRidi project.
Open iRidi Studio, create a new project, and open the Devices side panel (PROJECT DEVICE PANEL):
- Open Scanner / Import and select DuoTecno network scanner
- Specify the IP address and port of TCP/IP Homeserver
- Select the checkboxes for the modules you want to control from iRidi (all are selected by default)

Find the TCP/IP Homeserver IP address and connection port in Duotecno Config Tool:

IP: 192.168.X.XX - Homeserver IP address; specify it as Host in the scan and connection settings

Server IP-Port: 5001 - Homeserver port; specify it as Port in the scan and connection settings
Adding modules manually
If you cannot scan the bus through TCP/IP Homeserver, or if you have new devices, add Duotecno modules to the project from the iRidi database:
- Start iRidi Studio and create a new iRidi project
- Open the device database (DEVICE BASE), DuoTecno tab. Drag DuoTecno Network to the project device panel (PROJECT DEVICE PANEL)
- Open the DuoTecno > Units database tab. Drag the required modules onto the DuoTecno Network device. They are added to your project and become available on the tabs for the corresponding device types.

Add DuoTecno Network (the bus access interface)

Add the modules you want to control
When adding modules manually, you need to specify their addresses in the project. An address consists of two parts:
- NodeID - node identifier (HEX format)
- UnitID - unit identifier (HEX format)
You must specify device addresses in the iRidi project; otherwise, the devices will not work. You can find the addresses of dimmers, relays, sensors, etc. in, for example, Duotecno Binding Software. Network scanning adds the addresses automatically.
Configuring connection parameters
After adding modules to the project by scanning or manually, specify the connection settings for TCP/IP Homeserver in DuoTecno Network.
- Host - IP address of the TCP/IP Homeserver interface;
- Port - TCP/IP Homeserver connection port, usually 5001;
- Login - server access login;
- Keep Alive - connection hold time in seconds.
Find the TCP/IP Homeserver IP address and connection port in Duotecno Config Tool:

IP: 192.168.X.XX - Homeserver IP address; specify it as Host in the scan and connection settings

Server IP-Port: 5001 - Homeserver port; specify it as Port in the scan and connection settings
Changing connection parameters
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('DuoTecno Network').SetParameters({Host: "192.168.0.95", Port: 5001, Login: "duotecno"});
}
function External_1() {
IR.GetDevice('DuoTecno Network').SetParameters({Host: "215.110.10.10", Port: 5001, Login: "duotecno"});
}
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.
Configuring commands and feedbacks

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.
Control
Dimmer Units
A dimmer can be turned on and off. Its brightness can be controlled only when the dimmer is on.
Commands
| Command | Purpose | Description |
|---|---|---|
| On/Off Toggle | Turn the dimmer on/off | link the command to the Press (Release) event of a Button item |
| On | Turn the dimmer on | link the command to the Press (Release) event of a Button item |
| Off | Switch the dimmer off | link the command to the Press (Release) event of a Button item |
| Value Set | Set dimmer brightness (1-99) Brightness can be changed only when the dimmer is ON. Send "Dimmer set on" before use | link "On", then "Value Set", to the Release event of a Level/Button item |
| Up | Increase dimmer brightness Brightness increases until you send "Dimmer set on" | link "Up" to Press and "On" to Release |
| Down | Decrease dimmer brightness Brightness decreases until you send "Dimmer set on" | link "Down" to Press and "On" to Release |
| Up/Down Toggle | Change brightness up/down | link "Up/Down Toggle" to Press and "On" to Release |
Feedback
| Command | Purpose | Description |
|---|---|---|
| Status On | On state | 1 - on, 0 - off |
| Status Off | Off state | 1 - off, 0 - on |
| Status Value | Brightness | 1–99 |
| Status PIR Timed | Motion sensor | 1 - light turned on by the motion sensor |
Switch/Relay Units
A relay (switch) can be turned on and off.
Commands
| Command | Purpose | Description |
|---|---|---|
| On/Off Toggle | Turn the relay on/off | link the command to Press (Release) |
| On | Turn the relay on | link the command to Press (Release) |
| Off | Turn the relay off | link the command to Press (Release) |
Feedback
| Command | Purpose | Description |
|---|---|---|
| Status On | On state | 1 - on, 0 - off |
| Status Off | Off state | 1 - off, 0 - on |
| Status PIR Timed | Motion sensor control | 1 - relay turned on by the motion sensor |
Control Input Unit
The control module, also called the input module, can be physically connected to input devices (motion sensor, doorbell, etc.). You can control the module to trigger events and monitor its state.
Commands
| Command | Purpose | Description |
|---|---|---|
| Short puls | Short pulse | link to Press (Release) |
| Long puls | Long pulse | 1 - start of a long pulse, 0 - end of a long pulse. Link "Long puls" [Value: 1] to the Hold event of a Button item Link "Long puls" [Value: 0] to the End Of Hold event of a Button item |
Feedback
| Command | Purpose | Description |
|---|---|---|
| Status on | Input closed | 1 - closed, 0 - open |
| Status off | Input state | 1 - closed, 0 - open |
Sensor Units
A temperature sensor module can control heating and cooling, but only if the sensor is part of a temperature gateway node.
The sensor has predefined temperature setpoints. The actual temperature is periodically compared with the setpoint. Based on this comparison, the module can enter idle, heating, or cooling mode. The sensor can be turned on and off.
Commands
| Command | Purpose | Description |
|---|---|---|
| Preset <MODE> select | Mode selection | SUN / HALF SUN / MOON / HALF MOON |
| Setpoint <MODE> set | Temperature setting | value in °C with 0.1 precision |
| Sensor On/Off Toggle | Turn the sensor on/off | 0 - on, 1 - off |
| Setpoint Up | Increase the setpoint | +0.5° |
| Setpoint Down | Decrease the setpoint | -0.5° |
Feedback
| Command | Purpose | Description |
|---|---|---|
| Status Measured Value | Temperature | current value |
| Status Sensor On | Sensor state | 1 - on, 0 - off |
| Status Sensor Off | Sensor state | 1 - off, 0 - on |
| Status Sensor Cooling | Cooling | 1 - active |
| Status Sensor Heating | Heating | 1 - active |
| Status Sensor Idle | Standby | 1 - no activity |
| Status Sensor Preset <MODE> | Mode | active preset |
| Status Setpoint <MODE> | Setpoint | temperature in °C |
Basic Audio Units
The audio module controls audio devices. An audio device represents a "room" (audio zone) that can have up to 8 audio sources and 1 playback device (audio output).
Commands
| Command | Purpose |
|---|---|
| Destination Off | turn the audio output off |
| Destination On | turn the audio output on |
| Destination On/Off Toggle | turn the audio output on/off depending on its state |
| Source Select <1-8> | Source selection |
| Source Function PLAY | source function: start playback |
| Source Function PAUSE | source function: pause playback |
| Source PRESS UP | source function: press Up |
| Source PRESS DOWN | source function: press Down |
| Volume Up | increase volume. Volume continues to increase until you send "Destination On" |
| Volume Down | decrease volume. Volume continues to decrease until you send "Destination On" |
| Volume Up/Down Toggle | increase/decrease volume depending on the previous direction of change |
| Commands that work only with the BOSE V35 playback device: | |
| Source Extra Function | additional remote control commands (numeric input, arrows, etc.) |
| Source FFWD | Fast forward |
| Source FRWD | Rewind |
| Source NEXT | Next source |
| Source PREV | Previous source |
| Source PLAY | start playback |
| Source PAUSE | pause playback |
| Source STOP | stop playback |
Feedback
| Command | Purpose | Description |
|---|---|---|
| Status destination On/Off | Output state | 1 - enabled |
| Status source <1-8> | Source | active source |
| Status Volume | Volume | current playback volume (0-99). Only BOSE Lifestyle 50 and BOSE Lifestyle V-class support retrieving volume (sometimes even these systems cannot return the current volume) |
| Status Disc Info | Disc | disc information (1-9). Only BOSE Lifestyle 50 can return this information |
| Status Track Info | Track | track information (1-32). Only BOSE Lifestyle 50 can return this information |
| Status Tuner Preset | Tuner preset | tuner mode. BOSE Lifestyle 50 returns 0-254, BOSE Lifestyle 48 returns 1-9, and BOSE Lifestyle V-class returns 1-25 |
| Status Tuner Frequency | Frequency | tuner frequency. BOSE Lifestyle 50 returns an FM band value, BOSE Lifestyle 48 returns 0 = AM, 1 = FM (or nothing), and BOSE Lifestyle V-class returns the AM band or FM band (or nothing) |
Motor Units
The motor control module is a three-contact relay that switches a motor drive in two directions: up and down.
When the motor is on, it turns off automatically after a specified time and returns to the STOP state. Reversing direction takes some time. Travel time and direction change time are set during system configuration.
Commands
| Command | Purpose | Description |
|---|---|---|
| Up | Upward movement | Press (Release) |
| Down | Downward movement | Press (Release) |
| Stop | Stop | Press (Release) |
| Up/Down Toggle | Reverse direction | Press (Release) |
Feedback
| Command | Purpose | Description |
|---|---|---|
| Status Running up | Upward movement | active |
| Status Running down | Downward movement | active |
| Status Stopped | Stopped | unknown state |
| Status Stopped up | Stopped, upward | last direction |
| Status Stopped down | Stopped, downward | last direction |
AV Matrix Units (Advanced)
The AV Matrix module controls audio/video matrix switchers. These switchers are usually connected to Duotecno through an RS232 interface. The advanced audio control module supports commands for controlling switcher functions.
Duotecno servers with firmware v65.50 and later support the AV Matrix module. It can control third-party AV switchers over the open TCP/IP protocol.
Matrices up to 8x16 are supported.
Commands
| Command | Purpose | Description |
|---|---|---|
| Input to Output [I]-[O] | connect the specified switcher input and output | Press (Release) |
| On - Out [n] | Turn the output on | Press (Release) |
| Off - Out [n] | Turn the output off | Press (Release) |
| On/Off - Out [n] | Toggle the output | Press (Release) |
| Volume value - Out [n] | Volume level | Level Release |
| Volume up - Out [n] | Volume + | Press (Release) |
| Volume down - Out [n] | Volume - | Press (Release) |
| Volume mute - Out [n] | Mute | Press (Release) |
Feedback
| Command | Purpose | Description |
|---|---|---|
| Status - Out [n] | Output state | 1/0 |
| Status volume - Out [n] | Volume | 0–50 |