Source document: GS_GE Device Integration Documentation V1.0.7
Used to configure the Motion Detection Arming Schedule period.
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\":\"motion_detection_config\",\"start\":390,\"end\":600,\"action\":true}"}'
{
"cmd": "motion_detection_config",
"start": 390,
"end": 600,
"action": true
}
| Field | Description |
|---|---|
| cmd | The value motion_detection_config indicates configuration of the Motion Detection Arming Schedule period |
| start | Detection start time, expressed as the minute of the day |
| end | Detection end time, expressed as the minute of the day |
| action | Whether it takes effect; true enables detection, false disables detection. If omitted, detection is disabled by default. |
After configuration succeeds, the device reports an event with the identifier motion_detection_config. Use origin_info.cmd in the callback to determine the configuration result.