Skip to main content

iRidi for ZigBee

How iRidi Server accesses a ZigBee wireless network

Documentation updated 01.01.2024


  • The following can work with ZigBee networks:
  • any platform (RPI, Windows, Linux, UMC) with a ZigBee stick connected,
  • iRidi Server UMC C3 with a built-in ZigBee module*.
      • discontinued.
Attention

iRidi Server does not support all ZigBee devices and functions. The "Working with commands and feedback" section provides information about the supported ZigBee classes.

Tested equipment​

Supported ZigBee sticks​

  • Elelabs Zigbee USB Adapter Elu013
  • DEFARO SPRUTSTICK PRO
  • Sonoff Zigbee 3.0 USB Dongle plus (ZBDongle-E)
  • Nortek HUSBZB

Unsupported sticks:

  • JetHome JetStick Z4

Legrand Netatmo​

  • AG07556 - single-rocker (two-button), flush-mounted light switch (dimmer);
  • AG0777 - single-rocker (two-button), flush-mounted curtain controller;
  • AG08761 - wireless single-rocker switch;
  • AG08763 - wireless curtain controller;
  • AG08761 - wireless two-rocker switch.

Danfoss Icon​

  • 088U1122 - Room Thermostat;
  • 088U1105 - Radio Module;
  • 088U1141 - Master Controller OTA;
  • 088H3110 - TWA-A NC;
  • 088U1130 - Zigbee Module.

Aqara​

  • MCCGQ11LM - Aqara Door and Window Sensor;
  • RTCGQ11LM - Aqara Motion Sensor;
  • WSDCGQ11LM - Aqara Temperature and Humidity Sensor;
  • QBKG03LM - Aqara 2x1-pole switch;
  • WXKG02LM - Wireless Remote Switch (Double Rocker).

Aqara device operating considerations:

  • Because Xiaomi Aqara does not fully support the ZigBee specification, we do not recommend using a large number of Xiaomi wireless battery-powered devices in your projects. Their stability is not guaranteed.
  • Make sure your ZigBee devices do not conflict with the Wi-Fi network channel. ZigBee can sometimes conflict with Wi-Fi when they use the same radio channel (more information here).
  • To improve sensor stability, we recommend making sure that the server is always running without interruptions (ZigBee devices often leave the network if they cannot see the coordinator).
  • If you are not receiving data from a device, check whether it has actually left the network. If climate parameters do not cross a certain threshold, the device sends no data to the network. Pressing its button helps wake up the device.
  • If one of the sensors consistently disappears from the network, try replacing it. This behavior may indicate a manufacturing defect.

Advantages​

Home automation is one of the main applications of ZigBee.

ZigBee devices

  • can form mesh networks, providing self-healing and guaranteed data delivery if communication is interrupted, obstacles appear, or a component fails;
  • consume little power and can run on ordinary batteries, eliminating the need to lay cables;
  • can exchange information over distances of several tens of meters with a clear line of sight.

Many smart devices with a ZigBee interface are available on the market. Developers can connect all these devices to the unified iRidi platform.

Adding devices to the network​

  1. Power on the server.

  2. Sign in to the server web interface.

  3. Open the Zigbee (beta) tab.

ZigBee_CreateDevice1.png

  1. Click Settings to configure the ZigBee network.

ZigBee_CreateDevice2.png

  1. Configure the ZigBee stick or built-in module (UMC only) according to its specifications.

ZigBee_CreateDevice3.png

  • Configuring USB sticks:
Stick modelSettings
Elelabs Zigbee USB Adapter Elu013
DEFARO SPRUTSTICK PRO
Sonoff Zigbee 3.0 USB Dongle plus (ZBDongle-E)
Baud Rate: 115200,
Data Bits: 8,
Parity: None,
Stop Bits: 1.
Nortek HUSBZBBaud Rate: 57600,
Data Bits: 8,
Parity: None,
Stop Bits: 1.
Important

The JetHome JetStick Z4 stick has been tested and is not supported, EZSP v13 iRidi supports Ember Zigbee Serial Protocol (EZSP) up to and including v.8

  • The web interface displays stop bits as follows:

  • Configuring the ZigBee module.

ZigBee_module.jpg

Note

The built-in ZigBee module is always in slot 4 and is displayed as /hal/zwt_m4.

Stop bits are displayed in the web interface as follows:

iRidi Studio:Web interface:
10
1,51
22
  • For Windows
    • Connect the USB stick;
    • Open Device Manager and find your USB stick. The name of the port to which it is connected appears in parentheses after its name (COM7 in this example).

ZigBee_CreateDevice4.png

Tip

If the device is displayed as an unknown device, update the drivers for this stick.

  • For Linux
    • Connect the USB stick;
    • No additional drivers are required. To select the stick port, clear the Serial Port field and select your stick from the available options.

ZigBee_CreateDevice5.png

  • For UMC_C3
    • Connect the USB stick;
    • No additional drivers are required. To select the stick port, clear the Serial Port field and select your stick from the available options.

USB_stick_(UBC).png

Tip

A stick for UMC always occupies a USB port, indicated by ttyUSB in its name.

This applies only to newer servers with the patch for stick support installed. If the patch is not installed and sticks are not displayed in the web interface, contact our technical support team (support@iridi.com).

  • This applies only to newer servers with the patch for stick support installed. If the patch is not installed and sticks are not displayed in the web interface, contact our technical support team (support@iridi.com).
  1. Click Create network to create a new network.

