set_datapoint
Write a raw Tuya datapoint to control devices unsupported by helper tools, such as fans, curtains, heaters, and valves. Use get_status to discover exposed datapoints and their types.
Instructions
Write a raw Tuya datapoint.
The escape hatch for products whose datapoints the helper tools do not cover - fans, curtains, heaters, valves. Call get_status first to see which datapoints a device exposes and what types they hold.
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": "<device>",
"dp": "<dp>",
"value": "<value>"
},
"name": "set_datapoint"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dp | Yes | ||
| value | Yes | ||
| device | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||