The rules for scene orchestrations allows you to automate complex workflows based on business logic. You can set the triggers and conditions for scene rules based on time and device properties. The rules then execute actions that change the state of other rules, devices or functions. This allows you to perform large-scale orchestrations of devices.
Create scene rules
Enable scene rules
After the scene rule is created, you can enable the rule on the Scene Orchestration page.
You perform the following steps to enable scene rules:
After you enable the rule:
- If the scene rule is running on the cloud, you must configure message routing for the devices of the scene rule, so that the device properties and events can be sent to the IoT Hub on the cloud. For more information about message routing, see Configure message routing.
- If the scene rule is running at the edge, you must Stop the rule on the cloud and associate the scene rule with the edge instance. For more information about the association method, see the Other operations for scene orchestration section of this topic.
View logs
You can view the logs of scene rules and view the running results on the details page.
Other operations for scene orchestration
- Delete scene rules:
- On the Scene Orchestration page, find the rule that you want to delete.
- Click Delete to the right of the rule name. In the dialog box that appears, click OK to delete the scene rule.
- Trigger scene rules:
After you Start a scene rule, you can perform the Trigger operation.
- On the Scene Orchestration page, find the rule that you want to trigger.
- Click Trigger to the right of the rule name, and the rule is manually triggered once. All actions of the rules are performed bypassing the predefined triggers and conditions.
- Run scene orchestrations in an edge instance:
Perform the following steps to deploy scene orchestrations to the edge instance.Notice Make sure that you have stopped the scene orchestrations that are running on the cloud.
- In the left-side navigation pane of the IoT Platform console, choose , find the instance that you configured and click View to the right of the edge instance. For more information about configuring instance environments, see Set up environments.
- On the Instance Details page, select the Scenes tab and click Assign Scene.
- In Assign Scene dialog box, click Assign, and then click Close.
- After assigning the scene orchestration, redeploy the edge instance.