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
}
ParameterRequirementMeaning
org_idRequiredAuthorized farm or organization ID.
fs_snRequiredFarm server serial from farm-server-list.
device_typeRequiredWake-mode grouping, with 1 for ball valves, 2 for gate valves and 3 for water-level sensors.
work_modelRequiredSet 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"
}

All Smart Farm operations

Location
Richmond Hill, Ontario, Canada