MIOT HomeMIOT Home
小米智能门锁 4 Pro
#xiaomi.lock.s1

小米智能门锁 4 Pro

urn:miot-spec-v2:device:lock:0000A038:xiaomi-s1:3
Version v3 v2 v1
Language
Service tree
Lock
#2 · lock
17 properties2 actions2 events

Properties

Operation Position
#1 · operation-position
Format
uint8
Access
Value
1Indoor
2Outdoor
3Not Tell The Inside Or Outside Of The Door
Operation Method
#2 · operation-method
Format
uint8
Access
Value
1Mobile Phone
2Finger Print
3PassWord
4NFC
5Face
6Lock Key
7One Time Password
8Periodic Password
9Coerce
10Two Step Verification
11Manual
12Auto
13Palm Vein
14Button Unlock Inside
15Wifi Remote Unlock
Lock Action
#3 · lock-action
Format
uint8
Access
Value
1Locked
2Unlock
3Locked From Inside
4Released Lock From Inside
5Enabled Child Lock
6Disabled Child Lock
7Enable The Away From Home Mode
8Disable The Away From Home Mode
Abnormal Condition
#4 · abnormal-condition
Format
uint8
Access
Value
2Frequent Unlocking Failed By Password
3Frequent Unlocking Failed By Fingerprint
4Frequent Unlocking Failed By NFC
5Frequent Unlocking Failed By Face
6Frequent Unlocking Failed By Palmprint
9Door Lock Was Damaged
10Locked Unsuccessfully
11Unlock From Inside After Leaving Home
12Door Lock Was Reset
15Door Lock Fingerprint Sensor Error
18The Lithium Battery Temperature Is Too High
19Door Lock Batteries Are Low
20Door Lock Batteries Are Nearly Depleted
21Door Lock Camera Batteries Are Low
22Door Lock Camera Batteries Are Nearly Depleted
23Leaving The Door Open Timed Out
24Door Was Ajar
25Door Was Opened Forcefully
26The No. 5 Battery Was Removed
27The Lithium Battery Was Removed
28Emergency Power Supply
29Sensor Over-Triggered
30Emergency Charging
1Frequent Unlocking Failed By Multiple Methods
31Lithium Battery Overcharge
Operation ID
#5 · operation-id
Format
uint16
Access
Value
0 ~ 65535, step 1
Current Time
#6 · current-time
Format
uint32
Access
Value
0 ~ 4294967295, step 1 seconds
Anti Lock
#7 · anti-lock
Format
bool
Access
Value
—
Child Lock
#8 · child-lock
Format
bool
Access
Value
—
Button Function
#9 · button-function
Format
uint8
Access
Value
0Anti Lock
1Child Lock
Door Lock Local Settings
#12 · door-lock-local-settings
Format
bool
Access
Value
—
Face Unlock Sensitivity
#13 · face-unlock-sensitivity
Format
uint8
Access
Value
0Low
1Medium
2High
Face Unlock Sleep Time
#14 · face-unlock-sleep-time
Format
uint8
Access
Value
00 Seconds
15 Seconds
215 Seconds
330 Seconds
460 Seconds
Turn On The Anti Lock Setting
#15 · turn-on-the-anti-lock-setting
Format
bool
Access
Value
—
Reset With Verification Required Setting
#16 · reset-with-verification-required-setting
Format
bool
Access
Value
—
Face Recognition Unlocking Switch
#17 · face-recognition-unlocking-switch
Format
bool
Access
Value
—
Palm Vein Recognition Unlocking Switch
#18 · palm-vein-recognition-unlocking-switch
Format
bool
Access
Value
—
Triggering Method
#19 · triggering-method
Format
uint8
Access
Value
0Manual
1Auto

Actions

Ble Unlock
#1 · ble-unlock
Ble Awake Dev
#2 · ble-awake-dev

Events

Lock Event
#1020 · lock-event
Arguments
#1Operation Positionuint8#2Operation Methoduint8#3Lock Actionuint8#5Operation IDuint16#6Current Timeuint32
Exception Occurred
#1007 · exception-occurred
Arguments
#4Abnormal Conditionuint8#6Current Timeuint32
Door
#3 · door
1 properties

Properties

Door State
#1021 · door-state
Format
uint8
Access
N / R
Value
1Locked
2Unlocked
3Leaving The Door Open Timed Out
4Door Was Ajar
5Child Lock
6Anti Lock
Lock Manage
#4 · lock-manage
13 properties10 actions9 events