ZigBee_CreateDevice6.png

  1. Click Open network. The server scans the radio channel for 180 seconds. During this time, perform the required physical actions on the wireless device being added. Typically, you need to press its button several times (read the operating manual for your device to find out exactly which actions are required).

ZigBee_CreateDevice7.png

Example of adding a Legrand device:

ZigBee14.png

  1. Remove the protective tab;

  2. Hold the button until the LED lights up;

  3. Press the button again so that the LED starts flashing (a flashing LED indicates that the device is available for connection to ZigBee);

  4. Wait for the device to appear in the web interface.

Example of adding an Aqara device:

Aqara1.jpg

  1. Hold the button on the device until its LED flashes several times.

  2. Press the button on the device periodically to force it to wake up.

  3. It is advisable to monitor the server logs at this point. Set the log level to INFO and wait for the message Device inited. This means the device has been initialized and is ready for further configuration.

  4. Wait for the device to appear in the web interface.

  5. The device is added to the list and receives an ID. Use the device-adding button to add all the required devices to your network.

ZigBee15.png

  1. Use Rename to change the device name, or Delete to remove the device.
ClusterAttributesValueDescription
On/OffOnOff0 - Off, 1 - OnDevice state
On/OffGlobal Scene ControlRead OnlyUsed to prevent a repeated off command in a global scene
On/OffOn Time0 - 65535Defines the duration (in 1/10 seconds) for which the on state must be maintained before automatically switching to the off state
On/OffOff Wait Time0 - 65535Defines the duration (in 1/10 seconds) for which the off state must be maintained before automatically switching to the on state
BasicZCL VersionRead OnlyProvides the basic set of elements (global functions / scenes)
BasicApplication VersionRead OnlyIndicates the application version number
BasicStack VersionRead OnlyIndicates the implementation version number (use of this attribute depends on the manufacturer)
BasicHWVersionRead OnlyIndicates the device hardware version number (use of this attribute depends on the manufacturer)
BasicManufacturer NameRead OnlyIndicates the manufacturer name as a ZigBee character string
BasicModelIdentifierRead OnlyIndicates the model number (or other identifier) assigned by the manufacturer
BasicDate CodeRead OnlyIndicates the device manufacturing date in the international date format (ISO 8601 = YYYYMMDD)
BasicPower Source0 - unknown source
1 - mains (single phase)
2 - mains (3 phases)
3 - battery
4 - DC power source
5 - emergency mains, continuous power
6 - emergency mains and transfer switch without interruption
Device power source
BasicLocation DescriptionStringDescribes the physical location of the device. This description can be added to the device during commissioning
BasicPhysical Environment0 - unassigned
1 - atrium
2 - bar
3 - courtyard
4 - bathroom
5 - bedroom
6 - billiard room
7 - utility room
8 - basement
9 - storage room
10 - theater
11 - office
12 - deck
13 - den
14 - dining room
15 - electrical room
16 - elevator
17 - entrance/entry
18 - living room
19 - main floor
20 - stairs up
21 - stairs down
22 - basement/lower level
23 - gallery
24 - game room
25 - garage
26 - gym
27 - entrance hall
28 - house
29 - kitchen
30 - laundry room
31 - living room
32 - stairwell
33 - yard
34 - attic
35 - whirlpool bath
36 - residential room
37 - sauna
38 - shop
39 - guest bedroom
40 - guest bathroom
41 - toilet (separate WC)
42 - backyard
43 - front yard
44 - courtyard
45 - driveway
46 - sunroom
47 - living room
48 - spa
49 - whirlpool bath
50 - warehouse
51 - workshop
52 - fountain
53 - pond
54 - reception
55 - breakfast room
56 - corner
57 - garden
58 - balcony
59 - panic room
60 - terrace
Defines the physical location of the device
BasicDevice Enabled0 = Off, 1 = OnBoolean value (indicates whether the device is on or off)
BasicAlarm Mask0 - general hardware error, 1 - general software errorIndicates a general alarm
BasicDisable Local Config0 = Off, 1 = OnAllows any local configuration user interface to be disabled (for example, to prevent unauthorized people from activating reset or binding buttons on a device in a public building)
BasicSW Build IDStringManufacturer reference to the software version
PowerMains Voltage0 - 65535Indicates RMS voltage or DC voltage
PowerMains Frequency0 - frequency too low to measure
254 - frequency too high to measure
255 - frequency could not be measured
Represents the frequency in hertz
PowerMains Alarm Mask0 - mains voltage too low
1 - mains voltage too high
2 - mains power unavailable (device running on battery)
Indicates device alarms. If the device does not have an alarm cluster, alarms may not be received
PowerMains Voltage Min Threshold0 - 65535 (100mV)Defines the lower alarm threshold. This attribute must be less than MainsVoltageMaxThreshold
PowerMains Voltage Max Threshold0 - 65535 (100mV)Defines the upper alarm threshold. This attribute must be greater than MainsVoltageMinThreshold
PowerMains Voltage Dwell Trip Point0 - 65535 (65535 - alarms must not be generated)Indicates the timer duration. The timer starts counting when MainsVoltage crosses the threshold
PowerBattery Voltage0 - 255Defines the current battery voltage (mV)
PowerBattery Percentage Remaining0 - 255Defines the remaining battery charge (%)
PowerBattery ManufacturerStringIndicates the battery manufacturer name
PowerBattery Size0 - no battery
1 - built-in battery
2 - other
3 - AA
4 - AAA
5 - C
6 - D
7 - CR2 (IEC: CR17355 / ANSI: 5046LC)
8 - CR123A (IEC: CR17345 / ANSI: 5018LC)
255 - unknown
Indicates the battery size
PowerBattery AHr Rating0 - 65535Defines the battery rating in 10mAHr
PowerBattery Quantity0 - 255Indicates the number of batteries in the device
PowerBattery Rated Voltage0 - 255Indicates the rated voltage of the battery used (100mV)
PowerBattery Alarm Mask0 - battery voltage too low to continue operation
1 - alarm 1 (BatteryVoltageThreshold1)
2 - alarm 2 (BatteryVoltageThreshold2)
3 - alarm 3 (BatteryVoltageThreshold3) - if the time has expired
Indicates which battery alarms must be generated
PowerBattery Voltage Min Threshold0 - 255Defines the low battery voltage threshold, in units of 100mV, at which the device can no longer operate
PowerBattery Voltage Threshold 1/2/30 - 255Low voltage alarm value, in units of (100mV), for the BatteryVoltage attribute. If BatteryVoltage is below the specified value, the corresponding alarm is generated
PowerBattery Percentage Min Threshold0 - 255Indicates the battery voltage threshold that warns of low battery charge in %
PowerBattery Percentage Threshold 1/2/30 - 255You can set the low voltage alarm value (%) for BatteryPercentageRemaining in this attribute. If BatteryPercentageRemaining is below the specified value, the corresponding alarm is generated
PowerBattery Alarm StateRead OnlyIndicates the current alarm. The attribute maintains a continuous record of battery alarm states
LevelCurrent Level0 - 255Current device level
LevelRemaining Time0 - 65535Defines the time until the current command completes (specified in 1/10 seconds)
LevelOn Off Transition Time0 - 65535Indicates the time taken to transition the level to the On/Off state (specified in 1/10 seconds. The time should be close to what the device can actually achieve. It cannot change at a variable rate)
LevelOn Level0 - 255Sets CurrentLevel if ON is received by the OnOff cluster attribute
LevelOn Transition Time0 - 65535Represents the time required for the level to transition from its minimum to its maximum when an ON command is received
LevelOff Transition Time0 - 65535Represents the time required for the level to transition from its maximum to its minimum when an OFF command is received
LevelDefault Move Rate0 - 255Defines the rate of a move command using the Rate parameter
Binary InputActive TextStringStores a readable description of the active PresentValue state
Binary InputDescriptionStringDescribes the use of input/output data, depending on the cluster. The string contains 16 printable characters (ASCII)
Binary InputInactive TextStringStores a readable description of the inactive PresentValue state
Binary InputOut Of Service0 = false, 1 = trueA Boolean attribute indicating whether the physical input is active. For the BinaryInput cluster, OutOfService = True means that PresentValue is decoupled from the physical input and does not track changes
Binary InputPolarityOutOfService is FALSE. If Polarity is NORMAL (0), the ACTIVE (1) state of PresentValue is also the ACTIVE or ON state of the physical input (or output). If Polarity is REVERSE (1), the ACTIVE (1) state of PresentValue is the INACTIVE or OFF state of the physical input (or output). Thus, OutOfService is FALSEIndicates the relationship between the physical input/output state (depending on the cluster) and the logical state of PresentValue
Binary InputPresent ValueFor analog signals - an unambiguous integer value; for binary clusters - boolean; for a multistate cluster - uint16Indicates the current input/output value assigned to the Binary Input cluster. PresentValue for the Binary Input cluster must be writable if OutOfService = True
Binary InputStatus FlagsThe bitmask is defined as:
Bit 0 = IN ALARM
Bit 1 = FAULT
Bit 2 = OVERRIDDEN
Bit 3 = OUT OF SERVICE
where:
Bit 0. IN ALARM - Boolean FALSE (0) if EventState is NORMAL; otherwise, Boolean TRUE (1). This bit is always 0 unless the cluster implementing EventState is implemented on the same endpoint
Bit 1. FAULT - Boolean TRUE (1) if Reliability is present and is not NO FAULT DETECTED; otherwise, Boolean FALSE (0)
Bit 2. OVERRIDDEN - Boolean TRUE (1) if the cluster has been overridden by a mechanism local to the device; otherwise, Boolean FALSE (0)
Bit 3. OUT OF SERVICE - Boolean TRUE (1) if OutOfService is TRUE; otherwise, Boolean FALSE (0)
This attribute provides four Boolean flags indicating the overall device state. Three flags are associated with the values of other optional attributes in this cluster
Binary InputApplication TypeGroup = Bits 24 - 31 - identifies the cluster to which the attribute belongs
Type = Bits 16 - 23 - the physical quantity for analog clusters
Index = Bits 0 - 15 - the specific use of the cluster by the application
Represents a 32-bit integer indicating the specific use of the cluster
Binary InputReliability0 - no errors detected
1 - sensor missing
2 - data outside the allowed range
3 - data has not entered the allowed range
4 - open loop
5 - open short loop
6 - no outputs (input value cluster only)
7 - unreliable/other
8 - processing error
9 - multistate error (multistate cluster only)
10 - configuration error
Indicates whether PresentValue is reliable
Occupancy SensingOccupancy1 - occupied
0 - unoccupied
Occupancy (represented by a bitmask)
Occupancy SensingOccupancy Sensor Type0 - PIR
1 - Ultrasonic
2 - PIR and ultrasonic
Indicates the occupancy sensor type
Occupancy SensingPIR Occupied To Unoccupied Delay0 - 65535Indicates the delay in seconds before the PIR sensor changes to the unoccupied state after the last motion detection in the detection area
Occupancy SensingPIR Unoccupied To Occupied Delay0 - 65535Indicates the delay in seconds before the PIR sensor changes to the occupied state after detecting motion in the detection area
Occupancy SensingPIR Unoccupied To Occupied Threshold0 - 255Indicates the number of motion detection events that must occur during PIR UnoccupiedToOccupiedDelay
Occupancy SensingUltrasonic Occupied To Unoccupied Delay0 - 65535Defines the delay in seconds before the ultrasonic sensor changes to the unoccupied state
Occupancy SensingUltrasonic Unoccupied To Occupied Delay0 - 65535Defines the delay in seconds before the ultrasonic sensor changes to the occupied state after detecting motion
Occupancy SensingUltrasonic Unoccupied To Occupied Threshold0 - 255Defines the number of motion detection events that must occur during UltrasonicUnoccupiedToOccupiedDelay
Multistate InputStateTextStringContains descriptions of all possible states. The number of descriptions matches the number of states defined in NumberOfStates. PresentValue, interpreted as an integer, is an index into the array. If the size of this array changes, NumberOfStates must also change to the same value
Multistate InputDescriptionStringDescribes the use of input/output data, depending on the cluster. The string contains 16 printable characters (ASCII)
Multistate InputNumber Of States1 - 65535Defines the number of PresentValue states. NumberOfStates must always be greater than zero
Multistate InputOut Of Service0 = false
1 = true
A Boolean attribute indicating whether the physical input is active. For the MultistateInput cluster, OutOfService = True means that Present Value is decoupled from the physical input and does not track changes
Multistate InputPresent ValueFor analog signals - an unambiguous integer value; for binary clusters - boolean; for a multistate cluster - uint16Indicates the current input/output value assigned to the BinaryInput cluster. PresentValue for the MultistateInput cluster must be writable if OutOfService = True
Multistate InputPriority ArrayArray of 16 structures of (bool, uint16)An array of 16 structures. Each structure consists of 2 elements: 1. Boolean (True/False) 2. PresentValue in descending order 1-16
Multistate InputReliability0 - no errors detected
1 - sensor missing
2 - data outside the allowed range
3 - data has not entered the allowed range
4 - open loop
5 - open short loop
6 - no outputs (input value cluster only)
7 - unreliable/other
8 - processing error
9 - multistate error (multistate cluster only)
10 - configuration error
Indicates whether PresentValue is reliable
Multistate InputRelinquish Default0 - 65535Indicates the default value for PresentValue when all elements of PriorityArray are marked as invalid
Multistate InputStatus FlagsThe bitmask is defined as:
Bit 0 = IN ALARM
Bit 1 = FAULT
Bit 2 = OVERRIDDEN
Bit 3 = OUT OF SERVICE
where:
Bit 0. IN ALARM - Boolean FALSE (0) if EventState is NORMAL; otherwise, Boolean TRUE (1). This bit is always 0 unless the cluster implementing EventState is implemented on the same endpoint.
Bit 1. FAULT - Boolean TRUE (1) if Reliability is present and is not NO FAULT DETECTED; otherwise, Boolean FALSE (0).
Bit 2. OVERRIDDEN - Boolean TRUE (1) if the cluster has been overridden by a mechanism local to the device; otherwise, Boolean FALSE (0).
Bit 3. OUT OF SERVICE - Boolean TRUE (1) if OutOfService is TRUE; otherwise, Boolean FALSE (0)
This attribute provides four Boolean flags indicating the overall device state. Three flags are associated with the values of other optional attributes in this cluster
Multistate InputApplication TypeGroup = Bits 24 - 31 - identifies the cluster to which the attribute belongs.
Type = Bits 16 - 23 - the physical quantity for analog clusters.
Index = Bits 0 - 15 - the specific use of the cluster by the application
Represents a 32-bit integer indicating the specific use of the cluster
Curtain (Shade Configuration)Physical Closed Limit0 - 65535Indicates the physical zero position for the shade
Curtain (Shade Configuration)Motor Step Size0 - 255Indicates the angle by which the shade motor moves in one step, measured in 1/10 seconds
Curtain (Shade Configuration)StatusRepresented by a bitmask:
Bit 0 - shade operational (0 = no / 1 = yes)
Bit 1 - shade currently in use (0 = no / 1 = yes)
Bit 2 - shade direction (0 = lowering / 1 = opening)
Bit 3 - shade motor direction (0 = lowering / 1 = opening)
Indicates the shade state
Curtain (Door Lock)Basic Information Attribute Set
Curtain (Door Lock)Lock State0 - not locked, something is blocking the door
1 - locked
2 - unlocked
Indicates the lock state
Curtain (Door Lock)Lock Type0 - deadbolt
1 - magnetic
2 - other
3 - mortise
4 - rotary
5 - latch
6 - cylindrical
7 - toothed-pin lock
8 - intercom
9 - deadbolt latch
Indicates the lock type
Curtain (Door Lock)Actuator Enabled0 = disabled
1 = enabled
Indicates motor operation
Curtain (Door Lock)Door State0 - open
1 - closed
2 - error (jammed)
3 - error (forced open)
4 - error (unknown)
5 - unknown
Indicates the door state
Curtain (Door Lock)Door Open Events0 : 4294967295Number of door opening events
Curtain (Door Lock)Door Closed Events0 : 4294967295Number of door closing events
Curtain (Door Lock)Open Period0 - 65535Number of minutes during which the door was open
Curtain (Door Lock)Operational Settings Attribute Set
Curtain (Door Lock)Enable Logging0 = off
1 = on
Enables or disables logs
Curtain (Door Lock)LanguageStringInterface language (ISO-639-1)
Curtain (Door Lock)LED Settings0 - do not use the LED
1 - use except for permitted events
2 - use for all events
Backlight settings
Curtain (Door Lock)Auto Relock Time0 : 4294967295Time until automatic locking (seconds)
Curtain (Door Lock)Sound Volume0 - silent
1 - quiet
2 - loud
Device volume
Curtain (Door Lock)Operating Mode0 - normal
1 - vacation
2 - armed
3 - no RF locking
4 - continuous movement
Operating mode
Curtain (Door Lock)Supported Operating ModesRepresented by a bitmask:
Bit 0 - normal
Bit 1 - vacation
Bit 2 - armed
Bit 3 - no RF
Bit 4 - continuous movement
Supported modes
Curtain (Door Lock)Default Configuration RegisterRepresented by a bitmask:
Bit 0 - local programming
Bit 1 - keypad
Bit 2 - RF
Bit 3 - 0x00
Bit 4 - 0x00
Bit 5 - volume
Bit 6 - automatic closing
Bit 7 - LED settings
Default configuration
Curtain (Door Lock)Enable Local Programming0 - off
1 - enabled
Local programming
Curtain (Door Lock)Enable One Touch Locking0 - off
1 - enabled
One-touch locking
Curtain (Door Lock)Enable Inside Status LED0 - off
1 - enabled
Interior LED
Curtain (Door Lock)Enable Privacy Mode Button0 - off
1 - enabled
Privacy mode button
Curtain (Window Covering)Window Covering Information
Curtain (Window Covering)Window Covering Type0 - roller shade
1 - roller shade (2 motors)
2 - exterior roller shade
3 - exterior roller shade (2 motors)
4 - drapery
5 - hanging shade
6 - sliding shade
7 - tilting blind (tilt only)
8 - tilting blind (lift and tilt)
9 - projector screen
Indicates the shade type
Curtain (Window Covering)Physical Closed Limit – Lift0 - 65535Defines the maximum possible encoder position (in centimeters) for determining the height of the window covering
Curtain (Window Covering)Physical Closed Limit – Tilt0 - 65535Defines the maximum possible encoder position (tenths of a second / degrees) for positioning the window covering angle
Curtain (Window Covering)Current Position – Lif0 - 65535Defines the actual shade position (in centimeters from the window covering)
Curtain (Window Covering)Current Position – Tilt0 - 65535Defines the actual window tilt position (in tenths of a degree)
Curtain (Window Covering)Number of Actuations – Lift0 - 65535Defines the total number of open commands applied to the window
Curtain (Window Covering)Number of Actuations – Tilt0 - 65535Defines the total number of tilt commands applied to the window
Curtain (Window Covering)Config / StatusRepresented by a bitmask:
Bit 0 - device state (0 - not operating / 1 - operating)
Bit 1 - device network (0 - offline / 1 - online)
Bit 2 - device reversal (0 - normal commands / 1 - open/close commands swapped)
Bit 3 - loop operating mode (0 - open loop / 1 - closed loop)
Bit 4 - tilt loop mode (0 - open loop / 1 - closed loop)
Bit 5 - lift encoder (0 - timer control / 1 - encoder control)
Bit 6 - tilt encoder (0 - timer control / 1 - encoder control)
Bit 7 - reserved
Indicates equipment configuration and state information
Curtain (Window Covering)Current Position Lift Percentage0 - 255Defines the actual position between InstalledOpenLimitLift and InstalledClosedLimitLift58 (%)
Curtain (Window Covering)Current Position Tilt Percentage0 - 255Defines the actual position between InstalledOpenLimitTilt and InstalledClosedLimitTilt59 (%)
Curtain (Window Covering)Window Covering Settings
Curtain (Window Covering)Installed Open Limit – Lif0 - 65535Defines the open limit for lift
Curtain (Window Covering)Installed Closed Limit – Lift0 - 65535Defines the closed limit for lift
Curtain (Window Covering)Installed Open Limit – Tilt0 - 65535Defines the open limit for tilt
Curtain (Window Covering)Installed Closed Limit – Tilt0 - 65535Defines the closed limit for tilt
Curtain (Window Covering)Velocity – Lift0 - 65535Defines the lift velocity (cm per second)
Curtain (Window Covering)Acceleration Time – Lift0 - 65535Defines any acceleration time before reaching the velocity setting (in tenths of a second)
Curtain (Window Covering)Deceleration Time – Lift0 - 65535Defines any deceleration time associated with stopping positioning (in tenths of a second)
Curtain (Window Covering)ModeRepresented by a bitmask:
Bit 0 - movement direction (0 - normal / 1 - reverse)
Bit 1 - operating mode (0 - normal / 1 - calibration)
Bit 2 - motor operating mode (0 - normal / 1 - maintenance)
Bit 3 - backlight operation (0 - disabled / 1 - enabled)
Bit 4-7 - reserved
Controls device operating modes
Curtain (Window Covering)Intermediate Setpoints – LiftoctstrDefines the number of intermediate setpoints for shade lift
Curtain (Window Covering)Intermediate Setpoints – TiltoctstrDefines the number of intermediate setpoints for shade tilt
Temperature MeasurementTemperature Measurement Information
Temperature MeasurementMeasured Value-32768 : 32767Represents the temperature in degrees Celsius
Temperature MeasurementMin Measured Value-32768 : 32767Indicates the minimum MeasuredValue that can be measured
Temperature MeasurementMax Measured Value-32768 : 32767Indicates the maximum MeasuredValue that can be measured
Temperature MeasurementTolerance0 : 65535Indicates the possible error associated with Measured Value. The true value lies between (MeasuredValue - Tolerance) and (MeasuredValue + Tolerance)
Pressure MeasurementPressure Measurement Information
Pressure MeasurementMeasured Value-32768 : 32767Represents pressure in kPa as follows:
Measured value = 10 x pressure
Pressure MeasurementMin Measured Value-32768 : 32767Indicates the minimum MeasuredValue that can be measured
Pressure MeasurementMax Measured Value-32768 : 32767Indicates the maximum MeasuredValue that can be measured
Pressure MeasurementTolerance0 : 65535Indicates the possible error associated with MeasuredValue. The true value lies between (MeasuredValue - Tolerance) and (MeasuredValue + Tolerance)
Pressure MeasurementExtended Pressure Measurement Information
Pressure MeasurementScaled Value-32768 : 32767Represents pressure in pascals as follows:
ScaledValue = 10 x pressure in Pa
Pressure MeasurementMin Scaled Value-32768 : 32767Indicates the minimum ScaledValue that can be measured
Pressure MeasurementMax Scaled Value-32768 : 32767Indicates the maximum ScaledValue that can be measured
Pressure MeasurementScaled Tolerance0 : 65535Indicates the possible error. The true value lies between (ScaledValue - ScaledTolerance) and (ScaledValue + ScaledTolerance)
Pressure MeasurementScale-128 : 127Indicates the base-10 exponent (used to obtain ScaledValue)
Electrical MeasurementBasic Information
Electrical MeasurementMeasurement TypeRepresented by a bitmask:
Bit 0 - active measurement (AC)
Bit 1 - reactive measurement (AC)
Bit 2 - apparent measurement (AC)
Bit 3 - phase A measurement
Bit 4 - phase B measurement
Bit 5 - phase C measurement
Bit 6 - DC measurement
Bit 7 - harmonic measurement
Bit 8 - power quality measurement
Indicates the measurement capabilities of the device
Electrical MeasurementDC Voltage-32768 : 32767Represents the most recent DC voltage in volts (V)
Electrical MeasurementDC Voltage Min-32768 : 32767Represents the lowest DC voltage measured in V
Electrical MeasurementDC Voltage Max-32768 : 32767Represents the maximum DC voltage measured in V
Electrical MeasurementDC Current-32768 : 32767Represents the most recent DC current in amperes (A)
Electrical MeasurementDC Current Min-32768 : 32767Represents the lowest DC current in A
Electrical MeasurementDC Current Max-32768 : 32767Represents the maximum DC current in A
Electrical MeasurementDC Power-32768 : 32767Represents the most recent DC power in watts (W)
Electrical MeasurementDC Power Min-32768 : 32767Represents the lowest DC power in W
Electrical MeasurementDC Power Max-32768 : 32767Represents the maximum DC power in W
Electrical MeasurementDC Voltage Multiplier0 : 65535Multiplier for DCVoltage / DCVoltageMin / DCVoltageMax, used together with DCVoltageDivisor
Electrical MeasurementDC Voltage Divisor0 : 65535Divisor for DCVoltage / DCVoltageMin / DCVoltageMax, used together with DCVoltageMultiplier
Electrical MeasurementDC Current Multiplier0 : 65535Multiplier for DCCurrent / DCCurrentMin / DCCurrentMax, used together with DCCurrentDivisor
Electrical MeasurementDC Current Divisor0 : 65535Divisor for DCCurrent / DCCurrentMin / DCCurrentMax, used together with DCCurrentMultiplier
Electrical MeasurementDC Power Multiplier0 : 65535Multiplier for DCPower / DCPowerMin / DCPowerMax, used together with DCPowerDivisor
Electrical MeasurementDC Power Divisor0 : 65535Divisor for DCPower / DCPowerMin / DCPowerMax, used together with DCPowerMultiplier
Electrical MeasurementAC Frequency-32768 : 32767Represents the most recent AC frequency in Hz
Electrical MeasurementAC Frequency Min-32768 : 32767Minimum AC frequency in Hz
Electrical MeasurementAC Frequency Max-32768 : 32767Maximum AC frequency in Hz
Electrical MeasurementNeutral Current-32768 : 32767Line-Out AC current in amperes (A)
Electrical MeasurementTotal Active Power-8,388,607–8,388,607Current active power consumption (kW)
Electrical MeasurementTotal Reactive Power-8,388,607–8,388,607Current reactive power consumption (kW)
Electrical MeasurementTotal Apparent Power0 : 4294967295Current total consumption if there are multiple phases
Electrical MeasurementMeasured 1-11st Harmonic Current-32768 – 32767Most recent Nth harmonic current reading, unit: 10^NthHarmonicCurrentMultiplier A
Electrical MeasurementMeasured Phase 1-11st Harmonic Current-32768 – 32767Most recent Nth harmonic phase reading, unit: 10^PhaseNthHarmonicCurrentMultiplier A
Electrical MeasurementAC Frequency Multiplier0 : 65535Multiplier for AC Frequency
Electrical MeasurementAC Frequency Divisor0 : 65535Divisor for AC Frequency
Electrical MeasurementPower Multiplier0 : 4294967295Multiplier for raw power, used together with PowerDivisor
Electrical MeasurementPower Divisor0 : 4294967295Divisor for power after applying PowerMultiplier, used together with PowerMultiplier
Electrical MeasurementHarmonic Current Multiplier-128 : 127MeasuredNthHarmonicCurrent * 10^HarmonicCurrentMultiplier A
Electrical MeasurementPhase Harmonic Current Multiplier-128 : 127MeasuredPhaseNthHarmonicCurrent * 10^PhaseHarmonicCurrentMultiplier A
Electrical MeasurementLine Current0 : 65535AC mains current (single phase) in A
Electrical MeasurementActive Current-32768 – 32767Active current: + into the premises, - out of the premises
Electrical MeasurementReactive Current-32768 – 32767Reactive current: + into the premises, - out of the premises
Electrical MeasurementRMS Voltage0 : 65535RMS voltage in V
Electrical MeasurementRMS Voltage Min0 : 65535Minimum RMS voltage in V
Electrical MeasurementRMS Voltage Max0 : 65535Maximum RMS voltage in V
Electrical MeasurementRMS Current0 : 65535Most recent RMS current in A
Electrical MeasurementRMS Current Min0 : 65535Minimum RMS current in A
Electrical MeasurementRMS Current Max0 : 65535Maximum RMS current in A
Electrical MeasurementActive Power-32768 – 32767Consumption/supply in W: + into the premises, - out of the premises
Electrical MeasurementActive Power Min-32768 – 32767Minimum AC power in W
Electrical MeasurementActive Power Max-32768 – 32767Maximum AC power in W
Electrical MeasurementReactive Power-32768 – 32767Current reactive power: + into the premises, - out of the premises
Electrical MeasurementApparent Power0 : 65535Apparent power (VA)
Electrical MeasurementPower Factor-128 : 127Power factor (1/100)
Electrical MeasurementAverage RMS Voltage Measurement Period0 : 65535RMS voltage averaging period in seconds
Electrical MeasurementAverage RMS Over Voltage Counter0 : 65535Number of RMS overvoltage occurrences
Electrical MeasurementAverage RMS Under Voltage Counter0 : 65535Number of RMS undervoltage occurrences
Electrical MeasurementRMS Extreme Over Voltage Period0 : 65535Overvoltage duration in seconds
Electrical MeasurementRMS Extreme Under Voltage Period0 : 65535Undervoltage duration in seconds
Electrical MeasurementRMS Voltage Sag Period0 : 65535Voltage sag duration in seconds
Electrical MeasurementRMS Voltage Swell Period0 : 65535Voltage swell duration in seconds
Electrical MeasurementAC Voltage Multiplier0 : 65535Multiplier for InstantaneousVoltage and RMSVoltage
Electrical MeasurementAC Voltage Divisor0 : 65535Divisor for InstantaneousVoltage and RMSVoltage
Electrical MeasurementAC Current Multiplier0 : 65535Multiplier for InstantaneousCurrent and RMSCurrent
Electrical MeasurementAC Current Divisor0 : 65535Divisor for InstantaneousCurrent and RMSCurrent
Electrical MeasurementAC Power Multiplier0 : 65535Multiplier for InstantaneousPower and ActivePower
Electrical MeasurementAC Power Divisor0 : 65535Divisor for InstantaneousPower and ActivePower
  1. Network creation is now complete. Export the data for the created network as an .xml file by clicking Export.

