Property | Description |
config-description.uri | The URI of this description within the ConfigDescriptionRegistry (mandatory). |
parameter | The description of a concrete configuration parameter (optional). |
parameter.name | The name of the configuration parameter (mandatory). |
parameter.type | The data type of the configuration parameter (mandatory). |
parameter.min | The minimal value for numeric types, or the minimal length of strings. Note that the value of any options may be outside of this value (optional). |
parameter.max | The maximum value for numeric types, or the maximum length of strings. Note that the value of any options may be outside of this value (optional). |
parameter.step | The value granularity for a numeric value (optional). |
parameter.pattern | The regular expression for a text type (optional). |
parameter.required | Specifies whether the value is required (optional, default: false). |
parameter.readOnly | Specifies whether the value is read-only (optional). |
parameter.multiple | Specifies whether multiple selections of options are allowed (optional). |
parameter.groupName | Sets a group name for this parameter (optional). |
parameter.unit | Specifies the unit of measurements. The unit declaration in the parameter definition shown above contains the set of valid units. The unit must only be set if the type of the parameter is either integer or decimal (optional). |
advanced | Specifies that this is an advanced parameter. Advanced parameters may be hidden by a UI (optional). |
verify | Specifies that this is parameter requires a verification stage with the user before sending. Parameters flagged with *verify=true* could be considered dangerous and should be protected from accidental use by a UI - e.g. by adding an "Are you sure" prompt (optional). |
context | The context of the configuration parameter (optional). |
required | The flag indicating if the configuration parameter has to be set or not (deprecated, optional, default: false). |
default | The default value of the configuration parameter (optional). If `multiple` is true you can define a list of default values, separating them by a comma (`,`). |
label | A human-readable label for the configuration parameter (optional). |
description | A human-readable description for the configuration parameter (optional). |
unitLabel | The unit label represents a human-readable label for the unit. It can also be used to provide unit labels for natural language units as iterations, runs, etc. The unit label must only be set if the type of the parameter is either integer or decimal (optional). |
option | The element definition of a static selection list (optional). |
option.value | The value of the selection list element. Note that the value may be outside of the range specified in the min/max if this is specified. |
multipleLimit | If `multiple` is true, sets the maximum number of options that can be selected (optional). |
limitToOptions | If true (default) will only allow the user to select items in the options list. If false, will allow the user to enter other text (optional). |
criteria | The filter criteria for values of a dynamic selection list (optional). |
criteria.name | The name of the context related filter. |
### Supported Contexts
Context is used to provide some semantic details about the parameter.
The UIs use it to render different kind of input widgets.
The following contexts require a specific format of the content:
Name | Type | Format | Sample implementation |
network-address | text | IPv4,IPv6, domain name | <input type="text"/> |
serial-port | text | Serial port name, e.g. COM1 | custom input field |
password | text | alphanumeric characters | <input type="password"/> |
password-create | text | alphanumeric characters | custom password input |
color | text | #000000 - #ffffff (hex color) | <input type="color"/> |
date | text | YYYY-MM-DD | <input type="date"/> |
datetime | text | YYYY-MM-DD hh:mm | custom input field |
email | text | username@domain.com | <input type="email"/> |
month | text | month of year | custom input field |
week | integer | week of year | custom input field |
dayOfWeek | text | MON, TUE, WED, THU, FRI, SAT, SUN
| custom input field |
time | text/integer | hh:mm:ss/milliseconds since epoch | <input type="time"/> |
telephone | text | telephone number | custom input field |
url | text | web url | <input type="url"/> |
item | text | Item name | custom input field |
thing | text | UID of a thing | custom input field |
group | text | group name to which this parameter belongs | |
tag | text | tag name | custom input field |
service | text | service name | custom input field |
channel | text | UID of a channel
| custom input field |
rule | text | UID of a rule
| custom input field |
location | text | latitude,longitude[,altitude]
| custom input field |
Further, the