detection.door.unlockEvent(开门事件)
detection.door.unlockEvent:开门事件
detection.door.unlockEvent · 设备级 · 消息查询权限 Alarm
功能详情
开门(解锁)事件上报。msgType 为 detection.door.unlockEvent。收推送须订阅 capabilityEvent。见 接收设备消息、setMessageCallback、事件目录、概述与公共负载。
上报字段说明
outputData 内字段。平台字段见 公共负载。
| 参数名 | 说明 | 类型 | 必填 | 取值 |
|---|---|---|---|---|
type | 开门凭证类型。 | enum | 否 | 0;1;2;3;4;5;6;7;8;9;10;11;12;13;14;15 |
keyID | keyID | int | 否 | 0~999999,步长 1 |
result | result | int | 否 | 0;1 |
direction | 开门方向 | enum | 否 | 0 室外开门;1 室内开门 |
样例
{
"msgType": "detection.door.unlockEvent",
"deviceId": "TESTIPC000012345",
"productId": "56WGTET2",
"outputData": {
"type": "0",
"keyID": 0,
"result": 0,
"direction": "0"
},
"time": 1673406989,
"localTime": "20230111T111629",
"alarmId": "116257862023505xxxx"
}
最小权限
管理员操作自己绑定的设备不需要权限。操作被分享设备需要报警消息权限。子用户绑定不需要。子账号需要 Alarm。列表/检索按条过滤无权事件。