ZigBee5.png

Note

To remove devices from the network, click Delete. Then press the button on the device being removed three times (or perform the corresponding action described in its manual). You can also remove the entire network by clicking Delete network.

Working in iRidi Studio​

Adding the ZigBee driver​

  1. Create a server project in iRidi Studio.

On the Devices tab, click the file import button Scanner / Import > ZigBee (*.xml).

ZigBee11.png

  1. Select the devices to add to the project.

ZigBee12.png

  1. The driver and all its devices appear in the project's driver tree.

ZigBee13.png

  1. You can change device names (Name); names in iRidi Studio can differ from those in the server web interface. The other parameters are locked for editing.

Configuring commands and feedback​

SendRecieve.png

To control equipment, configure commands (Commands) and feedback channels (Feedbacks). To send a command, drag it onto a graphical item and specify the value (Value) to send. To display the value from a feedback channel, drag Feedback onto a graphical item and specify how to display its value (Value).

For more information about graphical items, see Graphical item types.

The supported ZigBee device classes and their commands and feedback are described below.

Supported ZigBee functions​

On/Off​

A command for switching devices between the on and off states.

ParameterTypeAllowed valuesDescription
Set stateCommandOFF - 0 / ON - 1Set the switch state.
OffCommandAny valueSet the switch state to off.
OnCommandAny valueSet the switch state to on.
ToggleCommandAny valueToggle the switch to the opposite state.
StateFeedbacks0 / 1Current switch state.
Off Event*Feedbacks0Receive an event when the switch turns off.
On Event*Feedbacks0Receive an event when the switch turns on.
Toggle Event*Feedbacks0Receive an event when the switch state changes.

