MIOT HomeMIOT Home
MIOT
#xiaomi.lock.5s3

xiaomi.lock.5s3

urn:miot-spec-v2:device:lock:0000A038:xiaomi-5s3:1
语言
Service tree
门锁
#2 · lock
属性 21动作 4事件 2

Properties

操作位置
#1 · operation-position
格式
uint8
读写
值
1室内
2门外
3无法区分门内外
操作方式
#2 · operation-method
格式
uint8
读写
值
1手机
13掌静脉
3密码
4NFC
6机械钥匙/应急旋钮
7一次性密码
8周期性密码
9胁迫指纹
14门内按钮开锁
15远程开锁
18临时口令
5人脸
2指纹
16微信钥匙
12自动
锁动作
#3 · lock-action
格式
uint8
读写
值
1关门
2开锁
3开启反锁
4关闭反锁
5开启童锁
6关闭童锁
7开启离家模式
8关闭离家模式
异常情况
#4 · abnormal-condition
格式
uint8
读写
值
1多次开锁验证失败
2密码多次开锁验证失败
3指纹多次开锁验证失败
4NFC多次开锁验证失败
5人脸多次开锁验证失败
6掌静脉多次开锁验证失败
9门锁可能被撬,请及时回家查看,或联系小区保安
11离家期间室内开锁
12门锁被重置
18锂电池温度过高,建议拆下电池查看
195号电池电量低,请更换
205号电池电量即将耗尽
21锂电池电量低,请充电
22锂电池电量即将耗尽,人脸开锁等功能不可用,请充电
23门未关,请及时关门
24门虚掩,请及时关门
26请安装5号电池
27锂电池被取下,人脸开锁等功能不可用
28应急供电中
30室内充电中
31锂电池已充满,电量低于85%后再充电有利于电池寿命
50新访客密码与已有密码重复,为确保安全,请尽快修改
51访客密码数量超过上限,新添加的密码无法生效,请检查
52访客密码下发失败,请重试
53开门异常
54关门异常
60锂电池电量耗尽,人脸开锁等功能不可用,请充电
615号电池电量低,锂电池被取下,请更换和充电
625号电池电量低,锂电池电量耗尽,请更换和充电
635号电池电量低,锂电池电量即将耗尽,请更换和充电
645号电池和锂电池电量低,请更换和充电
65锂电池安装成功
操作ID
#5 · operation-id
格式
uint16
读写
值
0 ~ 65535,步长 1
当前时间(unix timestamp)
#6 · current-time
格式
uint32
读写
值
0 ~ 4294967295,步长 1 seconds
已反锁
#7 · anti-lock
格式
bool
读写
值
—
童锁
#8 · child-lock
格式
bool
读写
值
—
管理员开反锁开关
#15 · turn-on-the-anti-lock-setting
格式
bool
读写
值
—
重置验证
#16 · reset-with-verification-required-setting
格式
bool
读写
值
—
主摄像头遮挡算法开关
#29 · main-cam-blocked
格式
bool
读写
值
—
音效音色选择
#35 · sound-option
格式
uint8
读写
值
1焕新
2经典
人脸开锁休眠时长
#36 · face-unlock-sleep-time
格式
uint8
读写
值
00 秒
15 秒
215 秒
330 秒
460 秒
人脸识别开锁开关
#37 · face-recognition-unlocking-switch
格式
bool
读写
值
—
人脸开锁灵敏度
#38 · face-unlock-sensitivity
格式
uint8
读写
值
0低(识别距离近,约0.5米)
1中(识别距离适中,约0.8米)
2高(识别距离远,约1米)
门锁本地设置状态
#39 · door-lock-local-setting-status
格式
bool
读写
值
—
掌静脉识别开锁开关
#40 · palm-vein-recognition-unlocking-switch
格式
bool
读写
值
—
开门方向设置
#41 · door-open-direction
格式
uint8
读写
值
1外开
2内开
音色切换
#43 · vocal-type
格式
uint8
读写
值
0女声
1男声
触发方式
#45 · triggering-method
格式
uint8
读写
值
0手动
1自动
门未关时提醒次数配置
#46 · door-open-reminder-freq-switch
格式
bool
读写
值
—

Actions

蓝牙开锁
#1 · ble-unlock
蓝牙唤醒设备
#2 · ble-awake-dev
设置设备童锁
#5 · set-child-lock
入参
#8童锁bool
设置设备反锁
#6 · set-anti-lock
入参
#7已反锁bool

Events

