Browse developer docs
Change device wake mode
POSTfarm-device-switch-work-model
Request
Send POST to /open/service with serviceName=farm-device-switch-work-model and the common signing parameters.
Send extra fields in the JSON body
Applies by device type. Use 1 for smart wake or 2 for fast wake.
This operation submits a change. Replace the illustrative values, confirm access, and review the intended action before sending a signed request.
Illustrative payload
{
"org_id": "YOUR_FARM_ID",
"fs_sn": "YOUR_FARM_SERVER_SN",
"device_type": 1,
"work_model": 2
}| Parameter | Requirement | Meaning |
|---|---|---|
org_id | Required | Authorized farm or organization ID. |
fs_sn | Required | Farm server serial from farm-server-list. |
device_type | Required | Wake-mode grouping, with 1 for ball valves, 2 for gate valves and 3 for water-level sensors. |
work_model | Required | Set 1 for smart wake or 2 for fast wake. |
Response
The change applies to equipment of the selected type. Read the work mode after submission to verify the result.
Show example response fields and types
{
"status": "number",
"success": "boolean",
"data": "null",
"message": "string"
}