Properties

User Ids
#1 · user-ids
Format
uint16
Access
Value
0 ~ 65535, step 1
User Type
#2 · user-type
Format
uint8
Access
Value
0Owner
1Manager
2Normal User
3Frequent Visitors
4All Users
5All Normal Users
Operation Method
#3 · operation-method
Format
uint8
Access
Value
1Mobile Phone
2Finger Print
3PassWord
4NFC
5Face
6Lock Key
7One Time Password
8Periodic Password
9Coerce
10Two Step Verification
11Manual
12Auto
13Palm Vein
Operation ID
#4 · operation-id
Format
uint16
Access
Value
0 ~ 65535, step 1
Credential
#5 · credential
Format
string
Access
Value
—
Current Time
#6 · current-time
Format
uint32
Access
Value
0 ~ 4294967295, step 1 seconds
Error Code
#7 · error-code
Format
uint16
Access
Value
0Success
1Received Command Successfully Executing
2Internal Error
3Not Found
4Memory Full
5Parameter Error
6Timeout
7Device Busy
8Duplicate Parameter
9Duplicate Credentials
Credential State
#8 · credential-state
Format
uint16
Access
Value
0Success
1Fail
1000Fingerprint Area Overlap
1001Low Fingerprint Quality
1002Fingerprint Area Too Small
1003Incorrect Pressing Position
1004Wet Fingerprint
1005Remove Finger
2000Face Undetected
2001Face Too Close To Upper Edge
2002Face Too Close To Lower Edge
2003Face Too Close To Left Edge
2004Face Too Close To Right Edge
2005Face Too Far
2006Face Too Close
2007Face Obscured
2008Recorded Face Orientation Wrong
2009Face Liveness Detection Fails
3000No Palm Detected
3001Palm Too Close To Upper Edge
3002Palm Too Close To Lower Edge
3003Palm Too Close To Left Edge
3004Palm Too Close To Right Edge
3005Palm Too Far
3006Palm Too Close
3007Palm Liveness Detection Fails
3008Palm Is Obscured
Credential Step Current
#9 · credential-step-current
Format
uint8
Access
Value
0 ~ 255, step 1
Credential Step All
#10 · credential-step-all
Format
uint8
Access
Value
0 ~ 255, step 1
Unlock Method Info String
#11 · unlock-method-info-string
Format
string
Access
Value
—
Sync Version
#12 · sync-version
Format
uint8
Access
Value
1 ~ 10, step 1
Lock User Info String
#13 · lock-user-info-string
Format
string
Access
Value
—

Actions

Add Lock User
#1 · add-lock-user
Input
#1User Idsuint16#2User Typeuint8
Output
#7Error Codeuint16#1User Idsuint16#2User Typeuint8#6Current Timeuint32
Delete Lock User
#2 · delete-lock-user
Input
#1User Idsuint16#2User Typeuint8
Output
#7Error Codeuint16
Add Unlock Method
#3 · add-unlock-method
Input
#1User Idsuint16#3Operation Methoduint8#4Operation IDuint16#5Credentialstring
Output
#7Error Codeuint16#1User Idsuint16#3Operation Methoduint8#4Operation IDuint16#6Current Timeuint32
Cancel Unlock Method
#4 · cancel-unlock-method
Output
#7Error Codeuint16
Delete Unlock Method
#5 · delete-unlock-method
Input
#1User Idsuint16#4Operation IDuint16
Output
#7Error Codeuint16
Sync Lock User
#6 · sync-lock-user
Output
#7Error Codeuint16
Sync Unlock Method
#7 · sync-unlock-method
Output
#7Error Codeuint16
Alloc Lock User
#8 · alloc-lock-user
Input
#1User Idsuint16#4Operation IDuint16#3Operation Methoduint8
Output
#7Error Codeuint16
Sync Unlock Method With Version
#9 · sync-unlock-method-with-version
Input
#12Sync Versionuint8
Sync Lock User With Version
#10 · sync-lock-user-with-version
Input
#12Sync Versionuint8

Events