锁事件
#1020 · lock-event
触发参数
#1操作位置uint8#2操作方式uint8#3锁动作uint8#5操作IDuint16#6当前时间(unix timestamp)uint32
发生异常
#1007 · exception-occurred
触发参数
#4异常情况uint8#6当前时间(unix timestamp)uint32
门
#3 · door
属性 1

Properties

门状态
#1021 · door-state
格式
uint8
读写
N / R
值
1门已锁好
2已开锁
3门未关
4门虚掩
6开启反锁
7开门异常
8关门异常
门锁管理
#4 · lock-manage
属性 14动作 10事件 9

Properties

用户id
#1 · user-ids
格式
uint16
读写
值
0 ~ 65535,步长 1
用户类型
#2 · user-type
格式
uint8
读写
值
0我
2普通用户
操作方式
#3 · operation-method
格式
uint8
读写
值
1手机
2指纹
3密码
4NFC
6机械钥匙
7一次性密码
8周期性密码
9胁迫指纹
10双重验证
15远程开锁
5人脸
13掌静脉
16微信钥匙
18临时口令
操作ID
#4 · operation-id
格式
uint16
读写
值
0 ~ 65535,步长 1
凭据内容
#5 · credential
格式
string
读写
值
—
当前时间(unix timestamp)
#6 · current-time
格式
uint32
读写
值
0 ~ 4294967295,步长 1 seconds
错误码
#7 · error-code
格式
uint16
读写
值
0成功
1接收指令成功,执行中
2内部错误
3未找到
4内存已满
5参数错误
6超时
7设备忙
8参数重复
9密码重复
凭据状态
#8 · credential-state
格式
uint16
读写
值
0成功
1失败
1000指纹区域重复
1001指纹质量低,请重新录入
1002指纹面积小
1003按压位置偏
1004指纹湿
1005请抬起手指
2000未检测到人脸-请直立并正视门锁摄像头
2001过于偏离门锁,请移至门锁正前方
2002过于偏离门锁,请移至门锁正前方
2003过于偏离门锁,请移至门锁正前方
2004过于偏离门锁,请移至门锁正前方
2005过于远离门锁,请微微前移
2006过于接近门锁,请微微后移
2007请确保面部没有遮挡
2008录入人脸方向错误
2009活体检测失败 -请直立并正视门锁摄像头
3000请将掌心正对门锁摄像头
3001请将手掌微微下移
3002请将手掌微微上移
3003请将手掌微微右移
3004请将手掌微微左移
3005手掌过于远离门锁,请微微前移
3006手掌过于接近门锁,请微微后移
3007手掌活体检测失败
3008检测到手掌被遮挡,请确保手掌无遮挡
当前要添加的凭据序号
#9 · credential-step-current
格式
uint8
读写
值
0 ~ 255,步长 1
总凭据数量
#10 · credential-step-all
格式
uint8
读写
值
0 ~ 255,步长 1
开锁方式信息
#11 · unlock-method-info-string
格式
string
读写
值
—
同步版本
#12 · sync-version
格式
uint8
读写
值
1 ~ 10,步长 1
用户信息
#13 · lock-user-info-string
格式
string
读写
值
—
单独用户权限设置
#14 · user-deadbolt-permission
格式
string
读写
值
—

Actions

配置用户 (支持覆盖)
#1 · add-lock-user
入参
#1用户iduint16#2用户类型uint8
出参
#7错误码uint16#1用户iduint16#2用户类型uint8#6当前时间(unix timestamp)uint32
删除用户
#2 · delete-lock-user
入参
#1用户iduint16#2用户类型uint8
出参
#7错误码uint16
添加开锁方式
#3 · add-unlock-method
入参
#1用户iduint16#3操作方式uint8#4操作IDuint16#5凭据内容string
出参
#7错误码uint16#1用户iduint16#3操作方式uint8#4操作IDuint16#6当前时间(unix timestamp)uint32
取消添加
#4 · cancel-unlock-method
出参
#7错误码uint16
删除开锁方式
#5 · delete-unlock-method
入参
#1用户iduint16#4操作IDuint16
出参
#7错误码uint16
同步用户信息
#6 · sync-lock-user
出参
#7错误码uint16
同步开锁方式
#7 · sync-unlock-method
出参
#7错误码uint16
分配用户信息
#8 · alloc-lock-user
入参
#1用户iduint16#4操作IDuint16#3操作方式uint8
出参
#7错误码uint16
同步开锁方式
#9 · sync-unlock-method-with-version
入参
#12同步版本uint8
同步用户信息
#10 · sync-lock-user-with-version
入参
#12同步版本uint8

