Logik Kommandos
AddExecutorCollectionDTO
Abschnitt betitelt „AddExecutorCollectionDTO“Hinzufügen einer Szene.
| Feld | Datentyp | Beschreibung |
| executorCollection | Object | Ein ExecutorCollection DTO Objekt. |
Codebeispiele
{ "commandId": "OwnCommandId", "executorCollection": { "name": "Executor Room 1", "description": "Light and Dimmer Room1 Executor", "executors": [ { "type": "VALUE", "position": 0, "type": "VALUE", "thingId": "91905b50-bf83-4584-a14b-d4c2800cec1e", "channelId": "Dimmer", "value": { "type": "RAW", "type": "RAW", "value": 100.0 } }, { "type": "DELAY", "position": 1, "type": "DELAY", "delay": 3000 }, { "type": "STATE", "position": 2, "type": "STATE", "thingId": "thingIdFud14_2", "channelId": "Valve", "state": "OPEN" } ] }}{ "commandId": "OwnCommandId"}CreateExecutorThingDTO
Abschnitt betitelt „CreateExecutorThingDTO“Erzeugen eines virtuellen Geräts, das zum Steuern und Anzeigen der verbundenen Szenen verwendet werden kann.
| Feld | Datentyp | Beschreibung |
| id | String | ID der ExecutorCollection für welche ein virtuelles Gerät erzeugt werden soll. |
| name | String | Der Name für das zu erzeugende Gerät. |
Codebeispiele
{ "commandId": "OwnCommandId", "id": "9ece616d-ffbb-432b-bfd7-4362a38f435a", "name": "ExecutorThing 2"}DeleteExecutorCollectionDTO
Abschnitt betitelt „DeleteExecutorCollectionDTO“Löschen einer Szene.
| Feld | Datentyp | Beschreibung |
| id | String | ID der ExecutorCollection welche gelöscht werden soll. |
Codebeispiele
{ "commandId": "OwnCommandId", "id": "9ece616d-ffbb-432b-bfd7-4362a38f435a"}ExecuteExecutorCollectionDTO
Abschnitt betitelt „ExecuteExecutorCollectionDTO“Einmaliges Ausführen einer bestehenden Szene.
| Feld | Datentyp | Beschreibung |
| id | String | Die ID einer angelegten Szene. |
Codebeispiele
{ "commandId": "OwnCommandId", "id": "9ece616d-ffbb-432b-bfd7-4362a38f435a"}ExecuteExecutorCollectionObjectDTO
Abschnitt betitelt „ExecuteExecutorCollectionObjectDTO“Einmaliges Ausführen einer bestehenden oder temporären Szene.
| Feld | Datentyp | Beschreibung |
| executorCollection | Object | Ein ExecutorCollection DTO Objekt, welches ausgeführt werden soll. |
Codebeispiele
{ "commandId": "OwnCommandId", "executorCollection": { "id": "76dd6b1f-3f6a-4c02-b6d7-3539cd03201c", "name": "Executor5", "description": "Open Valve 5 seconds", "executors": [ { "position": 0, "type": "STATE", "thingId": "f5a69feb-59f0-4a44-a243-d2420c84f562", "channelId": "Valve", "state": "OPEN" }, { "position": 1, "type": "DELAY", "delay": 5000 }, { "position": 2, "type": "STATE", "thingId": "f5a69feb-59f0-4a44-a243-d2420c84f562", "channelId": "Valve", "state": "CLOSE" } ] }}{ "commandId": "OwnCommandId", "executorCollection": { "id": "76dd6b1f-3f6a-4c02-b6d7-3539cd03201c", "name": "TestExecutor", "description": "", "executors": [ { "position": 0, "type": "VALUE", "thingId": "91905b50-bf83-4584-a14b-d4c2800cec1e", "channelId": "Dimmer", "value": { "type": "RAW", "value": 100.0 } }, { "position": 1, "type": "DELAY", "delay": 5000 }, { "position": 2, "type": "VALUE", "thingId": "f5a69feb-59f0-4a44-a243-d2420c84f562", "channelId": "Dimmer", "value": { "type": "LINK", "foreignThingId": "91905b50-bf83-4584-a14b-d4c2800cec1e", "foreignChannelId": "Dimmer" } }, { "position": 3, "type": "DELAY", "delay": 5000 }, { "position": 4, "type": "VALUE", "thingId": "f5a69feb-59f0-4a44-a243-d2420c84f562", "channelId": "Dimmer", "value": { "type": "CALCULATED", "expression": "a+b", "values": { "a": { "type": "RAW", "value": 5.0 }, "b": { "type": "RAW", "value": 5.0 } } } } ] }}GetRunningExecutorCollectionsDTO
Abschnitt betitelt „GetRunningExecutorCollectionsDTO“Anfage der momentan laufenden Szenen.
| Feld | Datentyp | Beschreibung |
| searchString | String | Optionales Feld zum Filtern der Szenen. Es wird der Name und die Beschreibung durchsucht. Ist das Feld nicht vorhanden oder leer, wird kein Filter angewendet. |
Codebeispiele
{ "commandId": "OwnCommandId"}{ "commandId": "OwnCommandId", "searchString": "floor 1"}RunningExecutorCollectionsDTO
Abschnitt betitelt „RunningExecutorCollectionsDTO“Wird als Rückgabe auf die Kommandoanfrage gesendet.
| Feld | Datentyp | Beschreibung |
| runningExecutorCollections | Array | Ein Array von aktuell ausgeführten ExecutorCollectionDTOs. |
Codebeispiele
[ { "id": "6e092f8b-a897-460e-af40-d065a5a8d06d", "name": "ExecutorTEst", "description": "", "executors": [ { "type": "VALUE", "position": 0, "thingId": "f5a69feb-59f0-4a44-a243-d2420c84f562", "channelId": "Dimmer", "value": { "type": "RAW", "value": 77 } }, { "type": "DELAY", "position": 1, "delay": 5000 }, { "type": "VALUE", "position": 2, "thingId": "f5a69feb-59f0-4a44-a243-d2420c84f562", "channelId": "Dimmer", "value": { "type": "LINK", "foreignThingId": "91905b50-bf83-4584-a14b-d4c2800cec1e", "foreignChannelId": "Dimmer" } } ] }, { "id": "b8563612-6676-4e87-97f6-ac9fc80b8ecb", "name": "Executor1", "description": "", "executors": [ { "type": "RANDOM", "position": 0, "thingId": "91905b50-bf83-4584-a14b-d4c2800cec1e", "channelId": "Dimmer" }, { "type": "DELAY", "position": 1, "delay": 50000 } ] }]StopExecutorCollectionDTO
Abschnitt betitelt „StopExecutorCollectionDTO“Stoppt die Ausführung einer Szene.
| Feld | Datentyp | Beschreibung |
| id | String | ID der ExecutorCollection welche gestoppt werden soll. |
Codebeispiele
{ "commandId": "OwnCommandId", "id": "9ece616d-ffbb-432b-bfd7-4362a38f435a"}UpdateExecutorCollectionDTO
Abschnitt betitelt „UpdateExecutorCollectionDTO“Ändern einer Szene.
| Feld | Datentyp | Beschreibung |
| executorCollection | Object | Ein ExecutorCollection DTO Objekt. Die ID muss korrekt gesetzt sein. |
Codebeispiele
{ "commandId": "OwnCommandId", "executorCollection": { "id": "76dd6b1f-3f6a-4c02-b6d7-3539cd03201c", "name": "New Name", "description": "new Description", "executors": [ { "type": "STATE", "position": 0, "thingId": "thingIdFud14_2", "channelId": "Valve", "state": "CLOSE" }, { "type": "DELAY", "position": 1, "delay": 5000 }, { "type": "STATE", "position": 2, "thingId": "thingIdFud14_2", "channelId": "Valve", "state": "OPEN" } ] }}RefreshExecutorCollectionsDTO
Abschnitt betitelt „RefreshExecutorCollectionsDTO“Die Daten der angegebenen Szenen werden erneut versendet.
| Feld | Datentyp | Beschreibung |
| executorCollectionIds | Array | Eine Auflistung von ExecutorCollection IDs welche aktualisiert werden sollen. Ist das Feld nicht vorhanden oder leer, werden alle ExecutorCollections aktualisiert. |
Codebeispiele
{ "commandId": "OwnCommandId", "executorCollectionIds": [ "252afd4a-56d6-470d-ae87-cf0433eb15a5", "971c0c85-8f5d-45b6-894a-b8026f09d6ca" ]}{ "commandId": "OwnCommandId"}AddConditionCollectionDTO
Abschnitt betitelt „AddConditionCollectionDTO“Hinzufügen einer Regel.
| Feld | Datentyp | Beschreibung |
| conditionCollection | Object | Ein ConditionCollection DTO Objekt. |
Codebeispiele
{ "commandId": "OwnCommandId", "conditionCollection": { "type": "COLLECTION", "position": 0, "name": "MY_COLLECTION", "description": "A beautiful condition collection", "conditions": [ { "type": "STATE", "position": 0, "comparator": "EQUAL", "thingId": "d5da720e-2ad6-4c86-88c0-f84390f76570", "channelId": "WindowHandle", "smartCheck": false, "state": "CLOSED" }, { "type": "OPERATOR", "position": 1, "comparator": "AND" }, { "type": "VALUE", "position": 2, "comparator": "GREATER", "thingId": "f5a69feb-59f0-4a44-a243-d2420c84f562", "channelId": "Dimmer", "smartCheck": false, "value": 45.0 } ] }}{ "commandId": "OwnCommandId"}DeleteConditionCollectionDTO
Abschnitt betitelt „DeleteConditionCollectionDTO“Löschen einer Regel.
| Feld | Datentyp | Beschreibung |
| id | String | ID der ConditionCollection |
Codebeispiele
{ "commandId": "OwnCommandId", "id": "7c6ba18c-d4ee-4254-91aa-9989bf581f68"}UpdateConditionCollectionDTO
Abschnitt betitelt „UpdateConditionCollectionDTO“Ändern einer Regel.
| Feld | Datentyp | Beschreibung |
| conditionCollection | Object | Ein ConditionCollection DTO Objekt. Die ID muss korrekt gesetzt sein. |
Codebeispiele
{ "commandId": "OwnCommandId", "conditionCollection": { "type": "COLLECTION", "position": 0, "id": "7c6ba18c-d4ee-4254-91aa-9989bf581f68", "name": "Conditon1", "description": "Controls Dimmer Bathroom", "conditions": [ { "type": "STATE", "position": 0, "comparator": "EQUAL", "thingId": "d5da720e-2ad6-4c86-88c0-f84390f76570", "channelId": "WindowHandle", "smartCheck": false, "state": "CLOSED" }, { "type": "OPERATOR", "position": 1, "comparator": "OR" }, { "type": "VALUE", "position": 2, "comparator": "GREATER", "thingId": "f5a69feb-59f0-4a44-a243-d2420c84f562", "channelId": "Dimmer", "smartCheck": false, "value": 45.0 } ] }}RefreshConditionCollectionsDTO
Abschnitt betitelt „RefreshConditionCollectionsDTO“Die Daten der angegebenen Regeln werden erneut versendet.
| Feld | Datentyp | Beschreibung |
| conditionCollectionIds | Array | Eine Auflistung von ConditionCollection IDs welche aktualisiert werden sollen. Ist das Feld nicht vorhanden oder leer, werden alle ConditionCollections aktualisiert. |
Codebeispiele
{ "commandId": "OwnCommandId", "conditionCollectionIds": [ "0809bb46-4ce7-42a3-8c78-04cb7d24a30e", "e37b6aee-2e35-4b64-82a5-8dd7a822e861" ]}{ "commandId": "OwnCommandId"}Verküpfungen
Abschnitt betitelt „Verküpfungen“AddConnectionDTO
Abschnitt betitelt „AddConnectionDTO“Hinzufügen einer Verknüpfung.
| Feld | Datentyp | Beschreibung |
| connection | Object | Ein Connection DTO Objekt. |
Codebeispiele
{ "commandId": "OwnCommandId", "connection": { "active": true, "conditionCollectionId": "0809bb46-4ce7-42a3-8c78-04cb7d24a30e", "executorCollectionId": "971c0c85-8f5d-45b6-894a-b8026f09d6ca", "name": "Connection 1", "description": "Connects cond1 and exec1" }}{ "commandId": "OwnCommandId"}DeleteConnectionDTO
Abschnitt betitelt „DeleteConnectionDTO“Löschen einer Verknüpfung.
| Feld | Datentyp | Beschreibung |
| id | String | ID der Connection, welche gelöscht werden soll. |
Codebeispiele
{ "commandId": "OwnCommandId", "id": "1ff100d2-d3ab-484f-b36f-1e84c6a7a4db"}SetConnectionEnabledDTO
Abschnitt betitelt „SetConnectionEnabledDTO“Aktiviert oder deaktiviert eine Verknüpfung ohne diese zu löschen.
| Feld | Datentyp | Beschreibung |
| id | String | ID der Connection. |
| enabled | Boolean | Flag ob die Verknüpfung aktiv sein soll oder nicht. |
Codebeispiele
{ "commandId": "OwnCommandId", "id": "1ff100d2-d3ab-484f-b36f-1e84c6a7a4db", "enabled": true}UpdateConnectionDTO
Abschnitt betitelt „UpdateConnectionDTO“Aktualisieren einer Verknüpfung.
| Feld | Datentyp | Beschreibung |
| connection | Object | Ein Connection DTO Objekt. Die ID muss korrekt gesetzt sein. |
Codebeispiele
{ "commandId": "OwnCommandId", "connection": { "id": "2d46cc1b-5780-4d4e-b5de-293ec346d6b7", "active": false, "conditionCollectionId": "0809bb46-4ce7-42a3-8c78-04cb7d24a30e", "executorCollectionId": "971c0c85-8f5d-45b6-894a-b8026f09d6ca", "name": "Connection 1", "description": "Connects cond1 and exec1" }}RefreshConnectionsDTO
Abschnitt betitelt „RefreshConnectionsDTO“Die Daten der angegebenen Verknüpfungen werden erneut versendet.
| Feld | Datentyp | Beschreibung |
| connectionIds | Array | Eine Auflistung von Connections IDs welche aktualisiert werden sollen. Ist das Feld nicht vorhanden oder leer, werden alle Connections aktualisiert. |
Codebeispiele
{ "commandId": "OwnCommandId", "connectionIds": [ "da12f7c7-4126-46f1-a811-32dac2bbf2c7", "fe742922-ddf1-4ea2-a52d-d29435359bfa" ]}{ "commandId": "OwnCommandId"}Timer Kommandos
Abschnitt betitelt „Timer Kommandos“CreateTimerDTO
Abschnitt betitelt „CreateTimerDTO“Einen neuen Timer mit dem gewünschten Namen erzeugen.
| Feld | Datentyp | Beschreibung |
| name | String | Der Name des neuen Timers. |
Codebeispiele
{ "commandId": "OwnCommandId", "name": "Azure timer"}UpdateTimerDTO
Abschnitt betitelt „UpdateTimerDTO“Timer Einstellungen ändern.
| Feld | Datentyp | Beschreibung |
| timer | Object | Ein SimpleIoTCoreTimer DTO Objekt. Die ID muss korrekt gesetzt sein. |
Codebeispiele
{ "commandId": "OwnCommandId", "timer": { "id": "7c6ba18c-d4ee-4254-91aa-9989bf581f68", "type": "TIMER", "enabled": true, "visible": true, "time": 0, "offset": 0, "period": 15, "selectedDays": [ "MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY", "SATURDAY", "SUNDAY" ] }}SetTimerEnabledDTO
Abschnitt betitelt „SetTimerEnabledDTO“Timer aktivieren/deaktivieren.
| Feld | Datentyp | Beschreibung |
| id | String | Die eindeutige Timer ID. |
| enabled | Boolean | Flag ob der Timer aktiviert ist oder nicht. |
Codebeispiele
{ "commandId": "OwnCommandId", "id": "7c6ba18c-d4ee-4254-91aa-9989bf581f68", "enabled": false}