Event * - an event that a feedback channel receives from the equipment when its state changes. With the Forward value to setting, the event can be forwarded to a command to link devices. The following events also fire: EVENT TAG CHANGE and EVENT GLOBAL TAG CHANGE.


Level​

An interface for controlling a device level (light brightness, how far a door is closed, or heater output).

ParameterTypeAllowed valuesDescription
Set ValueCommand0 - 255Set the level value.
Read ValueCommand0 - 255Force a request for the level value.
Move UpCommand0 - 255Start increasing the level value (rate in units/second).
Move DownCommand0 - 255Start decreasing the level value (rate in units/second).
Step UpCommand0 - 255Increase the level value by a specified step.
Step DownCommand0 - 255Decrease the level value by a specified step.
StopCommandAny valueStop changing the level value.
ValueFeedbacks0 - 255Current level value.
Move EventFeedbacks0 / 1Gradual level change event: 0 - up, 1 - down.
Move RateFeedbacks0 - 255Rate of level change during a Move event.
Step EventFeedbacks0 / 1Step level change event: 0 - step up, 1 - step down.
Step SizeFeedbacks0 - 255Step size during a Step event.
Stop EventFeedbacks0Event indicating that the level has stopped changing.

Power​

Attributes for determining battery voltage and charge.

ParameterTypeAllowed valuesDescription
Read PowerCommandAny valueForce a request for the values.
Battery VoltageFeedback0 - 255Current battery voltage (in units of 100 mV).
Battery PercentageFeedback0 - 200Battery charge percentage:
0 - 0%,
100 - 50%,
200 - 100%,
255 - invalid value.

