Set hub variable
hubitat_set_hub_variableSet a Hubitat hub variable to trigger Rule Machine automations on value change. Use for variable-based automation without a virtual switch.
Instructions
Write a Hubitat hub variable (admin route; firmware-sensitive). Triggers Rule Machine subscriptions on that variable.
Use when: automating Rule Machine without a virtual switch. Do NOT use when: sending a device command (use hubitat_send_command).
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": {
"name": "<name>",
"value": "<value>"
},
"name": "hubitat_set_hub_variable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Hub variable name | |
| value | Yes | New value |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| value | Yes |