Get hub variable
hubitat_get_hub_variableRead a Hubitat hub variable by name to retrieve values that Rule Machine rules subscribe to, supporting automation logic and virtual switch coordination.
Instructions
Read a Hubitat hub variable (admin route; firmware-sensitive). Hub variables are one of two Rule Machine levers (with virtual switches).
Use when: reading a variable that rules subscribe to. Do NOT use when: controlling a device attribute (use hubitat_get_device).
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>"
},
"name": "hubitat_get_hub_variable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Hub variable name |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| type | No | ||
| value | Yes |