Binary Input​

An interface for reading a binary measurement.

ParameterTypeAllowed valuesDescription
Read stateCommandAny valueForce a request for the current value.
StateFeedback0 / 1Input state.
Out of serviceFeedback0 / 1The channel is in the out-of-service state.

Multistate Input​

An interface for reading multistate measurements.

ParameterTypeAllowed valuesDescription
Read stateCommandAny valueForce a request for the current value.
StateFeedback0 - 65535Input state.
Out of serviceFeedback0 / 1The channel is in the out-of-service state.

Curtain​

Control of automatic window coverings.

ParameterTypeAllowed valuesDescription
UpCommandAny valueOpen / raise the shade.
DownCommandAny valueClose / lower the shade.
StopCommandAny valueStop shade movement.
Lift To ValueCommand0 - 65535Open the shade to the specified value.
Lift To PercentageCommand0 - 100Open the shade to the specified percentage.
Current Lift ValueFeedback0 - 65535Current shade opening value.
Current Lift PercentageFeedback0 - 100Current shade opening percentage.
Tilt To ValueCommand0 - 65535Tilt the roller shutter to the specified value.
Tilt To PercentageCommand0 - 100Tilt the roller shutter to the specified percentage.
Current Tilt ValueFeedback0 - 65535Current roller shutter tilt value.
Current Tilt PercentageFeedback0 - 100Current roller shutter tilt percentage.

