tuya_turn_off_device
Turn off a Tuya smart device by its ID or name. For multi-switch devices, specify the switch_code (e.g., switch_1) to control a specific switch.
Instructions
Turn off a Tuya device by device_id or name (e.g. 'Living Room Light'). For devices with multiple switches, specify switch_code (switch_1, switch_2, etc.)
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": {
"device_id": "<device_id>"
},
"name": "tuya_turn_off_device"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device_id | Yes | ||
| switch_code | No | switch_1 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |