MIOT HomeMIOT Home
小米智能门锁 M20 Pro
#loock.lock.r2

小米智能门锁 M20 Pro

urn:miot-spec-v2:device:lock:0000A038:loock-r2:1
版本 v2 v1
语言
Service tree
门锁
#2 · lock
属性 6事件 2

Properties

操作位置
#1 · operation-position
格式
uint8
读写
值
1Indoor
2Outdoor
3无法区分门内外
操作方式
#2 · operation-method
格式
uint8
读写
值
1手机
2指纹
3密码
4NFC
5人脸
6指静脉
7掌纹
8机械钥匙
9一次性密码
10周期性密码
11HomeKit
12胁迫
13双重验证
14转盘
15手动
16自动
锁动作
#3 · lock-action
格式
uint8
读写
值
1上锁
2开锁
3上提加固
4开启反锁
5关闭反锁
6开启童锁
7关闭童锁
8开启离家模式
9关闭离家模式
操作ID
#4 · operation-id
格式
uint16
读写
值
0 ~ 65535,步长 1
当前时间
#5 · current-time
格式
uint32
读写
值
0 ~ 4294967295,步长 1
异常情况
#6 · abnormal-condition
格式
uint8
读写
值
1多种方式频繁开锁失败
2密码频繁开锁失败
3指纹频繁开锁失败
4NFC频繁开锁失败
5人脸频繁开锁失败
6掌纹频繁开锁失败
7指静脉频繁开锁失败
8钥匙频繁开锁失败
9门锁被撬
10超时未按要求上锁
11离家后门内开锁
12门锁被重置
13钥匙孔异物
14钥匙未取出
15指纹传感器异常
16机械故障
17锁体传感器故障
18锂电池温度过高
19门锁电量低(一般指低于百分之十)
20门锁电量即将耗尽(一般指低于百分之五)
21门锁摄像头电量低(一般指低于百分之十)
22门锁摄像头电量即将耗尽(一般指低于百分之五)
23门未关(门超时未关)
24门虚掩
25有人撬门

Events

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

Properties

门状态
#1021 · door-state
格式
uint8
读写
值
16(1<<4)已上锁(反锁:0;童锁:0)
20已上锁(反锁:0;童锁:1)
24已上锁(反锁:1;童锁:0)
28已上锁(反锁:1;童锁:1)
32(2<<4)已开锁
36已开锁
40已开锁
44已开锁
48(3<<4)门未关(门超时未关)
52门未关(门超时未关)
56门未关(门超时未关)
60门未关(门超时未关)
64(4<<4)门虚掩
68门虚掩
72门虚掩
76门虚掩
电池
#4 · battery
属性 1

Properties

电池电量
#1003 · battery-level
格式
uint8
读写
N / R
值
0 ~ 100,步长 1
门铃
#5 · doorbell
属性 1事件 1

Properties

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

Events

门铃响了
#1006 · doorbell-ring
触发参数
#1当前时间uint32
可视门铃
#7 · video-doorbell
属性 10事件 4

Properties

开关-移动侦测(录像)开关
#1 · on
格式
bool
读写
R / W / N
值
—
省电模式下的设备在线状态
#2 · status
格式
uint8
读写
R / N
值
0设备下线
1设备上线
夜视功能
#3 · night-shot
格式
uint8
读写
R / W / N
值
0自动
1打开
2关闭
宽动态范围模式
#5 · wdr-mode
格式
bool
读写
R / W / N
值
—
实时画面始终开启/发生事件时开启
#6 · eco
格式
bool
读写
R / W / N
值
—
(不支持)铃声
#7 · ringtone
格式
uint8
读写
R / W / N
值
1 ~ 5,步长 1
图像畸变矫正
#8 · image-distortion-correction
格式
bool
读写
R / W / N
值
—
云存视频id
#9 · cloud-video-id
格式
string
读写
值
—
当前时间(unix timestamp)
#10 · current-time
格式
uint32
读写
值
0 ~ 4294967295,步长 1
自动亮屏开关
#11 · auto-screen-on
格式
bool
读写
R / W / N
值
—

Events

门铃响了
#1 · doorbell-ring
触发参数
#10当前时间(unix timestamp)uint32#9云存视频idstring
(不支持)门铃被强行拆除
#2 · doorbell-forcibly-removed
触发参数
#10当前时间(unix timestamp)uint32#9云存视频idstring
有人经过
#3 · someone-passed-by
触发参数
#10当前时间(unix timestamp)uint32#9云存视频idstring
有人停留
#4 · someone-at-the-door
触发参数
#10当前时间(unix timestamp)uint32#9云存视频idstring
移动侦测
#8 · motion-detection
属性 3

Properties

