aqara_set_value
Writes a raw value to an Aqara device trait over the LAN through a hub. Requires operator-enabled writes and user confirmation before execution.
Instructions
Write one value to a device through the hub, over the LAN.
device: name or DID. trait: path (e.g. 2.132.32920), trait code (OnOff) or name. value: the raw value as a string ("1" on, "0" off, a number, or an enum code). Refused unless the operator enabled writes. Ask the user before calling this.
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>",
"trait": "<trait>",
"value": "<value>"
},
"name": "aqara_set_value"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| trait | Yes | ||
| value | Yes | ||
| device | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |