Logic Commands
Add a scene.
Field | Data type | Description |
---|---|---|
executorCollection | Object | An ExecutorCollection DTO object. |
The ID of the ExecutorCollection object is assigned by the server after the internal object has been created. If an ID has already been set, this is not used in the created object!
Create a virtual device that can be used to control and display the connected scenes.
Field | Data type | Description |
---|---|---|
id | String | ID of the ExecutorCollection for which a virtual device is to be created. |
name | String | The name of the device to be created. |
Several virtual devices can be created for a scene.JSON Example
Delete a scene.
Field | Data type | Description |
---|---|---|
id | String | ID of the ExecutorCollection to be deleted. |
Execute an existing scene once.
Field | Data type | Description |
---|---|---|
id | String | The ID of an existing scene. |
Execute an existing or temporary scene once.
Field | Data type | Description |
---|---|---|
executorCollection | Object | An ExecutorCollection DTO object that is to be executed. |
The ExecutorCollection DTO object for the "executorCollection" field does not need to be added to the system beforehand. It is executed once and is not saved.
Retrieves all currently executed scenes.
Field | Data type | Description |
---|---|---|
searchString | String | Optional field for filtering the scenes. The name and description are searched. If the field does not exist or is empty, no filter is applied. |
Sent as a return to the command request.
Field | Data type | Description |
---|---|---|
runningExecutorCollections | Array | An array of currently executed ExecutorCollectionDTOs. |
Stops the execution of a scene.
Field | Data type | Description |
---|---|---|
id | String | ID of the ExecutorCollection to be stopped. |
Change a scene.
Field | Data type | Description |
---|---|---|
ExecutorCollection | Object | An ExecutorCollection DTO object. The ID must be set correctly. |
The data of the specified scenes is resent.
Field | Data type | Description |
---|---|---|
ExecutorCollectionIds | Array | A list of ExecutorCollection IDs that are to be updated. If the field does not exist or is empty, all ExecutorCollections are updated. |
Add a rule.
Field | Data type | Description |
---|---|---|
conditionCollection | Object | A ConditionCollection DTO object. |
The ID of the ConditionCollection object is assigned by the server after the internal object has been created. If an ID has already been set, this is not used in the created object!
Delete a rule.
Field | Data type | Description |
---|---|---|
id | String | ID of the ConditionCollection |
Change a rule.
Dield | Data type | Description |
---|---|---|
conditionCollection | Object | A ConditionCollection DTO object. The ID must be set correctly |
The data of the specified rules is sent again.
Field | Data type | Description |
---|---|---|
conditionCollectionIds | Array | A list of ConditionCollection IDs that are to be updated. If the field does not exist or is empty, all ConditionCollections are updated. |
Add a connection.
Field | Data type | Description |
---|---|---|
connection | Object | A Connection DTO object. |
The ID of the Connection object is assigned by the server after the internal object has been created. If an ID has already been set, this is not used in the created object!
Delete a connection.
Field | Data type | Description |
---|---|---|
id | String | ID of the Connection to be deleted. |
Activates or deactivates a connection without deleting it.
Field | Data type | Description |
---|---|---|
id | String | ID of the Connection. |
enabled | Boolean | Flag whether the link should be active or not. |
Update a connection.
Field | Data type | Description |
---|---|---|
connection | Object | A Connection DTO object. The ID must be set correctly. |
The data of the specified connections is resent.
Field | Data type | Description |
---|---|---|
connectionIds | Array | A list of Connection IDs that are to be updated. If the field does not exist or is empty, all Connections are updated. |
Create a new timer with the desired name.
Field | Data type | Description |
---|---|---|
name | String | The name of the new timer. |
Change timer settings.
Field | Data type | Description |
---|---|---|
timer | Object | A SimpleIoTCoreTimer DTO object. The ID must be set correctly. |
Only the timer-specific fields as described in SimpleIoTCoreTimerDTO are supported. The "channels" and "parameters" field is not evaluated!
Activate/deactivate timer.
Field | Data type | Description |
---|---|---|
id | String | The unique timer ID. |
enabled | Boolean | Flag whether the timer is enabled or not. |