MIOT HomeMIOT Home
小米智能门锁 M40
#xiaomi.lock.m30fa

小米智能门锁 M40

urn:miot-spec-v2:device:lock:0000A038:xiaomi-m30fa:1
语言
Service tree
门锁
#2 · lock
属性 6事件 2

Properties

异常情况
#1 · abnormal-condition
格式
uint8
读写
1多种方式频繁开锁失败
2门锁被撬
3门锁被重置
4五号电量低(一般指低于百分之十)
5五号电量即将耗尽(一般指低于百分之五)
6离家后门内开锁
7门虚掩
9门未关(门超时未关)
10解除门虚掩
11门未关好
12开锁异常
13室内高温报警
14锂电池电量低(一般指低于百分之十)
15锂电池电量即将耗尽(一般指低于百分之五)
16锂电池温度过高
19锂电池被取下
205号电池被取下
21锂电池安装
225号电池安装
23锂电池常温
24应急供电中
操作方式
#2 · operation-method
格式
uint8
读写
1手机
2指纹
3密码
4NFC
5机械钥匙或应急旋钮
6一次性密码
7周期性密码
8胁迫
9门内按钮开锁
11人脸
12掌纹
13远程开锁
操作ID
#3 · operation-id
格式
uint16
读写
0 ~ 65535,步长 1
当前时间(unix timestamp)
#4 · current-time
格式
uint32
读写
0 ~ 4294967295,步长 1
操作位置
#5 · operation-position
格式
uint8
读写
1门内
2门外
锁动作
#6 · lock-action
格式
uint8
读写
1自动上锁
2开锁
3开启反锁
4关闭反锁
5开启童锁
6关闭童锁
7开启离家模式
8关闭离家模式
9关门
10开启童锁+反锁
11关闭童锁+反锁
12充电状态检测

Events

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

Properties

门状态
#1021 · door-state
格式
uint8
读写
N / R
1已上锁
2已开锁
3解除门虚掩
4门虚掩
5门未关
17已上锁(童锁开,反锁关)
49已上锁(童锁开,反锁开)
33已上锁(童锁关,反锁开)
18已开锁(童锁开,反锁关)
50已开锁(童锁开,反锁开)
34已开锁(童锁关,反锁开)
19解除门虚掩(童锁开,反锁关)
51解除门虚掩(童锁开,反锁开)
35解除门虚掩(童锁关,反锁开)
20门虚掩(童锁开,反锁关)
52门虚掩(童锁开,反锁开)
36门虚掩(童锁关,反锁开)
21门未关(童锁开,反锁关)
53门未关(童锁开,反锁开)
37门未关(童锁关,反锁开)
6门未关好
22门未关好(童锁开,反锁关)
54门未关好(童锁开,反锁开)
38门未关好(童锁关,反锁开)
电池
#4 · battery
属性 1

Properties

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

Properties

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

Events

门铃响了
#1006 · doorbell-ring
触发参数
#1当前时间(unix timestamp)uint32
可视门铃
#6 · video-doorbell
属性 8动作 3事件 3

Properties

录像开关
#1 · on
格式
bool
读写
R / W / N
红外夜视
#3 · night-shot
格式
uint8
读写
R / W / N
1一直关闭
0一直打开
2自动切换
图像畸变矫正(不支持)
#8 · image-distortion-correction
格式
bool
读写
R / W / N
云存视频id(不支持)
#9 · cloud-video-id
格式
string
读写
当前时间(unix timestamp)
#10 · current-time
格式
uint32
读写
0 ~ 4294967295,步长 1
自动亮屏
#13 · auto-screen-on
格式
bool
读写
R / W / N
实时视频有效时间
#15 · live-video-valid-time
格式
uint8
读写
R / W / N
11分钟
22分钟
33分钟
44分钟
55分钟
实时视频开启时间段
#16 · live-video-enable-time-period
格式
string
读写
R / W / N

Actions

远程呼叫 (不支持)
#1 · remote-call
点亮屏幕 (不支持)
#2 · light-up-screen
唤醒 (不支持)
#3 · wake-up

Events

有人按门铃
#1 · doorbell-ring
触发参数
#10当前时间(unix timestamp)uint32
有人停留
#4 · someone-at-the-door
触发参数
#10当前时间(unix timestamp)uint32
有人经过
#5 · someone-passed-by
触发参数
#10当前时间(unix timestamp)uint32
移动侦测
#7 · motion-detection
属性 4

Properties

人脸识别开启关闭开关
#1 · motion-detection
格式
bool
读写
R / W / N
侦测灵敏度
#3 · detection-sensitivity
格式
uint8
读写
R / W / N
1
2
3
4更低
移动侦测开始时间HH:mm
#4 · motion-detection-start-time
格式
string
读写
R / W / N
移动侦测结束时间HH:mm
#5 · motion-detection-end-time
格式
string
读写
R / W / N
P2P视频流
#8 · p2p-stream
动作 2

Actions

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

Properties

电池电量
#1 · battery-level
格式
uint8
读写
R / N
0 ~ 100,步长 1
当前时间(unix timestamp)
#2 · current-time
格式
uint32
读写
0 ~ 4294967295,步长 1

Events

充电通知
#1 · charging-notification
触发参数
#2当前时间(unix timestamp)uint32
演示
#13 · demo
属性 1

Properties

