Motion Detection Sensitivity

Source document: GS_GE Device Integration Documentation V1.0.7

Used to configure Motion Detection Sensitivity.

Request Example

Code Example
curl -XPOST 'https://open.eye4cloud.com/{app_id}/open/v1/device/command' -H "AppID:<YOUR_APP_ID>" -d '{"device_id":"DEMO_DEVICE_001","timestamp":"<YOUR_TIMESTAMP>","nonce": "<YOUR_NONCE>","sign":"<YOUR_SIGN>","data":"{\"cmd\":\"PIR_sensitivity\",\"sensitivity\":200}"}'

data field

Code Example
{
  "cmd": "PIR_sensitivity",
  "sensitivity": 200
}
Field Description
cmd The value PIR_sensitivity indicates configuration of Motion Detection Sensitivity
sensitivity Sensitivity value, range: 0-255

Successful Execution Callback

After configuration succeeds, the device reports an event with the identifier PIR_sensitivity. Use origin_info.cmd in the callback to determine the configuration result.