Skip to content

Values

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
SimpleIoTCoreNumberLongValueDTO
{
"type": "NUMBER_LONG",
"info": "Dimmer",
"descriptionId": "28FE2F5C44B7EED19BE6AE35D8386BCE",
"changeable": true,
"value": 120
}
Field Data type Description
value Number 64-bit floating point number with double precision and sign.
code examples
SimpleIoTCoreNumberDoubleValueDTO
{
"type": "NUMBER_DOUBLE",
"info": "Batteryvoltage",
"descriptionId": "9DD8B5F7BC9BE573A8DA87E284F71AFA",
"changeable": true,
"value": 4.2
}
Field Data type Description
value String String with a maximum length of 2.147.483.647 characters.
code examples
SimpleIoTCoreTextValueDTO
{
"type": "TEXT",
"info": "Notes",
"descriptionId": "2D6B4D84700ECD2E29B00B8482EDA29C",
"changeable": false,
"value": "This is an example String value"
}
Field Data type Description
value String Representation of a state as a string.
code examples
SimpleIoTCoreStateValueDTO
{
"type": "STATE",
"info": "Window",
"descriptionId": "5C731D9C9025DC1A943CFE8CA22103DC",
"changeable": false,
"value": "OPENED"
}
Field Data type Description
value String Color information as hexadecimal value.
code examples
SimpleIoTCoreColorValueDTO
{
"type": "COLOR",
"info": "Dimmer",
"descriptionId": "4036CBE644B0E2B0C1B689C7B6D7583C",
"changeable": false,
"value": "FFFFFF"
}

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
SimpleIoTCoreNumberLongDescriptionDTO
{
"type": "NUMBER_LONG",
"descriptionId": "28FE2F5C44B7EED19BE6AE35D8386BCE",
"measuringUnit": "%",
"minValue": 0,
"maxValue": 100,
"stepSize": 1
}
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
SimpleIoTCoreNumberDoubleDescriptionDTO
{
"type": "NUMBER_DOUBLE",
"descriptionId": "9DD8B5F7BC9BE573A8DA87E284F71AFA",
"measuringUnit": "V",
"minValue": 0.0,
"maxValue": 5.0,
"stepSize": 0.1,
"decimalPartDigits": 1
}
Field DataType Description
minLength Number Minimum number of characters
maxLength Number Maximum number of characters
code examples
SimpleIoTCoreTextDescriptionDTO
{
"type": "TEXT",
"descriptionId": "72CCE1E3AA4EEFD44F89519CF01A2B1D",
"minLength": 0,
"maxLength": 255
}
Field Data type Description
possibleStates Array An array of strings with the possible states
code examples
SimpleIoTCoreStateDescriptionDTO
{
"type": "STATE",
"descriptionId": "F4A95060064EAF3304240300B3A42C10",
"possibleStates": [
"OPENED",
"CLOSED"
]
}
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
SimpleIoTCoreHexColorDescriptionDTO
{
"type": "COLOR",
"descriptionId": "4AFC44D3B5F76BFE5C71693D861FB058",
"colorType": "HTML_HEX"
}