detection.arming.mode(设置布撤防模式属性)
detection.arming.mode:设置布撤防模式属性
detection.arming.mode · 设备与通道 · 权限 Config
功能详情
设置本机布撤防模式。越界拒绝,不截断。
请求地址
POST https://openapi-[DataCenter].easy4ip.com/openapi/v2/device.property.set
最小权限
管理员操作自己绑定的设备不需要权限。操作被分享设备需要基础配置权限。子用户绑定不需要。子账号需要 Config。通道级漏 channelId 返回 DV2007。设备和通道写在同一次请求里返回 DV2008。写超时不代表未执行。
传入参数说明
| 参数名 | 参数类型 | 是否必填 | 参数说明 |
|---|---|---|---|
token | String | 是 | 管理员、子用户或子账号 accessToken |
deviceId | String | 是 | 设备序列号 |
productId | String | 否 | 可省略。传了且与该设备实际型号不一致 → DV2009 |
channelId | String | 条件 | 通道级必填,设备级不要传 |
properties | Object | 是 | key 为 detection.arming.mode |
| 取值 | 说明 |
|---|---|
0 | 在家模式 |
1 | 离家模式 |
2 | 撤防模式 |
样例输入
{
"id": "d5c287b4-5b2f-4f03-baf5-8032c5c354af",
"system": {
"ver": "1.0",
"appId": "lcdxxxxxxxxx",
"sign": "xjhCQBoJ9hRDsCjyDcHjtDNzRZ3ZJezcawsfWeiaoxU=",
"time": 1706511734,
"nonce": "f5a1ae2d-c09c-4d39-a744-83a5c2c653c2"
},
"params": {
"token": "<yourAccessToken>",
"deviceId": "TESTIPC000012345",
"channelId": "0",
"properties": { "detection.arming.mode": 1 }
}
}
样例输出
{
"id": "d5c287b4-5b2f-4f03-baf5-8032c5c354af",
"result": {
"code": "0",
"msg": "Operation is successful",
"data": {}
}
}
错误码
网关
DV20xx
