device.set
Control a Home Assistant device by turning it on, off, toggling it, or setting its brightness level from 0 to 255.
Instructions
Turn a device on/off/toggle or set brightness level.
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": {
"entity_id": "<entity_id>",
"action": "<action>"
},
"name": "device.set"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | No | Brightness 0-255 when action=level. | |
| action | Yes | ||
| entity_id | Yes |