演示模式状态
#1 · demo-mode-status
格式
bool
读写
R / N
WiFi自定义服务
#10 · customized-for-wifi
属性 18动作 1事件 4

Properties

亮屏支持时间
#1 · screen-on-duration
格式
uint8
读写
R / N / W
10Second 10
15Second 15
20Second 20
有人逗留开关
#2 · record-someone-sty
格式
bool
读写
W / R / N
逗留时长
#3 · stay-duration
格式
uint8
读写
R / N / W
6Stay 6 Second
10Stay 10 Second
15Stay 15 Second
20Stay 20 Second
30Stay 30 Second
60Stay 60 Second
0Stay 0 Second
微光全彩开关
#4 · glimmer-full-color
格式
bool
读写
R / N / W
内屏显示视频位置
#5 · lcd-show-mode
格式
uint8
读写
R / N / W
0Area Left
1Area Mid
2Area Right
包裹检测
#6 · parcel-detection
格式
bool
读写
R / N / W
儿童出门检测
#7 · child-detection
格式
bool
读写
R / N / W
实时画面开启方式-发生事件开启true实时开启false
#8 · live-video-streaming
格式
bool
读写
R / N / W
当前时间
#9 · current-time
格式
uint32
读写
0 ~ 4294967295,步长 1
微信音视频信息
#10 · wechat-info
格式
string
读写
R / N / W
是否绑定wifi
#11 · bind-wifi
格式
bool
读写
R / N
干电池是否安装
#12 · battery-status
格式
bool
读写
R / N
锂电池安装状态
#13 · libattery-status
格式
bool
读写
R / N
wifi在线状态
#14 · wifi-online
格式
bool
读写
R / N
锂电池是否高温
#15 · libattery-temp
格式
bool
读写
R / N
语音留言
#16 · video-message
格式
string
读写
R / N / W
门内开锁录像开关
#17 · record-unlock-inside
格式
bool
读写
R / N / W
有人经过开关
#18 · record-someone-pass
格式
bool
读写
R / N / W

Actions

录制并上传视频
#1 · upload-video

Events

儿童出门检测
#1 · child-detection
触发参数
#9当前时间uint32
包裹检测
#2 · parcel-detection
触发参数
#9当前时间uint32
包裹移动
#3 · parcel-move
触发参数
#9当前时间uint32
微信未授权通知
#5 · wchat-unauthorized
触发参数
#9当前时间uint32
门锁设置自定义wifi服务
#11 · customized-wifi-lock
属性 25动作 1

Properties

门锁语言
#1 · language
格式
uint8
读写
R / N / W
0Chinese
1English
开锁提示音音量
#2 · unlock-tone-volume
格式
uint8
读写
R / N / W
0Mute
1High
2Middle
3Low
门铃音量
#3 · doorbell-volume
格式
uint8
读写
R / N / W
0Mute
1High
2Middle
3Low
门锁异常告警音量
#4 · alarm-volume
格式
uint8
读写
R / N / W
0Mute
1High
2Middle
3Low
门未关告警音音量
#5 · door-open-volume
格式
uint8
读写
R / N / W
0Mute
1High
2Middle
3Low
门虚掩告警音音量
#6 · door-ajar-volume
格式
uint8
读写
R / N / W
0Mute
1High
2Middle
3Low
门未关提示时间
#7 · door-open-time
格式
uint8
读写
R / N / W
0No Prompt
55 Second
1010 Second
2020 Second
3030 Second
120120 Second
180180 Second
门铃铃声
#8 · doorbell-ring
格式
uint8
读写
R / N / W
1Ring 1
2Ring 2
3Ring 3
离家场景是否开启
#9 · leave-home
格式
bool
读写
R / N / W
多功能键设置
#10 · multifunction-button
格式
uint8
读写
R / N / W
1001
2010
3011
5101
6110
7111
门铃开启状态
#11 · doorbell-switch
格式
bool
读写
R / N / W
门铃灯开启状态
#12 · doorbell-light
格式
bool
读写
R / N / W
人脸开锁开启状态
#13 · face-switch
格式
bool
读写
R / N / W
掌静脉开启状态
#14 · palm-vein
格式
bool
读写
R / N / W
人脸休眠时长
#15 · face-sleep-time
格式
uint8
读写
R / N / W
00 Second
55 Second
1515 Second
3030 Second
6060 Second
人脸/掌静脉开锁灵敏度
#16 · lock-sensitivity
格式
uint8
读写
R / N / W
1High
2Middle
3Low
人脸/掌静脉触发方式(是否自动识别)
#17 · auto-identify
格式
bool
读写
R / N / W
门锁本地设置键开启状态
#18 · lock-setting-key
格式
bool
读写
R / N / W
室内高温报警开启状态
#19 · temperature-alarm
格式
bool
读写
R / N / W
发送到门锁的数据内容
#20 · datas
格式
string
读写
门店演示语料音量
#21 · demo-volume
格式
uint8
读写
W
0Mute
1High
2Middle
3Low
自动更新
#22 · auto-update
格式
bool
读写
W
童锁已开启、童锁已关闭
#23 · child-lock-status
格式
bool
读写
R / N / W
关门上锁提示音
#24 · door-close-volume
格式
bool
读写
R / N / W
人脸识别语音
#25 · face-volume
格式
bool
读写
R / N / W

Actions

下发数据到门锁
#1 · send-data
入参
#20发送到门锁的数据内容string
出参
#20发送到门锁的数据内容string