
#yunmai.scales.ms104
Xiaomi Body Composition Scale S400
urn:miot-spec-v2:device:scale:0000A07D:yunmai-ms104:1
Language
Service tree
Scale#2 · scale3 properties
Scale
#2 · scale
Properties
Unit
#1 · unit
- Format
- uint8
- Access
- Value
- 1Kilogram2Pound
Heart Rate Detection
#2 · heart-rate-detection
- Format
- bool
- Access
- Value
- —
Current Time
#3 · current-time
- Format
- uint32
- Access
- Value
- 0 ~ 4294967295, step 1
Customized Service For Ble#11 · customized-service-for-ble3 properties1 events
Customized Service For Ble
#11 · customized-service-for-ble
Properties
Customized Argument 5
#1 · customized-argument-5
- Format
- uint8
- Access
- Value
- 0 ~ 255, step 1
Customized Argument 4
#2 · customized-argument-4
- Format
- uint32
- Access
- Value
- 0 ~ 4294967295, step 1
Customized Argument 3
#3 · customized-argument-3
- Format
- uint32
- Access
- Value
- 0 ~ 4294967295, step 1
Events
Customized Event-1
#1022 · customized-event-1
Arguments
#1Customized Argument 5uint8#2Customized Argument 4uint32#3Customized Argument 3uint32
USER#6 · user-management15 properties5 actions3 events
USER
#6 · user-management
Properties
Xiaomi ID
#1 · miid
- Format
- int64
- Access
- Value
- 0 ~ 999999999999999, step 1
User age, range (6-99 years old)
#2 · user-age
- Format
- uint8
- Access
- Value
- 1 ~ 130, step 1
User Gender
#3 · user-sex
- Format
- uint8
- Access
- Value
- 1Man2Woman
Woman
#4 · user-type
- Format
- uint8
- Access
- Value
- 1Primary-user2Virtual-user3Visitor
User height (90-220cm)
#5 · user-height
- Format
- uint8
- Access
- Value
- 20 ~ 250, step 1
User weight (in kg, in steps of 0.1kg)
#6 · user-weight
- Format
- uint16
- Access
- Value
- 0 ~ 3000, step 1
time stamp
#7 · time
- Format
- uint32
- Access
- Value
- 0 ~ 4294967295, step 1
User duid
#8 · user-id
- Format
- uint8
- Access
- Value
- 0 ~ 255, step 1
Body fat percentage (step 1 represents 0.1%)
#9 · user-bfp
- Format
- uint16
- Access
- Value
- 0 ~ 1000, step 1
APP version reading
#10 · app-version
- Format
- uint32
- Access
- Value
- 0 ~ 4294967295, step 1
User reporting serial number
#11 · idx
- Format
- uint8
- Access
- Value
- 0 ~ 255, step 1
Account List Hash Value
#12 · hash-code
- Format
- string
- Access
- Value
- —
Device owner logo
#13 · is-owner
- Format
- bool
- Access
- Value
- —
User list update status
#14 · user-status
- Format
- uint8
- Access
- Value
- 0 ~ 255, step 1
Number of users under miid
#15 · user-count
- Format
- uint8
- Access
- Value
- 0 ~ 255, step 1
Actions
Add/Update User Information
#1 · update-user
Input
#1Xiaomi IDint64#8User duiduint8#13Device owner logobool#4Womanuint8#2User age, range (6-99 years old)uint8#3User Genderuint8#5User height (90-220cm)uint8#6User weight (in kg, in steps of 0.1kg)uint16#7time stampuint32#9Body fat percentage (step 1 represents 0.1%)uint16#10APP version readinguint32
Synchronize user data requests
#2 · query-update-user
Input
#1Xiaomi IDint64#13Device owner logobool#12Account List Hash Valuestring
Delete user/account
#3 · del-user
Input
#1Xiaomi IDint64#8User duiduint8#4Womanuint8
Request Scale End User List
#4 · requset-user-list
Input
#1Xiaomi IDint64#8User duiduint8#4Womanuint8
Update user baseline weight
#5 · update-base-weight
Input
#1Xiaomi IDint64#8User duiduint8#4Womanuint8#6User weight (in kg, in steps of 0.1kg)uint16
Events
Report user information item by item
#1 · report-user-info
Arguments
#11User reporting serial numberuint8#1Xiaomi IDint64#8User duiduint8#4Womanuint8#2User age, range (6-99 years old)uint8#3User Genderuint8#5User height (90-220cm)uint8#6User weight (in kg, in steps of 0.1kg)uint16#7time stampuint32#9Body fat percentage (step 1 represents 0.1%)uint16#10APP version readinguint32
Is it necessary to update user information for reporting
#2 · report-update-user
Arguments
#14User list update statusuint8
Report the number of users under miid
#3 · report-user-count
Arguments
#15Number of users under miiduint8
Online data#8 · online-data2 properties2 events
Online data
#8 · online-data
Properties
Weighing process data
#1 · weight-data
- Format
- string
- Access
- Value
- —
Fat measurement process data
#2 · body-composition
- Format
- string
- Access
- Value
- —
Events
Real time weight reporting
#1 · weight-upload
Arguments
#1Weighing process datastring
Body fat heart rate process reporting
#2 · upload-body-data
Arguments
#2Fat measurement process datastring
Offline data#9 · offline-data4 properties2 actions2 events
Offline data
#9 · offline-data
Properties
Offline data reporting
#1 · report-offline-data
- Format
- string
- Access
- Value
- —
List of uploaded offline data idx
#2 · idx-string
- Format
- string
- Access
- Value
- —
Number of offline data entries
#3 · offline-data-count
- Format
- uint8
- Access
- Value
- 0 ~ 255, step 1
Only need to report the number of entries
#4 · only-upload-count
- Format
- uint8
- Access
- Value
- 0 ~ 255, step 1
Actions
Request to report offline data
#1 · request-offline-data
Input
#4Only need to report the number of entriesuint8
End of reception
#2 · end-of-reception
Input
#2List of uploaded offline data idxstring
Events
Report offline data item by item
#1 · report-offline-data
Arguments
#1Offline data reportingstring
Report the number of offline data entries
#2 · report-offline-cnt
Arguments
#3Number of offline data entriesuint8
Working mode#10 · work-mode4 properties1 actions2 events
Working mode
#10 · work-mode
Properties
Working mode
#1 · mode
- Format
- uint8
- Access
- Value
- 0Normal-mode1Baby-mode2Balance-mode3Visitor-mode4Once-mode
working condition
#2 · status
- Format
- uint8
- Access
- Value
- 0 ~ 255, step 1
Balance duration (in steps of 1 second)
#3 · balance-time
- Format
- uint16
- Access
- Value
- 0 ~ 9999, step 1
Weight (kg, for baby holding mode)
#4 · real-weight
- Format
- uint16
- Access
- Value
- 0 ~ 1500, step 1
Actions
Wake-up Pro
#1 · wakeup-device
Events
Baby hugging mode data reporting
#1 · baby-mode-status
Arguments
#2working condition uint8#4Weight (kg, for baby holding mode)uint16
Balanced mode data reporting
#2 · balance-mode-status
Arguments
#2working condition uint8#3Balance duration (in steps of 1 second)uint16
Synchronize information after connection#13 · syncinfo10 properties1 actions1 events
Synchronize information after connection
#13 · syncinfo
Properties
Plugin Version Capability Collection
#1 · pluginversion
- Format
- uint16
- Access
- Value
- 1 ~ 65535, step 1
Weighing unit
#2 · unit
- Format
- uint8
- Access
- Value
- 1Kg3Jin
Heart rate switch
#3 · heart-rate-detection
- Format
- bool
- Access
- Value
- —
Unix timestamp (device runtime timestamp)
#4 · current-time
- Format
- uint32
- Access
- Value
- 0 ~ 4294967295, step 1
User Information List
#5 · userinfolist
- Format
- string
- Access
- Value
- —
Number of offline messages
#6 · offline-msg-cnt
- Format
- uint8
- Access
- Value
- 0 ~ 255, step 1
SN
#7 · sn
- Format
- string
- Access
- Value
- —
Mac
#8 · mac
- Format
- string
- Access
- Value
- —
firmwareversion
#9 · firmwareversion
- Format
- string
- Access
- Value
- —
battery
#10 · battery
- Format
- uint8
- Access
- Value
- 0Battery-enough1Battery-low2Battery-empty
Actions
sync
#1 · sync
Input
#1Plugin Version Capability Collectionuint16#2Weighing unituint8#4Unix timestamp (device runtime timestamp)uint32#3Heart rate switchbool#5User Information Liststring
Output
#6Number of offline messagesuint8#7SNstring#8Macstring#9firmwareversionstring#10batteryuint8
Events
sync-event
#1 · sync-event
Arguments
#6Number of offline messagesuint8#7SNstring#8Macstring#9firmwareversionstring#10batteryuint8
Cancel sharing#14 · share-cancel1 properties1 actions
Cancel sharing
#14 · share-cancel
Properties
Share user list
#1 · share-user-list
- Format
- string
- Access
- Value
- —
Actions
Delete by Shared User List
#1 · del-share-users
Input
#1Share user liststring