Skip to content

Things

Devices always have channels and parameters. Channels represent individual sensors or actuators of a device. The (operating) parameters, on the other hand, are software or hardware-based settings that influence the behaviour of the device.

All specialised devices are based on this object. It contains all the basic fields that are minimally required for a device.

Field Data type Description
id String Unique ID of the device in the system.
type String Basic Device Type.
name String The assigned name of the device.
refId String Reference ID for specifying the device type.
channels Object Each field of the object represents a channel for which a value container is stored.
parameters Object Each field of the object represents a parameter for which a container value is stored.

The following values can be in the “type” field.

Type Description
GENERIC Basic device data type for all devices.
ENOCEAN EnOcean-based devices.
TIMER Virtual timer device.
code examples
SimpleIoTCoreThingDTO 1
{
"id": "78e29422-75d3-48a2-b51e-aa57cffb67a6",
"name": "Executor1",
"refId": "generic.actor-container",
"type": "GENERIC",
"channels": {
"ExecutorCollection": {
"type": "STATE",
"descriptionId": "0F2E23CC08FA7A6677C8B34147134F5D",
"changeable": true,
"value": "STOPPED"
}
}
}
SimpleIoTCoreThingDTO 2
{
"id": "5e79f680-2a96-49c8-8224-b35ee9d637c8",
"name": "Heater control 0",
"refId": "unknown",
"type": "GENERIC",
"channels": {
"OperatingMode": {
"type": "STATE",
"descriptionId": "DFA38DFEDC00C9242F78C77F595AA455",
"changeable": true,
"value": "NORMAL_MODE"
},
"Temperature": {
"type": "NUMBER_DOUBLE",
"descriptionId": "951D86219EBEA29CAFEFEDB8340619DE",
"changeable": true,
"value": 0
},
"SetPoint": {
"type": "NUMBER_DOUBLE",
"descriptionId": "AFA6AB10C4BC33F920B67E4261AB3410",
"changeable": true,
"value": 8
},
"Heating": {
"type": "STATE",
"descriptionId": "1276DCDD634F711EFD017C013BE819B8",
"changeable": false,
"value": "UNKNOWN"
},
"Priority": {
"type": "STATE",
"descriptionId": "7FF06AB573E6FA5BFF463DC19F0983E0",
"changeable": true,
"value": "OFF"
}
},
"parameters": {
"General settings--Trigger only if changed": {
"type": "STATE",
"descriptionId": "6FC32A753246132013FF3A6B38D42D18",
"changeable": true,
"value": "true"
},
"Device settings--Priority": {
"type": "STATE",
"descriptionId": "6FC32A753246132013FF3A6B38D42D18",
"changeable": true,
"value": "false"
},
"Device settings--Time base": {
"type": "NUMBER_DOUBLE",
"descriptionId": "71415BB9E79CC237F9D183C84F337022",
"changeable": true,
"value": 15
},
"Device settings--Control mode": {
"type": "STATE",
"descriptionId": "84CCB9E475EC2664AEBD86397E92260F",
"changeable": true,
"value": "PWM"
},
"Device settings--Hysteresis": {
"type": "NUMBER_DOUBLE",
"descriptionId": "D7A4D9A8DA15AB2DFAED6E6B51C8A9EB",
"changeable": true,
"value": 4
}
}
}

Extension of the SimpleIoTCoreThing with EnOcean-relevant information.

The following additional fields are available:

Field Data type Description
signalStrength Number Signal strength of the last received signal in per cent. 0 - 100%
acknowledgeChannels Object Each field of the object represents a receive channel. The field value is the EURID used for the channel or an empty string if no ID is assigned.
transmissionChannels Object Each field of the object represents a transmission channel. The field value is the transmission ID used for one of the available EnOcean gateways or an empty string if no ID is assigned.
code examples
SimpleIoTCoreEnOceanDTO 1
{
"id": "d5da720e-2ad6-4c86-88c0-f84390f76570",
"name": "Fenstergriff",
"refId": "enocean.hoppe.windowhandle",
"type": "ENOCEAN",
"channels": {
"WindowHandle": {
"type": "STATE",
"descriptionId": "7F5679889E7910087244AE399DB8CECA",
"changeable": false,
"value": "CLOSED"
}
},
"signalStrength": 93,
"assignableAcknowledgeNames": [
"default"
],
"possibleTransmissionNames": [],
"acknowledgeChannels": {
"default": "1104311"
},
"transmissionChannels": {}
}
SimpleIoTCoreEnOceanDTO 2
{
"id": "dec83c14-1fdc-439b-844c-1f01d4f58194",
"name": "FSR14-2x",
"refId": "enocean.eltako.fsr14-2x",
"type": "ENOCEAN",
"channels": {
"Switch": {
"type": "STATE",
"descriptionId": "7FF06AB573E6FA5BFF463DC19F0983E0",
"changeable": true,
"value": "OFF"
},
"Priority": {
"type": "STATE",
"descriptionId": "7FF06AB573E6FA5BFF463DC19F0983E0",
"changeable": true,
"value": "OFF"
}
},
"parameters": {
"Device settings--Priority": {
"type": "STATE",
"descriptionId": "6FC32A753246132013FF3A6B38D42D18",
"changeable": true,
"value": "false"
}
},
"signalStrength": 0,
"assignableAcknowledgeNames": [
"default"
],
"possibleTransmissionNames": [
"default"
],
"acknowledgeChannels": {},
"transmissionChannels": {
"default": "4291825664"
}
}

