Skip to main content

iRidi for Helvar

A toolkit for creating interfaces to control Helvar equipment

Documentation updated 01.01.2024

Description​

iRidi for Helvar is a toolkit for creating an interface to control lighting based on Helvar equipment.

You can connect to Helvar using several methods (drivers): HelvarNet (TCP), HelvarNet (UDP), HelvarNet Internal (UDP), and Helvar AV (RS232).

Important

Make sure your Helvar router supports the HelvarNet protocol; otherwise, a software and firmware update is required. Use DIGIDIM 910/920 for IP connections.

iRidi for Helvar licensing (details).

Connection​

Equipment configuration and settings required for iRidi to control Helvar.

Helvar connection methods​

Helvar drivers have specific features to consider when choosing a control method:

Helvar_HowItWorks.png Local connection:HelvarNet (TCP), HelvarNet (UDP), HelvarNet Internal (UDP), HelvarAV (RS232)

Helvar__Scheme_Inet.png

Internet connection:HelvarNet (TCP)

  1. HelvarNet (TCP)
  • supports a Site license
  • updates device statuses only at the control panel's request
  • supports 1 connection on the local network
  • supports 1 connection over the Internet
  1. HelvarNet (UDP)
  • supports a Site license
  • updates device statuses only at the control panel's request
  • receives only the changes requested by the control panel
  • supports multiple connections on the local network
  • does not support Internet connections
  1. HelvarNet Internal (UDP)
  • uses UDP broadcasting within an IP network segment
  • does NOT support a Site license
  • receives state change information without an explicit request
  • supports multiple connections on the local network
  • does not support Internet connections
  1. Helvar AV (RS232)
  • uses RS232 transport to connect to DALI
  • does NOT support a Site license
  • supports 1 connection on the local network
  • does not support Internet connections

Importing the Helvar driver into iRidi​

Import lets you add a csv file exported from Designer to the project. This is the fastest and most convenient way to add a driver to a project. All imported commands and feedback channels have preset settings that you can change if necessary.

To import:

  1. Open Designer and go to Tools > Grouping Report...

Helvar_Import5.jpeg Helvar_Import6.jpg

  1. Generate a grouping report:

Helvar_Import7.jpg

  1. Go to the Reports tab, right-click the report to open its menu, and click Save As :

Helvar_Import8.jpg

  1. In iRidi Studio, click Scanner / Import and select Import Helvar (*.csv).

Helvar_Import.png

  1. Select the required csv file.

Helvar_Import2.png

  1. Select all devices you need to import.

Helvar_Import3.png

  1. A driver with commands and feedback channels organized into folders appears in the project.

Helvar_Import4.png

Adding the Helvar driver manually​

In addition to importing, you can add and configure the Helvar driver manually:

Helvar1.png

Configuring the Helvar connection​

Select the driver and its default connection settings. You can change them while working with the project.

Helvar_2.png

  • Host - the router's IP address on the local network (or the Internet router's public IP address)
  • Port - the port for connecting to the router (TCP / UDP). The TCP port is always 50000; the UDP port is 50001

For Internet operation, specify the public IP address of the router to which the controller is connected and configure forwarding for the control port (Port Forwarding).

You can find the router's public IP address using, for example, Yandex.Internet

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.

  1. Download the template (*.js) (right-click and save the target), then add it to the script editor using (+) Add Script from file

  2. Configure the script parameters as shown in the example:

function Internal_1() {
IR.GetDevice("HelvarNet (TCP)").SetParameters({Host: "10.254.1.2", Port: 50000});
}
function External_1() {
IR.GetDevice("HelvarNet (TCP)").SetParameters({Host: "215.110.10.10", Port: 50000});
}

Copy the driver name from the Devices panel; copy the parameter list exactly as shown in the example.

  1. 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:

Script call internal-external.png

Each button press now applies the corresponding connection settings.

Equipment control​

SendRecieve.png

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, channel, and graphical item settings are shown below:

Direct Level, Query Load Level​

