Field with the drop-down list of devices. Devices are selected from “item” tags with “type” attribute. The list of devices will contain only those devices which have “type” attribute value in the list of “filter” attribute values if in the field description “filter” attribute is present.

For example:

filter=”door-sensor,leak-sensor,switch”
devices with “type” attribute the value of which equals to door-sensor or leak-sensor or switch will be included into the list

If the filter attribute is not specified then in the drop-down list all the devices with “item” tag will be displayed.

Example:

<item type="devices-list" name="SENS1" filter="leak-sensor,door-sensor,switch" comment="Leakage sensor sensing element " required="1" />

List of attributes:

Attribute Value Description
name string Include the name of script variable which has to contain capital letters and numbers
For example: SENS1 or VAR5
type devices-list
required true, false Denote that the field is to be filled in obviously
filter strings array Select the devices with values of types specified in the array. For example: filter:[“door-sensor”,”leak-sensor”,”switch”]. If in the filter only “switch” type is specified then after device selection the button for autotraining the button will appear. It provides the button quick search in a long list.
desc line Field description. It is displayed to the left of field by default. For description in another language add to “desc” attribute the hyphen and language name and enclose them in quotation marks. For example: “desc-ru”:””, “desc-en”:””, ”desc-ukr”:”” .
descWidth integer value The width of field description, pixels. Equals to 100 by default.
descAlign left, right, top Field description layout respectively to field. It can be placed leftward, rightward and at the top.
width integer value Field width, pixels.
flex floating-point number, it can be integer Field width respectively to screen size and sizes of other fields that are placed in one string with this field.
For example:
flex:1 – if the string contains one field then it will be stretched up to the right hand border of the form.
flex:0.5 – it will be stretched up to the middle of the form
flex:2 – field width will be greater than other fields have with flex:1
If “width” attribute is present then “flex” attribute won’t be applicable.