control_switch
Turn a Wyze wall switch on or off using its device ID or nickname, providing direct control over connected smart home devices.
Instructions
Turn a Wyze wall switch on or off. Use device ID or nickname to identify the switch.
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": {
"deviceId": "<deviceId>",
"state": "<state>"
},
"name": "control_switch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | Yes | Desired state: "on" or "off" | |
| deviceId | Yes | Device ID (MAC) or nickname of the switch |