Set Logic Variable
set_variableUpdate a Homey logic variable to a new value. Ensure the value type matches the variable's defined type (boolean, number, or string).
Instructions
Set the value of a logic variable. The value type must match the variable type (boolean, number, or string).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>",
"value": "<value>"
},
"name": "set_variable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Variable ID | |
| value | Yes | New value (must match variable type) |