Humidity​

ParameterTypeAllowed valuesDescription
ValueFeedback0.0 - 100.0Current humidity percentage.

Temperature Measurement​

ParameterTypeAllowed valuesDescription
ValueFeedback-273.15 - 327.67 ºCCurrent temperature.

Pressure Measurement​

ParameterTypeAllowed valuesDescription
ValueFeedback-3276.7 - 3276.7 kPaCurrent atmospheric pressure.

Occupancy Sensing​

ParameterTypeAllowed valuesDescription
StateFeedback0 / 1Occupancy state.

Electrical Measurement​

ParameterTypeAllowed valuesDescription
Read MeasurementsCommandAny valueForce a request for measurements.
DC VoltageFeedbackAny valueDC voltage (V).
DC CurrentFeedbackAny valueDC current (A).
DC PowerFeedbackAny valueDC power (W).
AC FrequencyFeedbackAny valueAC frequency (Hz).
AC Total Active PowerFeedbackAny valueTotal active power (kW).
AC Total Reactive PowerFeedbackAny valueTotal reactive power (kVAr).
AC Total Apparent PowerFeedbackAny valueTotal instantaneous power (kVAr).
AC Line CurrentFeedbackAny valuePhase current.
AC Active CurrentFeedbackAny valuePhase active current.
AC Active PowerFeedbackAny valuePhase active power.
AC Reactive CurrentFeedbackAny valuePhase reactive current.
AC Reactive PowerFeedbackAny valuePhase reactive power.
AC RMS VoltageFeedbackAny valuePhase RMS voltage.
AC RMS CurrentFeedbackAny valuePhase RMS current.
AC Apparent PowerFeedbackAny valuePhase instantaneous power.