Direct Level is used to turn a device (Device) or group (Group) on/off or set its brightness.

Query Load Level is a feedback channel that periodically queries the controlled device's status (Device) and provides it to the interface.

Command (Direct Level Device)

CommandDirect Level Deviceset the device state (on/off/brightness)
Cluster1...253device address (@ address)
Router1...254device address (@ address)
Subnet1...4device address (@ address)
Device1...255device address (@ address)
Fade Time0...6553.5×10³(ms) transition time from the current state to the specified state
Value0...100specified brightness value

Command (Direct Level Group)

CommandDirect Level Groupset the device state (on/off/brightness)
Group1...16383address of a device group in the Helvar system
Fade Time0...6553.5×10³(ms) transition time from the current state to the specified state
Value0...100specified brightness value

Value is specified when dragging the command onto a graphical item. In Helvar, the range is 0-100: a dimmer processes all values, while a relay responds to zero and nonzero values. A relay has an activation threshold below which it does not turn on.


Feedback (Query Load Level)

CommandQuery Load Levelquery and display the device state (brightness). For Device only
Cluster1...253device address (@ address)
Router1...254device address (@ address)
Subnet1...4device address (@ address)
Device1...255device address (@ address)
Use TimerYes/Noquery device status on a timer (HelvarNet does not provide status without a request)
Timer0...n(ms) device status query interval
Value0...100current device brightness value

Value is received by the feedback channel and used to display the state.


Recall Scene​

Use Recall Scene Device / Group to recall a scene programmed for a device or device group in the Helvar system.

A scene recall command can only be sent to loads (dimmers, relay modules, ballasts, etc.).

Command (Recall Scene Device)

CommandRecall Scene Devicerecall a scene for a device
Cluster1...253device address (@ address)
Router1...254device address (@ address)
Subnet1...4device address (@ address)
Device1...255device address (@ address)
CL0...1Constant Light: 1 = On, 0 = Off
Block1...8scene block number (Scene 1.2 = block 1 scene 2)
Fade Time0...6553.5×10³(ms) transition time
Value1...nscene number

Command (Recall Scene Group)

CommandRecall Scene Grouprecall a scene for a device group
Group1...16383device group address
CL0...1Constant Light: 1 = On, 0 = Off
Block1...8scene block number
Fade Time0...6553.5×10³(ms) transition time
Value1...nscene number

Feedback: information about the current scene cannot be obtained.


Direct Proportion​

Sets a proportion. The value is defined as the difference between the last set level and the device's maximum output level.

Command (Direct Proportion Device)

CommandDirect Proportion Deviceset a proportion for a device
Cluster1...253device address
Router1...254device address
Subnet1...4device address
Device1...255device address
Fade Time0...6553.5×10³(ms) transition time
Value0...100proportion value

Command (Direct Proportion Group)

CommandDirect Proportion Groupset a proportion for a group
Group1...16383device group address
Fade Time0...6553.5×10³(ms) transition time
Value0...100proportion value

Feedback:

The current device state is received through Query Load Level

Tip

How the proportion value is calculated Result of writing a positive proportion: if the last scene set 44% brightness and you write 50 to "Direct Proportion Device", the resulting brightness is 72%: 44 + (100 - 44)*50/100 = 72% Result of writing a negative proportion: if the last scene set 44% brightness and you write -50 to "Direct Proportion Device", the resulting brightness is 22%: 44*50/100 = 22%

Modify Proportion​

Modifies a proportion. The result can be calculated using the formulas in "#Direct Proportion", but "Modify Proportion" affects the proportion itself rather than the result of applying it. Thus, starting with the 50% added through "Direct Proportion", you can add 5% through "Modify Proportion" (55% in total) and obtain the result using the original formula.

Command (Modify Proportion Device)

CommandModify Proportion Devicemodify the proportion for a device
Cluster1...253device address (@ address)
Router1...254device address (@ address)
Subnet1...4device address (@ address)
Device1...255device address (@ address)
Fade Time0...6553.5×10³(ms) transition time from the current state to the specified state
Value0...100proportion value

