control_switch
Turn Plugwise smart home devices on or off by specifying the appliance ID and desired state to control switches, relays, and smart plugs.
Instructions
Turn a switch or relay on or off. Works with Plugwise switches, relays, and smart plugs. Use this to control any switchable device in your Plugwise network.
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": {
"appliance_id": "<appliance_id>",
"state": "<state>"
},
"name": "control_switch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| appliance_id | Yes | ID of the appliance/device to control | |
| state | Yes | Desired state: "on" to turn on, "off" to turn off | |
| model | No | Switch model type (default: relay). Options: relay, switch, plug |