Scene orchestration is a feature that is provided by the rules engine of IoT Platform. Scene orchestration allows you to create automated workflows in a visualized manner. You can define scene orchestration rules to configure complex interactions between devices, and then deploy the rules in the cloud or at the edge.
To create a scene orchestration rule, perform the following steps: Log on to the IoT Platform console and choose . On the page that appears, create a scene orchestration rule. Each scene orchestration rule consists of triggers, conditions, and actions. This rule model is called the TCA model. TCA is short for triggers, conditions, and actions.
For more information about the instance, see View the endpoint of an instance.
When an event or property change that is specified in a trigger occurs, IoT Platform determines whether to perform the actions that are specified in the rule based on the specified condition. The type of the property cannot be DATE, ENUM, STRUCT, or ARRAY. If the conditions are met, IoT Platform performs the specified actions. Otherwise, IoT Platform does not perform the actions.
For example, you arrive home at 18:00 every day. In the summer, you want the indoor temperature to be cool and comfortable when you get home. In this case, you can create a scene orchestration rule to automate the air conditioner.
The following figure shows the settings of a sample scene orchestration rule.
The following table describes the parameters.
|Triggers||This rule is triggered at 18:00 every day. For more information about how to write a CRON expression, see CRONTAB.||Or (||)|
|Condition||If the indoor temperature that is reported by a temperature sensor is higher than 26°C, the action is performed.||And (&&)|
|Action||Turn on the air conditioner and set the temperature to 26°C.||And (&&)|
For more information about how to create scene orchestration rules, see Scene orchestrations in the cloud.