Extension of the SimpleIoTCoreThing with timer-specific fields.

The following additional fields are available:

Field Data type Description
enabled Boolean Indicates whether the timer is enabled or not.
visible Boolean Specifies whether the timer is visible (clients only).
mode String Operating mode of the timer.
timerType String Type of the timer.
time Number A time specification as a Unix timestamp. The time stamp is specified for values with a date regardless of the local time zone in UTC+0. The time is calculated modulo 86400. The time is calculated modulo 86400. Otherwise, the day and month are calculated from the date or value set in the time field for recurring execution.
offset Number Time offset to be applied in minutes (+/-).
period Number Specification of the minutes for the periodic triggering.
selectedDays Array Selected days as a string array.

The following types can be used in the “timerType” field:

Type Description
ONCE Execution of the timer once on a day at a specific time.
DAILY Daily execution of the timer at a specific time.
WEEKLY Weekly execution of the timer at a specific time.
MONTHLY Monthly execution of the timer on a specific day at a specific time.
YEARLY Yearly execution of the timer on a specific day at a specific time.
SELECTED_DAYS Execution of the timer on specific days of the week.
PERIODIC Periodic execution of the timer after a defined interval.

The following values are possible in the “mode” field.

Mode Description
NORMAL Normal operating mode
SUNRISE Timer triggering refers to the calculated sunrise incl. offset.
SUNSET Timer triggering refers to the calculated sunset incl. offset.

An array with the selected days can be stored in the “selectedDays” field.

Day


MONDAY


TUESDAY


WEDNESDAY


THURSDAY


FRIDAY


SATURDAY


SUNDAY


The following table shows the evaluation of the time field depending on the timer type. As an example, timeStamp = 1707150600 is selected, this corresponds to Tuesday, 05.02.2024 16:30:00 UTC+0.

Type Auswertung
ONCE Tuesday, 05.02.2024 at 16:30:00
DAILY Daily at 16:30:00
WEEKLY Tuesdays at 16:30:00
MONTHLY immer am 05. eines Monats um 16:30:00 Uhr
YEARLY Always on 05.02. at 16:30:00
SELECTED_DAYS At 16:30:00 on the selected days
PERIODIC Field is not evaluated
code examples
SimpleIoTCoreTimerDTO 1
{
"id": "83b42f35-bd4d-460a-953b-38e2e22deebc",
"name": "timer_once",
"refId": "generic.virtual.timer",
"type": "TIMER",
"channels": {
"TimerOn": {
"type": "STATE",
"descriptionId": "7FF06AB573E6FA5BFF463DC19F0983E0",
"changeable": true,
"value": "ON"
},
"Trigger": {
"type": "STATE",
"descriptionId": "02595BE69384636622E81F8AD7978D70",
"changeable": false,
"value": "NOT_TRIGGERED"
}
},
"parameters": {},
"enabled": true,
"visible": true,
"mode": "NORMAL",
"time": 1706094480,
"offset": 0,
"timerType": "ONCE",
"period": 0,
"selectedDays": []
}
SimpleIoTCoreTimerDTO 2
{
"id": "6daa1851-aacc-4b80-97dc-89053622d67a",
"name": "Timer_periodic",
"refId": "generic.virtual.timer",
"type": "TIMER",
"channels": {
"TimerOn": {
"type": "STATE",
"descriptionId": "7FF06AB573E6FA5BFF463DC19F0983E0",
"changeable": true,
"value": "ON"
},
"Trigger": {
"type": "STATE",
"descriptionId": "02595BE69384636622E81F8AD7978D70",
"changeable": false,
"value": "NOT_TRIGGERED"
}
},
"parameters": {},
"enabled": true,
"visible": true,
"mode": "NORMAL",
"time": 1705316940,
"offset": 0,
"timerType": "PERIODIC",
"period": 180,
"selectedDays": []
}
SimpleIoTCoreTimerDTO 3
{
"id": "e9bb116f-033b-493a-a615-09712d84996e",
"name": "Timer_sunrise",
"refId": "generic.virtual.timer",
"type": "TIMER",
"channels": {
"TimerOn": {
"type": "STATE",
"descriptionId": "7FF06AB573E6FA5BFF463DC19F0983E0",
"changeable": true,
"value": "ON"
},
"Trigger": {
"type": "STATE",
"descriptionId": "02595BE69384636622E81F8AD7978D70",
"changeable": false,
"value": "NOT_TRIGGERED"
}
},
"parameters": {},
"enabled": true,
"visible": true,
"mode": "SUNRISE",
"time": 1705317000,
"offset": 5,
"timerType": "SELECTED_DAYS",
"period": 0,
"selectedDays": [
"SATURDAY",
"SUNDAY"
]
}
Field Data type Description
id String Unique ID of the device in the system.
code examples
SimpleIoTCoreThingDeletedDTO
{
"id": "76dd6b1f-3f6a-4c02-b6d7-3539cd03201c"
}