Events

更新用户组
#1 · update-lock-user
触发参数
#7错误码uint16#1用户iduint16#2用户类型uint8#6当前时间(unix timestamp)uint32
更新开锁方式
#2 · update-unlock-method
触发参数
#7错误码uint16#1用户iduint16#3操作方式uint8#4操作IDuint16#6当前时间(unix timestamp)uint32
添加凭据事件
#3 · add-credential-event
触发参数
#8凭据状态uint16#9当前要添加的凭据序号uint8#10总凭据数量uint8
添加用户完成
#4 · add-user-complete
触发参数
#1用户iduint16#2用户类型uint8#6当前时间(unix timestamp)uint32
删除用户完成
#5 · delete-user-complete
触发参数
#1用户iduint16#2用户类型uint8#6当前时间(unix timestamp)uint32
添加开锁方式完成
#6 · add-user-key-complete
触发参数
#1用户iduint16#4操作IDuint16#3操作方式uint8#6当前时间(unix timestamp)uint32
删除开锁方式完成
#7 · delete-user-key-complete
触发参数
#1用户iduint16#4操作IDuint16#3操作方式uint8#6当前时间(unix timestamp)uint32
同步开锁方式完成
#8 · sync-user-key-complete
同步用户完成
#9 · sync-user-complete
门锁历史记录
#5 · lock-history
属性 10动作 1事件 1

Properties

历史数据时间戳
#5 · history-time
格式
uint32
读写
值
0 ~ 4294967295,步长 1
历史数据最新时间戳
#6 · last-history-time
格式
uint32
读写
值
0 ~ 4294967295,步长 1
门铃事件历史数据上报
#11 · doorbell-data-string
格式
string
读写
值
—
异常事件历史数据上报
#12 · abnormal-data-string
格式
string
读写
值
—
门状态历史数据上报
#13 · door-data-string
格式
string
读写
值
—
用户删除
#14 · user-delete-string
格式
string
读写
值
—
用户添加
#15 · user-add-string
格式
string
读写
值
—
钥匙添加
#16 · user-key-add-string
格式
string
读写
值
—
钥匙删除
#17 · user-key-delete-string
格式
string
读写
值
—
锁事件历史数据上报
#18 · lock-history-string
格式
string
读写
值
—

Actions

触发历史记录上报操作
#1 · history-notify-action
入参
#5历史数据时间戳uint32

Events

历史记录上报完成
#1 · history-notify-complete
触发参数
#6历史数据最新时间戳uint32
门铃
#7 · doorbell
属性 1事件 1

Properties

当前时间(unix timestamp)
#1 · current-time
格式
uint32
读写
值
0 ~ 4294967295,步长 1 seconds

Events

有人按门铃
#1006 · doorbell-ring
触发参数
#1当前时间(unix timestamp)uint32
时间管理
#9 · time-management
属性 2动作 1

Properties

时区偏移量
#1 · time-zone-offset
格式
float
读写
值
-20 ~ 20,步长 0.25
当前时间(unix timestamp)
#2 · current-time
格式
uint32
读写
值
0 ~ 4294967295,步长 1 seconds

Actions

时间校准(校时)
#1 · time-correction
入参
#1时区偏移量float#2当前时间(unix timestamp)uint32
门锁详细版本
#11 · lock-version
属性 8

Properties

前面板版本
#1 · front-panel-version
格式
string
读写
值
—
后面板版本
#2 · rear-panel-version
格式
string
读写
值
—
指纹板版本
#3 · fingerprint-board-version
格式
string
读写
值
—
硬件版本
#4 · hardware-version
格式
string
读写
值
—
语音版本
#5 · voice-version
格式
string
读写
值
—
Wi-Fi版本
#6 · wifi-version
格式
string
读写
值
—
摄像头版本
#7 · camera-version
格式
string
读写
值
—
人脸掌静脉版本
#8 · face-palm-vein-version
格式
string
读写
值
—
锂电池
#13 · battery
属性 4

Properties

电池电量
#1 · battery-level
格式
uint8
读写
R / N
值
0 ~ 100,步长 1 percentage
电池充电状态
#2 · charging-state
格式
uint8
读写
R / N
值
1门锁充电中
2未在充电
3无法充电
工作状态
#3 · status
格式
uint8
读写
R / N
值
1已安装
2已拆卸
当前时间(unix timestamp)
#4 · current-time
格式
uint32
读写
值
0 ~ 4294967295,步长 1 seconds
门锁猫眼
#17 · door-lock-camera
属性 22动作 2事件 4

