Skip to main contentTutorials
Variable binding and rule-driven interaction
FavoriteBeginner~10 minVariableExpression bindingRule engine Key steps
- 1.Create an analog variable temperature (scope: global)
- 2.Bind the temperature gauge value to {"var":"temperature"}
- 3.Create a rule in the rule manager: trigger = variable change, condition = temperature > 80
- 4.Add "set variable alarm=1" to the action list and bind the alarm LED to the alarm variable
- 5.Change the variable in the simulator to observe the interaction; on hardware it is driven by serial/MQTT data