侦测灵敏度
#3 · detection-sensitivity
格式
uint8
读写
R / W / N
值
0高
1中
2低
移动侦测开始时间
#4 · motion-detection-start-time
格式
string
读写
R / W / N
值
—
移动侦测结束时间
#5 · motion-detection-end-time
格式
string
读写
R / W / N
值
—
(不支持)P2P视频流
#9 · p2p-stream
动作 2

Actions

(不支持)开始实时视频流
#1 · start-p2p-stream
(不支持)停止流
#2 · stop-stream
猫眼电池
#10 · battery
属性 1事件 1

Properties

电池电量
#1 · battery-level
格式
uint8
读写
R / N
值
0 ~ 100,步长 1

Events

电量低
#1 · low-battery
BLE专用自定义服务(ble专用,事件参数总长度不能超过9字节)
#12 · customized-service-for-ble
属性 5事件 2

Properties

时间戳
#2 · customized-argument-2
格式
uint32
读写
值
0 ~ 4294967295,步长 1
统计
#3 · customized-argument-4
格式
uint16
读写
值
0 ~ 65535,步长 1
指纹开锁
#5 · customized-argument-5
格式
uint8
读写
值
0开锁失败
1开锁成功
操作ID
#6 · customized-argument-6
格式
uint16
读写
值
0 ~ 65535,步长 1
操作方式
#7 · customized-argument-1
格式
uint8
读写
值
0 ~ 255,步长 1

Events

私有定义
#1022 · customized-event-1
触发参数
#7操作方式uint8#6操作IDuint16#2时间戳uint32
(不支持)指纹开锁事件
#1023 · customized-event-2
触发参数
#2时间戳uint32#3统计uint16#5指纹开锁uint8#6操作IDuint16
WIFI自定义服务
#11 · customized-for-wifi
属性 17动作 5事件 1

Properties

亮屏持续时间
#2 · screen-on-duration
格式
uint8
读写
R / N / W
值
6Second 6
10Second 10
15Second 15
20Second 20
有人经过录像开关
#3 · record-someone-pass
格式
bool
读写
R / N / W
值
—
有人逗留录像开关
#4 · record-someone-stay
格式
bool
读写
R / N / W
值
—
逗留时长
#5 · stay-duration
格式
uint8
读写
R / N / W
值
6Stay 6 Second
10Stay 10 Second
15Stay 15 Second
20Stay 20 Second
30Stay 30 Second
60Stay 60 Second
微光全彩开关
#6 · glimmer-full-color
格式
bool
读写
R / N / W
值
—
实时画面-发生事件时开启,有效时间段内可在APP首页查看门锁实时画面
#7 · eco-wakeup-duration
格式
uint8
读写
R / N / W
值
1 ~ 5,步长 1
实时画面-实时开启,开始时间,HH:mm
#8 · real-view-start-time
格式
string
读写
R / N / W
值
—
实时画面-实时开启,结束时间,HH:mm
#9 · real-view-end-time
格式
string
读写
R / N / W
值
—
wifi主控详细版本号(由WIFI SDK版本与WIFI应用固件版本组合成)规则:2.1.6_1000
#10 · ver-wifi-detail
格式
string
读写
R / N
值
—
门锁的版本:app-ble-fp-locker-3d-media-hardware
#11 · ver-lock-detail
格式
string
读写
R / N
值
—
视频主控详细版本号(由各子版本号组成)规则:uboot-tag-kernel-recovery-rootfs-system
#12 · ver-camera-detail
格式
string
读写
R / N
值
—
视频版本(由wifi+视频主控组成)规则:wifi-media
#13 · ver-fw-camera
格式
string
读写
R / N
值
—
内屏显示视频位置(7档)
#14 · lcd-show-mode
格式
uint8
读写
R / N / W
值
1Area 1
2Area 2
3Area 3
4Area 4
5Area 5
6Area 6
7Area 7
摄像头锂电池电量更新时间戳
#15 · battery-update-time
格式
uint32
读写
R / N
值
0 ~ 4294967295,步长 1
是否绑定,true为已绑定,false为未绑定
#16 · device-status
格式
bool
读写
R / N
值
—
设备联网上线的时间戳
#17 · online-timestamp
格式
uint32
读写
R / N
值
0 ~ 4294967295,步长 1
自定义属性
#18 · customized-property
格式
string
读写
值
—

Actions

远程触发门铃
#1 · rpc-doorbell
远程点亮屏幕
#2 · rpc-preview
远程触发录像
#3 · rpc-record
远程重启系统
#4 · system-reboot
设置同步请求
#5 · sync-setting-ask

Events

自定义事件
#1 · customized-event
触发参数
#18自定义属性string