hub.expression.added
- Broadcast when a new expression is added to the scene engine. An expression is a piece of code expressed in the Lua language. Users can create custom expressions to help better achieve various automation tasks. This broadcast is sent in response to a hub.scenes.expressions.set command.
Edit
Field | Type | Required | Description |
---|---|---|---|
name | string | + | The label of the expression. |
code | string | + | The Lua code run by the expression.. |
Edit
{
"id": "ui_broadcast",
"msg_subclass": "hub.expression.added",
"result": {
"name": "expressionName",
"code": "... code of an expression ..."
}
}