MIOT HomeMIOT Home
小米智能门锁 5
#xiaomi.lock.5s

小米智能门锁 5

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

Properties

操作位置
#1 · operation-position
格式
uint8
读写
值
1门内
2门外
3无法区分门内外
操作方式
#2 · operation-method
格式
uint8
读写
值
1手机
2指纹
3密码
4NFC
6机械钥匙/应急旋钮
7一次性密码
8周期性密码
9胁迫指纹
12自动
14门内按钮开锁
15远程开锁
18临时口令
19微信钥匙
锁动作
#3 · lock-action
格式
uint8
读写
值
1关门
2开锁
3开启反锁
4关闭反锁
5开启童锁
6关闭童锁
7开启离家模式
8关闭离家模式
异常情况
#4 · abnormal-condition
格式
uint8
读写
值
9门锁可能被撬,请及时回家查看,或联系小区保安
11离家期间室内开锁
12门锁被重置
195号电池电量低,请更换
205号电池即将耗尽,请尽快更换
23 门未关,请及时关门
24门虚掩,请及时关门
26请安装5号电池
28应急供电中
30室内充电中
1多次开锁验证失败
50新访客密码与已有密码重复,为确保安全,请尽快修改
51访客密码数量超过上限,新添加的密码无法生效,请检查
52访客密码下发失败,请重试
53开门异常
54关门异常
2密码频繁开锁失败
3指纹频繁开锁失败
4NFC频繁开锁失败
操作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
读写
值
—
音效音色选择
#35 · sound-option
格式
uint8
读写
值
1焕新
2经典
门未关时提醒次数配置
#36 · 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临时口令
16微信钥匙
操作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请抬起手指
当前要添加的凭据序号
#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
属性 6

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
读写
值
—
WIFI门锁
#18 · lock
属性 9动作 1事件 2

Properties

离家场景
#10 · away-home-mode
格式
bool
读写
R / W / N
值
—
门锁本地设置状态
#11 · door-lock-local-setting-status
格式
bool
读写
R / W / N
值
—
低功耗设备Wi-Fi状态
#12 · low-power-device-wifi-status
格式
uint8
读写
R / N
值
0Unknown
1Online
2Sleep
3Offline
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
联动反锁开关
#18 · link-anti-lock
格式
bool
读写
R / W / 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
值
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高
低电量提示音开关
#11 · low-battery-reminder-switch
格式
bool
读写
R / W / N
值
—
功能设置提示音
#12 · set-function-reminder
格式
uint8
读写
R / W / N
值
1低
2中
3高
门未关提示功能开关
#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
4指纹模组
5密码模块
8NFC通讯
9音频通讯
11后锁MCU
13后锁BLE
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
属性 4事件 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

Events

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

Properties

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

Properties

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

Properties

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