长期密码授权结果订阅

类型

smartlock.personauth.change

事件category

business

字段说明

格式参考通用业务格式,以下是info信息字段说明

info参数内容如下:

参数类型描述
errMsgstring错误码
operateTypeint1-新增,2-删除,3-修改
syncFlagsstring下发状态:1-下发成功,2-下发中,3-下发失败,5-等待下发
personCodestring人员编码
deviceCodestring设备编码
{
    "category":"business",
    "id":8,
    "info":{
        "errMsg":"0x80000015",
        "operateType":3,
        "syncFlags":"3",
        "personCode":"10100001",
        "deviceCode":"100048"
    },
    "method":"smartlock.personauth.change",
    "subsystem":"evo-smartlock"
}

卡片授权结果订阅

类型

smartlock.cardauth.change

事件category

business

字段说明

格式参考通用业务格式,以下是info信息字段说明

info参数内容如下:

参数类型描述
errMsgstring错误码
operateTypeint1-新增,2-删除,3-修改
syncFlagsstring下发状态:1-下发成功,2-下发中,3-下发失败,5-等待下发
personCodestring人员编码
cardNumberstring卡号
deviceCodestring设备编码
{
    "category":"business",
    "id":8,
    "info":{
        "errMsg":"0x80000015",
        "operateType":3,
        "syncFlags":"3",
        "personCode":"10100001",
        "cardNumber":"10100001",
        "deviceCode":"100048"
    },
    "method":"smartlock.cardauth.change",
    "subsystem":"evo-smartlock"
}
指纹授权结果订阅

类型

smartlock.fingerauth.change

事件category

business

字段说明

格式参考通用业务格式,以下是info信息字段说明

info参数内容如下:

参数类型描述
errMsgstring错误码
operateTypeint1-新增,2-删除,3-修改
syncFlagsstring下发状态:1-下发成功,2-下发中,3-下发失败,5-等待下发
personCodestring人员编码
fingerIndexstring指纹序号
deviceCodestring设备编码
{
    "category":"business",
    "id":8,
    "info":{
        "errMsg":"0x80000015",
        "operateType":3,
        "syncFlags":"3",
        "personCode":"10100001",
        "fingerIndex":"1",
        "deviceCode":"100048"
    },
    "method":"smartlock.fingerauth.change",
    "subsystem":"evo-smartlock"
}
人脸授权结果订阅

类型

smartlock.faceauth.change

事件category

business

字段说明

格式参考通用业务格式,以下是info信息字段说明

info参数内容如下:

参数类型描述
errMsgstring错误码
operateTypeint1-新增,2-删除,3-修改
syncFlagsstring下发状态:1-下发成功,2-下发中,3-下发失败,5-等待下发
personCodestring人员编码
fingerIndexstring指纹序号
deviceCodestring设备编码
{
    "category":"business",
    "id":8,
    "info":{
        "errMsg":"0x80000015",
        "operateType":3,
        "syncFlags":"3",
        "personCode":"10100001",
        "faceIndex":"1",
        "deviceCode":"100048"
    },
    "method":"smartlock.faceauth.change",
    "subsystem":"evo-smartlock"
}
报警记录订阅

报警类型对应的报警编码见智能门锁报警类型

事件category

alarm

字段说明

格式参考通用报警格式,以下主要说明extends字段

电量低报警extend字段说明与示例
参数类型描述
deviceTimelong设备时间,秒钟
powerint电量,百分比
{
	"alarmCode": "379621fc-be97-4f5b-a02f-57fc05d83f2f",
	"alarmDate": "1664279427",
	"alarmGrade": 1,
	"alarmPictureSize": 0,
	"alarmStat": 1,
	"alarmType": 1024000,
	"channelSeq": 0,
	"deviceCode": "1002029",
	"extend": {
		"deviceTime": 1664279395,
        "power": 20
	},
	"nodeCode": "1002029",
	"nodeType": 1,
	"unitSeq": 0,
	"unitType": 2
}
防拆报警extend字段说明与示例
参数类型描述
timelong报警时间,秒钟
{
	"alarmCode": "379621fc-be97-4f5b-a02f-57fc05d83f2f",
	"alarmDate": "1664279427",
	"alarmGrade": 1,
	"alarmPictureSize": 0,
	"alarmStat": 1,
	"alarmType": 1024001,
	"channelSeq": 0,
	"deviceCode": "1002029",
	"extend": {
		"time": 1664279395
	},
	"nodeCode": "1002029",
	"nodeType": 1,
	"unitSeq": 0,
	"unitType": 2
}
门铃呼叫extend字段说明与示例
参数类型描述
timelong门铃呼叫时间,秒钟
{
	"alarmCode": "379621fc-be97-4f5b-a02f-57fc05d83f2f",
	"alarmDate": "1664279427",
	"alarmGrade": 1,
	"alarmPictureSize": 0,
	"alarmStat": 1,
	"alarmType": 1024002,
	"channelSeq": 0,
	"deviceCode": "1002029",
	"extend": {
		"time": 1664279395
	},
	"nodeCode": "1002029",
	"nodeType": 1,
	"unitSeq": 0,
	"unitType": 2
}
强制锁定extend字段说明与示例
参数类型描述
lockTypeint锁定类型,0表示密码,1表示卡片,2表示指纹,3表示人脸
timelong设备强制锁定报警时间,秒钟
{
	"alarmCode": "51ba719c-0565-418b-a25d-48ab08a1f55d",
	"alarmDate": "1664279522",
	"alarmGrade": 1,
	"alarmPictureSize": 0,
	"alarmStat": 1,
	"alarmType": 1024003,
	"channelSeq": 0,
	"deviceCode": "1002029",
	"extend": {
		"lockType": 1,
		"time": 1664279496
	},
	"nodeCode": "1002029",
	"nodeType": 1,
	"unitSeq": 0,
	"unitType": 2
}
开锁记录订阅

开锁记录除extend字段中的内容,其余字段含义同上述报警消息一致 其中1024011-1024017对应为不同开锁记录对应的报警类型

extend字段说明

参数类型描述
enterOrExitint进出方式,1表示进,2表示出,3表示未知
swingTimedate开门时间
openTypeint开门方式,1:密码,2-指纹,3-卡片,4-人脸,5-临时密码,6-离线密码,7-门内开门(钥匙开门)
orgCodestring设备所在组织编码
idlong开门记录自增id
deviceCodestring设备编码
openResultstring开门结果,1-失败,0-成功
deviceModelstring设备型号
{
	"id": 123,
	"info": [{
		"alarmCode": "7e3a214d-5193-441c-944a-7200f05bef3c",
		"alarmDate": "1665455665",
		"alarmGrade": 1,
		"alarmPictureSize": 0,
		"alarmStat": 1,
		"alarmType": 1024011,
		"channelSeq": 0,
		"deviceCode": "1000007",
		"extend": {
			"enterOrExit": 3,
			"swingTime": 1665455665000,
			"openType": 1,
			"orgCode": "001",
			"id": 1029341350614802432,
			"deviceCode": "1000007",
			"openResult": 1,
			"deviceModel": "2"
		},
		"nodeCode": "1000007",
		"nodeType": 1,
		"unitSeq": 0,
		"unitType": 2
	}]
}