Update Lock User
#1 · update-lock-user
Arguments
#7Error Codeuint16#1User Idsuint16#2User Typeuint8#6Current Timeuint32
Update Unlock Method
#2 · update-unlock-method
Arguments
#7Error Codeuint16#1User Idsuint16#3Operation Methoduint8#4Operation IDuint16#6Current Timeuint32
Add Credential Event
#3 · add-credential-event
Arguments
#8Credential Stateuint16#9Credential Step Currentuint8#10Credential Step Alluint8
Add User Complete
#4 · add-user-complete
Arguments
#1User Idsuint16#2User Typeuint8#6Current Timeuint32
Delete User Complete
#5 · delete-user-complete
Arguments
#1User Idsuint16#2User Typeuint8#6Current Timeuint32
Add User Key Complete
#6 · add-user-key-complete
Arguments
#1User Idsuint16#4Operation IDuint16#3Operation Methoduint8#6Current Timeuint32
Delete User Key Complete
#7 · delete-user-key-complete
Arguments
#1User Idsuint16#4Operation IDuint16#3Operation Methoduint8#6Current Timeuint32
Sync User Key Complete
#8 · sync-user-key-complete
Sync User Complete
#9 · sync-user-complete
Lock History
#5 · lock-history
10 properties1 actions1 events

Properties

History Time
#5 · history-time
Format
uint32
Access
Value
0 ~ 4294967295, step 1
Last History Time
#6 · last-history-time
Format
uint32
Access
Value
0 ~ 4294967295, step 1
Doorbell Data String
#11 · doorbell-data-string
Format
string
Access
Value
—
Abnormal Data String
#12 · abnormal-data-string
Format
string
Access
Value
—
Door Data String
#13 · door-data-string
Format
string
Access
Value
—
User Delete String
#14 · user-delete-string
Format
string
Access
Value
—
User Add String
#15 · user-add-string
Format
string
Access
Value
—
User Key Add String
#16 · user-key-add-string
Format
string
Access
Value
—
User Key Delete String
#17 · user-key-delete-string
Format
string
Access
Value
—
Lock History String
#18 · lock-history-string
Format
string
Access
Value
—

Actions

History Notify Action
#1 · history-notify-action
Input
#5History Timeuint32

Events

History Notify Complete
#1 · history-notify-complete
Arguments
#6Last History Timeuint32
Battery
#6 · battery
2 properties

Properties

Battery Level
#1003 · battery-level
Format
uint8
Access
N / R
Value
0 ~ 100, step 1 percentage
Status
#1004 · status
Format
uint8
Access
N / R
Value
1Installed
2Removed
Doorbell
#7 · doorbell
1 properties1 events

Properties

Current Time
#1 · current-time
Format
uint32
Access
Value
0 ~ 4294967295, step 1 seconds

Events

Doorbell Ring
#1006 · doorbell-ring
Arguments
#1Current Timeuint32
Time Management
#9 · time-management
2 properties1 actions

Properties

Time Zone Offset
#1 · time-zone-offset
Format
float
Access
Value
-20 ~ 20, step 0.25
Current Time
#2 · current-time
Format
uint32
Access
Value
0 ~ 4294967295, step 1 seconds

Actions

Time Correction
#1 · time-correction
Input
#1Time Zone Offsetfloat#2Current Timeuint32
Lock Version
#11 · lock-version
8 properties

Properties

Front Panel Version
#1 · front-panel-version
Format
string
Access
Value
—
Rear Panel Version
#2 · rear-panel-version
Format
string
Access
Value
—
Fingerprint Board Version
#3 · fingerprint-board-version
Format
string
Access
Value
—
Hardware Version
#4 · hardware-version
Format
string
Access
Value
—
Voice Version
#5 · voice-version
Format
string
Access
Value
—
Wifi Version
#6 · wifi-version
Format
string
Access
Value
—
Camera Version
#7 · camera-version
Format
string
Access
Value
—
Face Palm Vein Version
#8 · face-palm-vein-version
Format
string
Access
Value
—
Battery
#13 · battery
4 properties

Properties

Battery Level
#1 · battery-level
Format
uint8
Access
R / N
Value
0 ~ 100, step 1 percentage
Charging State
#2 · charging-state
Format
uint8
Access
R / N
Value
1Charging
2Not Charging
3Not Chargeable
Status
#3 · status
Format
uint8
Access
R / N
Value
1Installed
2Removed
Current Time
#4 · current-time
Format
uint32
Access
Value
0 ~ 4294967295, step 1 seconds
Door Lock Camera
#17 · door-lock-camera
20 properties2 actions3 events

Properties

