MIOT HomeMIOT Home
MIOT
#miot.lock.2147

miot.lock.2147

urn:miot-spec-v2:device:lock:0000A038:miot-2147:1
语言
Service tree
门锁
#2 · lock
属性 11动作 1事件 2

Properties

异常情况
#1 · abnormal-condition
格式
uint8
读写
0
操作方式
#2 · operation-method
格式
uint8
读写
1BLE
操作ID
#3 · operation-id
格式
uint16
读写
0 ~ 65535,步长 1
当前时间(unix timestamp)
#4 · current-time
格式
uint32
读写
0 ~ 4294967295,步长 1
操作位置
#5 · operation-position
格式
uint8
读写
1Indoor
2Outdoor
锁动作
#6 · lock-action
格式
uint8
读写
1Lock
反锁
#7 · anti-lock
格式
bool
读写
R / N / W
配置物理按键功能
#8 · button-function
格式
uint8
读写
R / W / N
0Anti Lock
1Child Lock
2Anti Lock And Child Lock
双重验证
#9 · two-step-verification
格式
bool
读写
R / W / N
离家模式
#10 · away-home-mode
格式
bool
读写
R / W / N
童锁
#11 · child-lock
格式
bool
读写
R / W / N

Actions

蓝牙开锁
#1 · ble-unlock

Events

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

Properties

门状态
#1 · door-state
格式
uint8
读写
R / N
1Open
2Closed
当前时间(unix timestamp)
#2 · current-time
格式
uint32
读写
0 ~ 4294967295,步长 1
电源供电方式
#3 · power-supply-mode
格式
uint8
读写
R / N
1Battery Powered
2Mains Powered
障碍物状态
#4 · barrier-state
格式
uint8
读写
R / N
0None
1Hit Barrier
2Detect Barrier

Actions

远程关门
#1 · remote-close-door

Events

门事件
#1 · door-event
触发参数
#1门状态uint8
适配器电源事件
#2 · power-supply-event
触发参数
#3电源供电方式uint8#2当前时间(unix timestamp)uint32
电池
#4 · battery
属性 3动作 1事件 1

Properties

电池电量
#1 · battery-level
格式
uint8
读写
R / N
0 ~ 100,步长 1
电池充电状态
#2 · charging-state
格式
uint8
读写
R / N
1Charging
2Not Charging
3Not Chargeable
电压
#3 · voltage
格式
uint16
读写
R / N
0 ~ 65535,步长 1

Actions

开始充电
#1 · start-charge

Events

电量低
#1 · low-battery
门铃
#5 · doorbell
属性 6事件 1

Properties

开关
#1 · on
格式
bool
读写
R / W / N
工作状态
#2 · status
格式
uint8
读写
R / N
1Idle
2Busy
3Delay
故障
#3 · fault
格式
uint8
读写
R / N
0No Faults
铃声类型
#4 · ringtone
格式
uint8
读写
R / W / N
1 ~ 5,步长 1
音量
#5 · volume
格式
uint8
读写
R / W / N
0 ~ 100,步长 1
当前时间(unix timestamp)
#6 · current-time
格式
uint32
读写
0 ~ 4294967295,步长 1

Events

门铃响了
#1 · doorbell-ring
触发参数
#6当前时间(unix timestamp)uint32
BLE专用自定义服务(ble专用,事件参数总长度不能超过9字节)
#6 · customized-service-for-ble
属性 8事件 2

Properties

自定义属性2
#1 · customized-property-2
格式
uint8
读写
R / N
1Default
自定义属性1
#2 · customized-property-1
格式
uint8
读写
R / N
0 ~ 255,步长 1
自定义参数1
#3 · customized-argument-1
格式
uint8
读写
0 ~ 255,步长 1
自定义参数2
#4 · customized-argument-2
格式
uint8
读写
1Default
自定义参数6(ble专用,事件参数总长度不能超过9字节)
#5 · customized-argument-6
格式
uint8
读写
0 ~ 1,步长 1
自定义参数5(ble专用,事件参数总长度不能超过9字节)
#6 · customized-argument-5
格式
uint8
读写
0 ~ 1,步长 1
自定义参数4(ble专用,事件参数总长度不能超过9字节)
#7 · customized-argument-4
格式
uint8
读写
0 ~ 1,步长 1
自定义参数3(ble专用,事件参数总长度不能超过9字节)
#8 · customized-argument-3
格式
uint8
读写
0 ~ 1,步长 1

Events

自定义事件1(ble专用,参数长度不能超过9字节)
#1 · customized-event-1
自定义事件2(ble专用,参数长度不能超过9字节)
#2 · customized-event-2
门锁历史记录
#7 · lock-history
属性 6动作 1事件 1

Properties

锁事件历史数据上报
#1 · lock-history-data
格式
int64
读写
0 ~ 1,步长 1
异常事件历史数据上报
#2 · abnormal-data
格式
int64
读写
0 ~ 1,步长 1
门状态历史数据上报
#3 · door-data
格式
int64
读写
0 ~ 1,步长 1
门铃事件历史数据上报
#4 · doorbell-data
格式
int64
读写
0 ~ 1,步长 1
历史数据时间戳
#5 · history-time
格式
uint32
读写
0 ~ 4294967295,步长 1
历史数据最新时间戳
#6 · last-history-time
格式
uint32
读写
0 ~ 4294967295,步长 1

Actions

触发历史记录上报操作
#1 · history-notify-action

Events

历史记录上报完成
#1 · history-notify-complete
触发参数
#6历史数据最新时间戳uint32
门锁管理
#8 · lock-manage
属性 10动作 7事件 3

Properties

用户id
#1 · user-ids
格式
uint16
读写
0 ~ 65535,步长 1
用户类型
#2 · user-type
格式
uint8
读写
0Owner
1Manager
2Normal User
3Frequent Visitors
错误码
#3 · error-code
格式
uint16
读写
0 ~ 255,步长 1
当前时间(unix timestamp)
#4 · current-time
格式
uint32
读写
0 ~ 4294967295,步长 1
凭据内容
#5 · credential
格式
string
读写
操作方式
#6 · operation-method
格式
uint8
读写
1BLE
操作ID
#7 · operation-id
格式
uint16
读写
0 ~ 65535,步长 1
凭据状态
#8 · credential-state
格式
uint8
读写
0Success
1Fail
当前要添加的凭据序号
#9 · credential-step-current
格式
uint8
读写
0 ~ 255,步长 1
总凭据数量
#10 · credential-step-all
格式
uint8
读写
0 ~ 255,步长 1

Actions

配置用户 (支持覆盖)
#1 · add-lock-user
删除用户
#2 · delete-lock-user
同步用户信息
#3 · sync-lock-user
添加开锁方式
#4 · add-unlock-method
入参
#1用户iduint16#6操作方式uint8#7操作IDuint16#5凭据内容string
取消添加
#5 · cancel-unlock-method
删除开锁方式
#6 · delete-unlock-method
入参
#1用户iduint16#7操作IDuint16
同步开锁方式
#7 · sync-unlock-method

Events

更新用户组
#1 · update-lock-user
更新开锁方式
#2 · update-unlock-method
触发参数
#3错误码uint16#1用户iduint16#6操作方式uint8#7操作IDuint16#4当前时间(unix timestamp)uint32
添加凭据事件
#3 · add-credential-event
触发参数
#8凭据状态uint8#9当前要添加的凭据序号uint8#10总凭据数量uint8
勿扰
#9 · 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