Set device color (hex)
hubitat_set_colorSet the color of a Hubitat ColorControl device using a hex code. Builds the properly encoded Maker API command for #RRGGBB or RRGGBB.
Instructions
Set a ColorControl device color from a hex string. Builds the URL-encoded JSON map Maker API expects (including Hubitat's hex extension). Nobody constructs this by hand correctly.
Use when: setting bulb color from #RRGGBB or RRGGBB. Do NOT use when: only changing level or on/off.
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": {
"device_id": "<device_id>",
"hex": "<hex>"
},
"name": "hubitat_set_color"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hex | Yes | Hex color, e.g. FF00AA or #FF00AA | |
| device_id | Yes | Maker API device ID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hex | Yes | ||
| device | No | ||
| device_id | Yes |