Switch Status
#1 · on
Format
bool
Access
R / W / N
Value
—
Night Shot
#2 · night-shot
Format
uint8
Access
R / W / N
Value
0Off
1On
2Auto
Ringtone
#6 · ringtone
Format
uint8
Access
R / W / N
Value
1 ~ 5, step 1
Image Distortion Correction
#7 · image-distortion-correction
Format
bool
Access
R / W / N
Value
—
Current Time
#8 · current-time
Format
uint32
Access
Value
0 ~ 4294967295, step 1
Auto Screen On
#9 · auto-screen-on
Format
bool
Access
R / W / N
Value
—
Live Video Valid Time
#11 · live-video-valid-time
Format
uint8
Access
R / W / N
Value
11
22
33
44
55
Live Video Enable Time Period
#12 · live-video-enable-time-period
Format
string
Access
R / W / N
Value
—
Detection Sensitivity
#13 · detection-sensitivity
Format
uint8
Access
R / W / N
Value
0Low
1Medium
2High
Auto Screen On Time
#14 · auto-screen-on-time
Format
uint8
Access
R / W / N
Value
010 Seconds
115 Seconds
220 Seconds
Glimmer Full Color
#15 · glimmer-full-color
Format
bool
Access
R / W / N
Value
—
Mode
#16 · mode
Format
uint8
Access
R / W / N
Value
0Real-time Mode
1General Mode
2Battery-saving Mode
3Customized Mode
Someone Staying Activated Switch
#18 · someone-staying-activated-switch
Format
bool
Access
R / W / N
Value
—
Staying Time
#19 · staying-time
Format
uint8
Access
R / W / N
Value
06 Seconds
110 Seconds
215 Seconds
320 Seconds
430 Seconds
Face Marking Switch
#20 · face-marking-switch
Format
bool
Access
R / W / N
Value
—
Video Recording Time Period
#22 · video-recording-time-period
Format
string
Access
R / W / N
Value
—
Live Video Streaming
#23 · live-video-streaming
Format
bool
Access
R / N / W
Value
—
Wechat Info
#24 · wechat-info
Format
string
Access
R / W / N
Value
—
Inside Unlock Recording
#25 · inside-unlock-recording
Format
bool
Access
R / W / N
Value
—
Pass By Activated Switch
#26 · pass-by-activated-switch
Format
bool
Access
R / W / N
Value
—

Actions

Wake Up
#3 · wake-up
Video Recording
#4 · video-recording

Events

Someone At The Door
#2 · someone-at-the-door
Arguments
#8Current Timeuint32
WeChat Unauthorized Notification
#3 · wechat-unauth-notify
Arguments
#8Current Timeuint32
Someone Passed By
#4 · someone-passed-by
Arguments
#8Current Timeuint32
Lock
#18 · lock
3 properties

Properties

Away Home Mode
#10 · away-home-mode
Format
bool
Access
R / W / N
Value
—
Door Lock Local Setting Status
#11 · door-lock-local-setting-status
Format
bool
Access
R / W / N
Value
—
Low Power Device Wifi Status
#12 · low-power-device-wifi-status
Format
uint8
Access
R / N
Value
0Unknown
1Online
2Sleep
3Offline
Lock Volume Management
#19 · lock-volume-management
10 properties

Properties

Door Open Reminder Time
#1 · door-open-reminder-time
Format
uint8
Access
R / W / N
Value
0No Reminder
15 Seconds
210 Seconds
320 Seconds
430 Seconds
5120 Seconds
6180 Seconds
Door Open Reminder Volume
#2 · door-open-reminder-volume
Format
uint8
Access
R / W / N
Value
0Silent
1Low
2Middle
3High
Door Ajar Reminder Time
#3 · door-ajar-reminder-time
Format
uint8
Access
R / W / N
Value
73 Seconds
Door Ajar Reminder Volume
#4 · door-ajar-reminder-volume
Format
uint8
Access
R / W / N
Value
0Silent
1Low
2Middle
3High
Door Lock Broken Reminder Time
#5 · door-lock-broken-reminder-time
Format
uint8
Access
R / W / N
Value
0Immediately
15 Seconds
210 Seconds
320 Seconds
Door Lock Broken Reminder Volume
#6 · door-lock-broken-reminder-volume
Format
uint8
Access
R / W / N
Value
0Silent
1Low
2Middle
3High
Language
#7 · language
Format
uint8
Access
R / W / N
Value
0Chinese
1English
Door Operation Volume
#8 · door-operation-volume
Format
uint8
Access
R / W / N
Value
0Silent
1Low
2Middle
3High
Reminder Volume
#9 · reminder-volume
Format
uint8
Access
R / W / N
Value
0Silent
1Low
2Middle
3High
Door Closing Reminder Volume
#10 · door-closing-reminder-volume
Format
uint8
Access
R / W / N
Value
0Silent
1Low
2Middle
3High
No Disturb
#20 · no-disturb
3 properties

