IoT Core Datenmodell
Übersicht
Abschnitt betitelt „Übersicht“Das IoT Core Datenmodell ist in unterschiedliche Bereiche unterteilt.
Simple IoT Core
Abschnitt betitelt „Simple IoT Core“Der Simple IoT Core beschreibt ein Datenmodell zur Übertragung von Geräte- und Statusinformationen.
IoT Logic Core
Abschnitt betitelt „IoT Logic Core“Im Logic Core werden Datatransferobjects (DTOs) mit Bezug auf Regeln, Szenen, Verknüpfungen und Timer beschrieben.
IoT Command Core
Abschnitt betitelt „IoT Command Core“Der Command Core beinhaltet alle Kommando DTOs für die Interaktion mit dem Gateway.
Diese unterteilen sich in:
IoT Template Core
Abschnitt betitelt „IoT Template Core“Im Template Core werden relevante DTOs zur teilautomatisierten Verwaltung per Vorlage beschrieben.
DTOContainer
Abschnitt betitelt „DTOContainer“Alle Objekte werden in einen Container verpackt und übertragen. Der Container enthält grundlegende Transportinformationen wie den Absender (nodeId) und die Zeit (timestamp).
Der Objekttyp des DTO wird im Feld “type” übertragen.
| Feld | Datentype | Beschreibung |
| nodeId | String | Eine eindeutige ID, welche das Gateway identifiziert. |
| timestamp | Number | Zeitstempel der Nachricht. Unterschied, gemessen in Millisekunden, zwischen der aktuellen Zeit und dem 01.01.1970 00:00 Uhr basierend auf der UTC Zeitzone. |
| type | String | Typ Information des dto Objektes. |
| dto | Object | Das eigentliche Datenobjekt. |
Objekt- und Kommandotypen
Abschnitt betitelt „Objekt- und Kommandotypen“Für das im DTO Container vorhandene Feld “type” sind die folgenden Typen möglich.
Objekte
Abschnitt betitelt „Objekte“| Type | Resource Path | DTO |
| ### NODE_STATUS | node/status | SimpleIoTCoreGatewayDTO |
| ### NODE_TEMPLATE_RESULT | node/template/result | TemplateImportResultDTO |
| ### NODE_ENOCEAN_GATEWAY | node/enocean/gateway | EnOceanGatewayInfoDTO |
| ### DESCRIPTION_THING | description/thing | SupportedThingInfoDTO |
| ### THING | thing | SimpleIoTCoreThingDTOSimpleIoTCoreEnOceanDTOSimpleIoTCoreTimerDTO |
| ### THING_DELETED | thing/deleted | SimpleIoTCoreThingDeletedDTO |
| ### DESCRIPTION_VALUE | description/value | SimpleIoTCoreNumberLongDescriptionDTOSimpleIoTCoreNumberDoubleDescriptionDTOSimpleIoTCoreTextDescriptionDTOSimpleIoTCoreStateDescriptionDTOSimpleIoTCoreHexColorDescriptionDTO |
| ### LOGIC_RULE | logic/rule | ConditionCollectionDTO |
| ### LOGIC_RULE_DELETED | logic/rule/deleted | ConditionCollectionDeletedDTO |
| ### LOGIC_SCENE | logic/scene | ExecutorCollectionDTO |
| ### LOGIC_SCENE_DELETED | logic/scene/deleted | ExecutorCollectionDeletedDTO |
| ### LOGIC_CONNECTION | logic/connection | ConnectionDTO |
| ### LOGIC_CONNECTION_DELETED | logic/connection/deleted | ConnectionDeletedDTO |
| ### LOGIC_SCENE_RUNNING | logic/scene/running | RunningExecutorCollectionsDTO |
| ### COMMAND_RESULT | command/result | CommandResultDTO |
| ### OBJECT_METAINFO | object/metainfo | ObjectMetaInfoDTO |
Kommandos
Abschnitt betitelt „Kommandos“| Type | Resource Path | DTO |
| ### NODE_UPDATE | node/update | UpdateFirmwareDTO |
| ### NODE_RESTART | node/restart | RestartSystemDTO |
| ### NODE_TEMPLATE_IMPORT | node/template/import | ImportTemplateDTO |
| ### NODE_STATUS_INTERVAL | node/status/interval | SetGatewayStatusIntervalDTO |
| ### NODE_PAIRING | node/pairing | SetAutoPairingEnabledDTO |
| ### DESCRIPTION_THING_REFRESH | description/thing/refresh | RefreshSupportedThingsDTO |
| ### NODE_ENOCEAN_GATEWAY_REFRESH | node/enocean/gateway/refresh | RefreshEnOceanGatewaysDTO |
| ### NODE_ENOCEAN_GATEWAY_ACTIVE | node/enocean/gateway/active | SetEnOceanGatewayActiveDTO |
| ### THING_CREATE | thing/create | CreateThingDTO |
| ### THING_DELETE | thing/delete | DeleteThingDTO |
| ### THING_REFRESH | thing/refresh | RefreshThingsDTO |
| ### THING_RENAME | thing/rename | RenameThingDTO |
| ### THING_CHANNEL_SET | thing/channel/set | SetThingChannelValueDTO |
| ### THING_PARAMETER_SET | thing/parameter/set | SetThingParameterDTO |
| ### THING_ENOCEAN_EURID_ASSIGN | thing/enocean/eurid/assign | AssignAcknowledgeIdDTO |
| ### THING_ENOCEAN_PAIRING_SEND | thing/enocean/pairing/send | SendPairingSignalDTO |
| ### DESCRIPTION_VALUE_REFRESH | description/value/refresh | RefreshDescriptionsDTO |
| ### TIMER_CREATE | timer/create | CreateTimerDTO |
| ### TIMER_UPDATE | timer/update | UpdateTimerDTO |
| ### TIMER_ENABLE | timer/enable | SetTimerEnabledDTO |
| ### LOGIC_RULE_ADD | logic/rule/add | AddConditionCollectionDTO |
| ### LOGIC_RULE_UPDATE | logic/rule/update | UpdateConditionCollectionDTO |
| ### LOGIC_RULE_DELETE | logic/rule/delete | DeleteConditionCollectionDTO |
| ### LOGIC_RULE_REFRESH | logic/rule/refresh | RefreshConditionCollectionsDTO |
| ### LOGIC_SCENE_ADD | logic/scene/add | AddExecutorCollectionDTO |
| ### LOGIC_SCENE_UPDATE | logic/scene/update | UpdateExecutorCollectionDTO |
| ### LOGIC_SCENE_DELETE | logic/scene/delete | DeleteExecutorCollectionDTO |
| ### LOGIC_SCENE_REFRESH | logic/scene/refresh | RefreshExecutorCollectionsDTO |
| ### LOGIC_SCENE_EXECUTE | logic/scene/execute | ExecuteExecutorCollectionDTO |
| ### LOGIC_SCENE_EXECUTE_OBJECT | logic/scene/execute/object | ExecuteExecutorCollectionObjectDTO |
| ### LOGIC_SCENE_RUNNING_GET | logic/scene/running/get | GetRunningExecutorCollectionsDTO |
| ### LOGIC_SCENE_STOP | logic/scene/stop | StopExecutorCollectionDTO |
| ### LOGIC_SCENE_THING_CREATE | logic/scene/thing/create | CreateExecutorThingDTO |
| ### LOGIC_CONNECTION_ADD | logic/connection/add | AddConnectionDTO |
| ### LOGIC_CONNECTION_UPDATE | logic/connection/update | UpdateConnectionDTO |
| ### LOGIC_CONNECTION_DELETE | logic/connection/delete | DeleteConnectionDTO |
| ### LOGIC_CONNECTION_REFRESH | logic/connection/refresh | RefreshConnectionsDTO |
| ### LOGIC_CONNECTION_ENABLE | logic/connection/enable | SetConnectionEnabledDTO |