Thermostat​

ParameterTypeAllowed valuesDescription
Read ValuesCommandAny valueForce a request for all feedback values.
Set ModeCommand0 - 9Set the system mode:
0 - Off,
1 - Auto,
3 - Cool,
4 - Heat,
5 - Emergency heating,
6 - Precooling,
7 - Fan only,
8 - Dry,
9 - Sleep.
Shift Heating SetpointCommand-1.27 - 1.27Shift the heating setpoint.
Shift Cooling SetpointCommand-1.27 - 1.27Shift the cooling setpoint.
Local TemperatureFeedback-273.15 - 327.67Indoor temperature.
Outdoor TemperatureFeedback-273.15 - 327.67Outdoor temperature.
Occupancy StateFeedback0 / 1Room occupancy state.
System ModeFeedback0 - 9Current thermostat system mode:
0 - Off,
1 - Auto,
3 - Cool,
4 - Heat,
5 - Emergency heating,
6 - Precooling,
7 - Fan only,
8 - Dry,
9 - Sleep.
Running ModeFeedback0, 3, 4Current operating mode when System Mode = Auto:
0 - Off,
3 - Cool,
4 - Heat.
Occupied Cooling SetpointFeedback-273.15 - 327.67Occupied cooling setpoint for the current mode.
Occupied Heating SetpointFeedback-273.15 - 327.67Occupied heating setpoint for the current mode.
Unoccupied Cooling SetpointFeedback-273.15 - 327.67Unoccupied cooling setpoint.
Unoccupied Heating SetpointFeedback-273.15 - 327.67Unoccupied heating setpoint.