Properties

No Disturb
#1 · no-disturb
Format
bool
Access
R / W / N
Value
—
Enable Time Period
#2 · enable-time-period
Format
string
Access
R / W / N
Value
—
Current No Disturb
#3 · current-no-disturb
Format
bool
Access
R / N
Value
—
Doorbell
#21 · doorbell
5 properties1 events

Properties

Switch Status
#1 · on
Format
bool
Access
R / W / N
Value
—
Ringtone
#4 · ringtone
Format
uint8
Access
R / W / N
Value
0Ringtone 1
1Ringtone 2
2Ringtone 3
Volume
#5 · volume
Format
uint8
Access
R / W / N
Value
0Silent
1Low
2Middle
3High
Current Time
#6 · current-time
Format
uint32
Access
Value
0 ~ 4294967295, step 1
Doorbell Light On
#7 · doorbell-light-on
Format
bool
Access
R / W / N
Value
—

Events

Doorbell Ring
#1 · doorbell-ring
Arguments
#6Current Timeuint32
Lock Manage
#22 · lock-manage
13 properties8 actions9 events

Properties

User Ids
#1 · user-ids
Format
uint16
Access
Value
0 ~ 65535, step 1
User Type
#2 · user-type
Format
uint8
Access
Value
0Owner
1Manager
2Normal User
3Frequent Visitors
4All Users
5All Normal Users
Error Code
#3 · error-code
Format
uint16
Access
Value
0Success
1Received Command Successfully Executing
2Internal Error
3Not Found
4Memory Full
5Parameter Error
6Timeout
7Device Busy
8Duplicate Parameter
9Duplicate Credentials
Current Time
#4 · current-time
Format
uint32
Access
Value
0 ~ 4294967295, step 1
Credential
#5 · credential
Format
string
Access
Value
—
Operation Method
#6 · operation-method
Format
uint8
Access
Value
1BLE
Operation ID
#7 · operation-id
Format
uint16
Access
Value
0 ~ 65535, step 1
Credential State
#8 · credential-state
Format
uint8
Access
Value
0Success
1Fail
Credential Step Current
#9 · credential-step-current
Format
uint8
Access
Value
0 ~ 255, step 1
Credential Step All
#10 · credential-step-all
Format
uint8
Access
Value
0 ~ 255, step 1
User Deadbolt Permission
#11 · user-deadbolt-permission
Format
string
Access
R / W / N
Value
—
Unlock Method Info String
#12 · unlock-method-info-string
Format
string
Access
Value
—
Sync Version
#13 · sync-version
Format
uint8
Access
Value
1 ~ 10, step 1

Actions

Add Lock User
#1 · add-lock-user
Delete Lock User
#2 · delete-lock-user
Sync Lock User
#3 · sync-lock-user
Add Unlock Method
#4 · add-unlock-method
Input
#1User Idsuint16#6Operation Methoduint8#7Operation IDuint16#5Credentialstring
Cancel Unlock Method
#5 · cancel-unlock-method
Delete Unlock Method
#6 · delete-unlock-method
Input
#1User Idsuint16#7Operation IDuint16
Sync Unlock Method
#7 · sync-unlock-method
Alloc Lock User
#8 · alloc-lock-user

Events

Update Lock User
#1 · update-lock-user
Update Unlock Method
#2 · update-unlock-method
Arguments
#3Error Codeuint16#1User Idsuint16#6Operation Methoduint8#7Operation IDuint16#4Current Timeuint32
Add Credential Event
#3 · add-credential-event
Arguments
#8Credential Stateuint8#9Credential Step Currentuint8#10Credential Step Alluint8
Add User Complete
#4 · add-user-complete
Arguments
#1User Idsuint16#4Current Timeuint32
Delete User Complete
#5 · delete-user-complete
Arguments
#1User Idsuint16#4Current Timeuint32
Add User Key Complete
#6 · add-user-key-complete
Arguments
#1User Idsuint16#7Operation IDuint16#4Current Timeuint32
Delete User Key Complete
#7 · delete-user-key-complete
Arguments
#1User Idsuint16#7Operation IDuint16#4Current Timeuint32
Sync User Key Complete
#8 · sync-user-key-complete
Sync User Complete
#9 · sync-user-complete