Command (Modify Proportion Group)

CommandModify Proportion Groupset a proportion for a group
Group1...16383address of a device group in the Helvar system
Fade Time0...6553.5×10³(ms) transition time from the current state to the specified state
Value0...100proportion value

Value is specified when dragging the command onto a graphical item.

Feedback:

The current device state is received through Query Load Level

Tip

How the proportion value is calculated Result of writing a positive modification: take the "Direct Proportion" example from the previous section. After sending that command, a subsequent proportion modification of 5% produces 75% brightness because it applies to the previous "Direct Proportion" value:

44 + (100 - 44)*(50 + 5)/100 = 75%

Result of writing a negative modification: take the "Direct Proportion" example from the previous section. After sending that command, a subsequent proportion modification of -5% produces 19% brightness because it applies to the previous "Direct Proportion" value:

44*(50 - 5)/100 = 19%

Emergency Test Control Commands​

"Emergency Function Test Device" and "Emergency Duration Test Device" are emergency state queries to be sent only to DALI interfaces. Non-emergency devices in the system will not respond.


Command (Device)

CommandEmergency Function Test Devicequery the device's emergency functions
CommandEmergency Duration Test Devicequery the duration of the emergency state
CommandStop Emergency Tests Devicestop all emergency tests
Cluster1...253device address (@ address)
Router1...254device address (@ address)
Subnet1...4device address (@ address)
Device1...255device address (@ address)
Fade Time0...6553.5×10³(ms) transition time from the current state to the specified state
Value-not used; leave 0 or an empty value

Command (Group)

CommandEmergency Function Test Devicequery the DALI device's emergency functions
CommandEmergency Duration Test Devicequery the duration of the emergency state
CommandStop Emergency Tests Devicestop all emergency tests
Group1...16383address of a device group in the Helvar system
Fade Time0...6553.5×10³(ms) transition time from the current state to the specified state
Value0...100not used; leave 0 or an empty value

Feedback (Device)

CommandEmergency Function Test DeviceDALI device faults
CommandEmergency Duration Test Deviceduration of the emergency state
Cluster1...253device address (@ address)
Router1...254device address (@ address)
Subnet1...4device address (@ address)
Device1...255device address (@ address)
Fade Time0...6553.5×10³(ms) transition time from the current state to the specified state
Value0...ncurrent state

Feedback (Group)

CommandEmergency Function Test DeviceDALI device faults
CommandEmergency Duration Test Deviceduration of the emergency state
Group1...16383address of a device group in the Helvar system
Value0...ncurrent state

Query Commands​

Helvar device status queries are created in the Feedbacks tab and run cyclically at an interval set by Timer.

If your chosen Helvar protocol supports automatic system status change notifications, create the Feedback without a timer.

Feedback:

TypeCommandDescription
SectionGeneral Query Commands
CommandQuery Clustersall element identifiers (Cluster Member) present in the cluster
CommandQuery Routersall identifiers in the specified cluster
CommandLSIB - Last Scene In Blocklast scene recalled in the specified block
CommandQuery Device Typetype of the queried device. 1 - DALI, 2 - Digidim, 4 - SDIM, 8 - DMX
CommandQuery Descriptiondevice/group description
SectionDevice State Query Commands
CommandQuery Device Statelist of device flags (parameters)
CommandQuery Device Is Disableddevice disabled state
CommandQuery Lamp Failurelamp failure
CommandQuery Device Is Missingdevice missing state
CommandQuery Device Is Faultydevice faulty state
CommandQuery Emergency Battery Failureemergency battery failure
SectionMeasurement / Input / Level Query Commands
CommandQuery Measurementchange in an analog parameter, such as light (Analogue Input Unit)
CommandQuery Inputsdigital input state
CommandQuery Load Leveldevice status
SectionPower Consumption Query Commands
CommandQuery Power Consumptiondevice power consumption
CommandQuery Group Power Consumptionpower consumption of all devices in the group
SectionEmergency Test Query Commands
CommandQuery Emergency Function Test Timeemergency test time
CommandQuery Emergency Function Test Stateemergency test status. Pass - 0, Lamp Failure - 1, Battery Failure - 2, Faulty - 4, Failure - 8, Test Pending - 16, Unknown - 32
CommandQuery Emergency Duration Test Timeemergency test duration
CommandQuery Emergency Duration Test Stateduration of the emergency state
CommandQuery Emergency Battery Chargeremaining emergency battery charge
CommandQuery Emergency Battery Timetotal emergency battery operating time
CommandQuery Emergency Total Lamp Timetotal lamp operating time from any power source
SectionSystem Query Commands
CommandQuery Time, Longitude, Latitude, Time Zone, Daylight Saving Time, Software Version, HelvarNet Versionsystem parameters
Cluster1...253device address (@ address)
Router1...254device address (@ address)
Subnet1...4device address (@ address)
Device1...255device address (@ address)
Use TimerYes/Noquery device status on a timer (if disabled, status is not updated)
Timer0...n (ms)device status query interval
Subdevice1...255subdevice address
Value *0...100current parameter value
  • Value - received by the feedback channel; use it to display the value on items

