set_color
Sets a smart-home device or group to a specified hex color and turns it on automatically, enabling precise color changes by target.
Instructions
Set the color of a device or group using a hex color code. Turns device on automatically.
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": {
"target": "<target>",
"color": "<color>"
},
"name": "set_color"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| color | Yes | Hex color code (e.g. '#ff0000' for red, '#00ff00' for green) | |
| target | Yes | Device/group identifier |