Scene orchestration is a feature provided by the rule engine of IoT Platform. Scene orchestration provides a way of automating complex workflows based on business logic. You can use scene rules to set up complex interactions between devices and deploy the rules on the cloud or at the edge.
You can create scene orchestrations by choosing IoT Platform console. Each orchestration consists of triggers, conditions, and actions. This rule model is called the TCA model.in the
When an event or property change that is defined in the triggers occurs, IoT Platform checks whether to perform the actions defined in the rule based on the defined conditions. If the conditions are met, IoT Platform performs the defined actions. Otherwise, IoT Platform does not perform the actions.
The following is an example. You come home from work at 18:00 every day. In the summer, you hope that when you get home, the temperature at home is cool and comfortable. You can create a rule to automate the air conditioner.
The following figure shows the parameter settings.
The following table describes the parameters.
|Trigger||This rule is triggered at 18:00 every day. For more information about how to write a CRON expression, visit CRONTAB.||Or (||)|
|Condition||If the indoor temperature reported by the sensor is higher than 26 degrees Celsius, the action is performed.||And (&&)|
|Action||The air conditioner is switched on. The target temperature for the air conditioner is set to 26 degrees Celsius.||And (&&)|
For more information about how to create scene rules, see Scene orchestrations on the cloud.