toggle_entity
Switch Home Assistant devices on or off by specifying the entity ID and desired state to control smart home automation.
Instructions
Toggle a Home Assistant entity 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": {
"entity_id": "<entity_id>",
"state": "<state>"
},
"name": "toggle_entity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entity_id | Yes | The entity ID to toggle (e.g., switch.bedroom) | |
| state | Yes | The desired state (on/off) |