Properties

录像
#1 · on
格式
bool
读写
R / W / N
值
—
自动红外夜视
#2 · night-shot
格式
uint8
读写
R / W / N
值
0一直关闭
1一直开启
2自动切换
铃声类型
#6 · ringtone
格式
uint8
读写
R / W / N
值
1 ~ 5,步长 1
画面畸变矫正
#7 · image-distortion-correction
格式
bool
读写
R / W / N
值
—
当前时间(unix timestamp)
#8 · current-time
格式
uint32
读写
值
0 ~ 4294967295,步长 1
有效时间
#11 · live-video-valid-time
格式
uint8
读写
R / W / N
值
11分钟
22分钟
33分钟
44分钟
55分钟
开启时段
#12 · live-video-enable-time-period
格式
string
读写
R / W / N
值
—
灵敏度
#13 · detection-sensitivity
格式
uint8
读写
R / W / N
值
0识别距离近,约0.8米
1识别距离适中,约1.5米
2识别距离远,约3米
微光全彩
#15 · glimmer-full-color
格式
bool
读写
R / W / N
值
—
摄像头工作模式
#16 · mode
格式
uint8
读写
R / W / N
值
1标准模式
2省电模式
4超级省电模式
3自定义模式
有人停留
#18 · someone-staying-activated-switch
格式
bool
读写
R / W / N
值
—
停留时长
#19 · staying-time
格式
uint8
读写
R / W / N
值
06秒
110秒
215秒
320秒
430秒
人脸标记
#20 · face-marking-switch
格式
bool
读写
R / W / N
值
—
录像时段
#22 · video-recording-time-period
格式
string
读写
R / W / N
值
—
实时画面
#23 · live-video-streaming
格式
bool
读写
R / N / W
值
—
微信音视频信息
#24 · wechat-info
格式
string
读写
R / W / N
值
—
事件类型
#26 · event-type
格式
uint8
读写
值
5门锁摄像头被遮挡,请注意门前情况
有人经过开关
#30 · pass-by-activated-switch
格式
bool
读写
R / W / N
值
—
宽动态范围模式
#33 · wdr-mode
格式
bool
读写
R / W / N
值
—
门内开锁录像
#34 · inside-unlock-recording
格式
bool
读写
R / W / N
值
—
自动亮屏
#35 · auto-screen-on
格式
bool
读写
R / W / N
值
—
自动亮屏时间
#36 · auto-screen-on-time
格式
uint8
读写
R / W / N
值
010秒
115秒
220秒

Actions

唤醒
#3 · wake-up
视频录制
#4 · video-recording

Events

有人在门前停留
#2 · someone-at-the-door
触发参数
#8当前时间(unix timestamp)uint32
微信未授权通知
#3 · wechat-unauth-notify
触发参数
#8当前时间(unix timestamp)uint32
本地算法事件
#4 · local-algorithm-event
触发参数
#26事件类型uint8#8当前时间(unix timestamp)uint32
有人从门前经过
#5 · someone-passed-by
触发参数
#8当前时间(unix timestamp)uint32
WIFI门锁
#18 · lock
属性 9动作 1事件 2

Properties

离家场景
#10 · away-home-mode
格式
bool
读写
R / W / N
值
—
低功耗设备Wi-Fi状态
#12 · low-power-device-wifi-status
格式
uint8
读写
R / N
值
0Unknown
1Online
2Sleep
WIFI唤醒原因
#13 · wifi-wake-reason
格式
uint8
读写
值
1Visitor Password
2Voice Message
未出门时间段列表
#14 · non-departure-time-list
格式
string
读写
R / W / N
值
—
未回家时间列表
#15 · non-return-time-list
格式
string
读写
R / W / N
值
—
当前时间(unix timestamp)
#16 · current-time
格式
uint32
读写
值
0 ~ 4294967295,步长 1 seconds
操作ID
#17 · operation-id
格式
uint16
读写
值
0 ~ 65535,步长 1
联动反锁开关
#20 · link-anti-lock
格式
bool
读写
R / W / N
值
—
门锁本地设置状态
#11 · door-lock-local-setting-status
格式
bool
读写
R / N
值
—

Actions

通知设备WIFI唤醒
#1 · wifi-wake-up
入参
#13WIFI唤醒原因uint8

Events