The Query Load Color command is supported in the first and second protocol versions.

Query Device State​

Each device in a Helvar lighting control system can report a number of its parameters (flags) on request. This can be used to monitor the lighting system's state.

To display device flags, create a feedback channel and specify the device address and flag query interval in its settings. Link the channel to a graphical item that displays the flag state (0 - inactive, 1 - active):

Feedback:

TypeCommandDescription
CommandQuery Device Statequery the state of a device parameter
Command PropertyDisabledDevice or subdevice has been disabled, usually an IR subdevice or a DMX channel
Command PropertyLamp FailureUnspecified lamp problem
Command PropertyMissingThe device previously existed but is not currently present
Command PropertyFaultyRan out of addresses (DALI subnet) / unknown Digidim control device / DALI load that keeps responding with multi-replies
Command PropertyRefreshingDALI subnet, DALI load or Digidim control device is being discovered
Command PropertyRestingLoad is intentionally off whilst the control gear is being powered by the emergency supply
Command PropertyReserved
Command PropertyIn EmergencyNo mains power is being supplied
Command PropertyIn ProlongMains has been restored but device is still using the emergency supply
Command PropertyFT In ProgressThe Functional Test is in progress (brief test where the control gear is being powered by the emergency supply)
Command PropertyDT In ProgressThe Duration Test is in progress. This test involves operating the control gear using the battery until the battery is completely discharged. The duration that the control gear was operational for is recorded, and then the battery recharges itself from the mains supply
Command PropertyDT PendingThe Duration Test has been requested but has not yet commenced. The test can be delayed if the battery is not fully charged
Command PropertyFT PendingThe Functional Test has been requested but has not yet commenced. The test can be delayed if there is not enough charge in the battery
Command PropertyBattery FailBattery has failed
Command PropertyIn Hi BitPrevents an emergency fitting from going into emergency mode
Command PropertyFT RequestedEmergency Function Test has been requested
Command PropertyDT RequestedEmergency Duration Test has been requested
Command PropertyUnknownInitial state of an emergency fitting
Command PropertyOver TemperatureLoad is over temperature/heating
Command PropertyOver CurrentToo much current is being drawn by the load
Command PropertyComms ErrorCommunications error
Command PropertySevere ErrorIndicates that a load is either over temperature or drawing too much current, or both
Command PropertyBad ReplyIndicates that a reply to a query was malformed
Command PropertyDevice MismatchThe actual load type does not match the expected type
Cluster1...253device address (@ address)
Router1...254device address (@ address)
Subnet1...4device address (@ address)
Device1...255device address (@ address)
Use TimerYes/Noquery device status on a timer (if disabled, status is not updated)
Timer0...n (ms)device status query interval
Subdevice1...255subdevice address
Value *0...100current parameter value
  • Value - received by the feedback channel; use it to display the value on items