The channel and parameter data always contain the current value, which is encapsulated in a container object.
There are the following internal data types for values:
Data type
Description
NUMBER_LONG
64-bit integer with sign.
NUMBER_DOUBLE
64-bit floating point number with double precision and sign.
TEXT
String with a maximum length of 2.147.483.647 characters.
STATE
Representation of a state as a string.
COLOR
Color information as a string.
All containers contain the following fields; in addition, each data type container has specific fields.
Field
Data type
Description
type
String
The internal data type of the value.
info
String
Optional information of the channel
descriptionId
String
The ID of the value description.
changeable
Boolean
Flag whether the value is changeable.
Field
Data type
Description
value
Number
64-bit integer with sign.
code examples
"descriptionId" : " 28FE2F5C44B7EED19BE6AE35D8386BCE " ,
Field
Data type
Description
value
Number
64-bit floating point number with double precision and sign.
code examples
"info" : " Batteryvoltage " ,
"descriptionId" : " 9DD8B5F7BC9BE573A8DA87E284F71AFA " ,
Field
Data type
Description
value
String
String with a maximum length of 2.147.483.647 characters.
code examples
"descriptionId" : " 2D6B4D84700ECD2E29B00B8482EDA29C " ,
"value" : " This is an example String value "
Field
Data type
Description
value
String
Representation of a state as a string.
code examples
"descriptionId" : " 5C731D9C9025DC1A943CFE8CA22103DC " ,
Field
Data type
Description
value
String
Color information as hexadecimal value.
code examples
"descriptionId" : " 4036CBE644B0E2B0C1B689C7B6D7583C " ,
Description containers are used to provide a detailed specification of how values are to be interpreted or which ranges are possible. There is a description container for each internal data type in order to fulfil the specific requirements.
Each container has its own ID, which can also be used by several channels at the same time. The ID is the same across all systems, but may differ between software versions.
Each container contains the following fields, and each description container also has specific fields.
Field
Data type
Description
type
String
The internal data type for which the description applies
descriptionId
String
The ID of the value description
Field
Data type
Description
minValue
Number
Minimum value
maxValue
Number
Maximum value
stepSize
Number
Optional step size when setting the value. Default: 1
measuringUnit
String
Optional measuring unit of the value
code examples
"descriptionId" : " 28FE2F5C44B7EED19BE6AE35D8386BCE " ,
Field
Data type
Description
minValue
Number
Minimum value
maxValue
Number
Maximum value
stepSize
Number
Optional step size when setting the value. Default: 1.0
decimalPartDigits
Number
Optional decimal places of the value. Default: 2.0
measuringUnit
String
Optional measuring unit of the value
code examples
"descriptionId" : " 9DD8B5F7BC9BE573A8DA87E284F71AFA " ,
Field
DataType
Description
minLength
Number
Minimum number of characters
maxLength
Number
Maximum number of characters
code examples
"descriptionId" : " 72CCE1E3AA4EEFD44F89519CF01A2B1D " ,
Field
Data type
Description
possibleStates
Array
An array of strings with the possible states
code examples
"descriptionId" : " F4A95060064EAF3304240300B3A42C10 " ,
Field
Data type
Description
colorType
String
Information on how the value is to be interpreted
The following values are possible in the colorType field:
Type
Description
HTML_HEX
Hexadecimal color value (RRGGBB) without leading hash
code examples
"descriptionId" : " 4AFC44D3B5F76BFE5C71693D861FB058 " ,