关注时段内无人出门
#1 · missed-departure
触发参数
#16当前时间(unix timestamp)uint32
关注时段内未回家
#2 · return-overdue
触发参数
#16当前时间(unix timestamp)uint32#17操作IDuint16
门锁音量管理
#19 · lock-volume-management
属性 13

Properties

提示时间
#1 · door-open-reminder-time
格式
uint8
读写
R / W / N
值
0不提示
15秒后
210秒后
320秒后
430秒后
5120秒后
6180秒后
告警音量
#2 · door-open-reminder-volume
格式
uint8
读写
R / W / N
值
0静音
1低
2中
3高
提示时间
#3 · door-ajar-reminder-time
格式
uint8
读写
R / W / N
值
73秒
告警音量
#4 · door-ajar-reminder-volume
格式
uint8
读写
R / W / N
值
0静音
1低
2中
3高
提示时间
#5 · door-lock-broken-reminder-time
格式
uint8
读写
R / W / N
值
0立即
15秒后
210秒后
320秒后
告警音量
#6 · door-lock-broken-reminder-volume
格式
uint8
读写
R / W / N
值
0静音
1低
2中
3高
语言选择
#7 · language
格式
uint8
读写
R / W / N
值
0中文
1英文
门锁操作提示音
#8 · door-operation-volume
格式
uint8
读写
R / W / N
值
0静音
1低
2中
3高
告警音量
#9 · reminder-volume
格式
uint8
读写
R / W / N
值
0静音
1低
2中
3高
关门提示音
#10 · door-closing-reminder-volume
格式
uint8
读写
R / W / N
值
0静音
1低
2中
3高
功能设置提示音
#12 · set-function-reminder
格式
uint8
读写
R / W / N
值
1低
2中
3高
低电量提示音开关
#11 · low-battery-reminder-switch
格式
bool
读写
R / W / N
值
—
门未关提示功能开关
#13 · door-not-closed-reminder
格式
bool
读写
R / W / N
值
—
自检服务
#15 · self-check
属性 4动作 2

Properties

自检结果
#1 · self-check-results
格式
uint16
读写
值
0成功
1失败
21前锁MCU通讯异常
22摄像头MCU通讯异常
23指纹模组通讯异常
24密码模块通讯异常
25感应器模块通讯异常
27NFC通讯异常
28音频通讯异常
29摄像头通讯异常
121后锁MCU通讯异常
123后锁BLE异常
125锁体异常
当前自检项
#2 · self-check-current
格式
uint8
读写
值
0开始
2前锁MCU
3摄像头MCU
5密码模块
6前锁雷达
8NFC
9音频通讯
10摄像头
11后锁MCU
13后锁蓝牙
15锁体
丢包率
#3 · packet-loss-rate
格式
uint8
读写
值
0 ~ 255,步长 1
信号强度
#4 · rssi
格式
int8
读写
值
-100 ~ 0,步长 1

Actions

开始自检
#1 · start-check
入参
#2当前自检项uint8
出参
#1自检结果uint16
终止自检
#2 · stop-check
WIFI门铃
#21 · doorbell
属性 5事件 1

Properties

门铃
#1 · on
格式
bool
读写
R / W / N
值
—
铃声类型
#4 · ringtone
格式
uint8
读写
R / W / N
值
0铃声01
1铃声02
2铃声03
提示音量
#5 · volume
格式
uint8
读写
R / W / N
值
0静音
1低
2中
3高
当前时间(unix timestamp)
#6 · current-time
格式
uint32
读写
值
0 ~ 4294967295,步长 1
门铃灯
#7 · doorbell-light-on
格式
bool
读写
R / W / N
值
—

Events

门铃响了
#1 · doorbell-ring
触发参数
#6当前时间(unix timestamp)uint32
干电池
#6 · battery
属性 2

Properties

电池电量
#1003 · battery-level
格式
uint8
读写
N / R
值
0 ~ 100,步长 1 percentage
工作状态
#1004 · status
格式
uint8
读写
N / R
值
1已安装
2已拆卸
勿扰
#20 · no-disturb
属性 3

Properties

勿扰
#1 · no-disturb
格式
bool
读写
R / W / N
值
—
启用时间段(格式为:00:00:00-00:00:00)
#2 · enable-time-period
格式
string
读写
R / W / N
值
—
当前勿扰状态
#3 · current-no-disturb
格式
bool
读写
R / N
值
—
演示
#22 · demo
属性 1

Properties

演示模式状态
#1 · demo-mode-status
格式
bool
读写
R / N
值
—