Describe the Bug / 描述问题
I'm using a set of Xiaomi S400 scales that connect to a Xiaomi Smart Home Hub 2. Both devices were setup using the Android Xiaomi Home app and work correctly. The weight and body fat percentage (BFP) measurements for a user are correctly recorded in the app each time they use the scales.
I then installed the ha_xiaomi_home integration to access the S400 scales data for a home automation project. The integration successfully identified the hub and scales. The sensor and controls data for the hub is correct. However, no sensor values appear for the scales and all Notifiers and Events are shown as Unknown (see screenshot 1) except for a customised service event.
I have noticed that each time the scales are used, two Customized Event-1 events are triggered in Home Assistant. Each event includes three customised arguments (see screenshots 2 and 3):
Customized argument 5: This appears to identify the user using the scales.
Customised argument 3: This appears to be a Unix timestamp when the weighing occurred.
Customised argument 4: I'm guessing this may be the weight or BFP value of the user? However, I can't work out how the value has been encoded.
I'm assuming I should be able to access the data collected by the S400 scales in Home Assistant as sensor values? As a workaround, if the value of Customised argument 4 in each weighing event is a user's weight or BFP value, I can probably process this data and generate sensor values using a Home Assistant automation. Can anybody confirm what this event argument actually represents and how it is encoded?



How to Reproduce / 复现步骤
Setup S400 scales and Hub 2 using Xaomi Home phone app.
Create Xiaomi cloud account using phone app.
Install ha_xiaomi_home integration
Generate measurements using scales.
Expected Behavior / 预期结果
Each user's weight, body fat % (and possibly heart rate) should appear as sensor values.
Reproduce Time / 问题复现的时间点
2026-01-22 11:00:00
Home Assistant Logs / 系统日志
Thefollowing log entries are written to HA syslog by an automation triggered when the following event occurs: event.yunmai_de_blt_4_1nqh4nfc1gc00_ms104_customized_event_1_e_11_1022
Scales event data: {'id': '0', 'idx': '0', 'alias': None, 'platform': 'state', 'entity_id': 'event.yunmai_de_blt_4_1nqh4nfc1gc00_ms104_customized_event_1_e_11_1022',
'from_state': <state event.yunmai_de_blt_4_1nqh4nfc1gc00_ms104_customized_event_1_e_11_1022=2026-01-24T08:47:26.923+00:00; event_types=['Customized Event-1'], event_type=Customized Event-1, Customized Argument 5=4, Customized Argument 4=1435238400, Customized Argument 3=1769244449, friendly_name=Xiaomi Scale S400 Customized Service For Ble Customized Event-1 @ 2026-01-24T12:01:51.167942+00:00>,
'to_state': <state event.yunmai_de_blt_4_1nqh4nfc1gc00_ms104_customized_event_1_e_11_1022=2026-01-25T07:49:34.709+00:00; event_types=['Customized Event-1'], event_type=Customized Event-1, Customized Argument 5=3, Customized Argument 4=1209035391, Customized Argument 3=1769327375, friendly_name=Xiaomi Scale S400 Customized Service For Ble Customized Event-1 @ 2026-01-25T07:49:34.709880+00:00>,
'for': None, 'attribute': None, 'description': 'state of event.yunmai_de_blt_4_1nqh4nfc1gc00_ms104_customized_event_1_e_11_1022'}
Scales event data: {'id': '0', 'idx': '0', 'alias': None, 'platform': 'state', 'entity_id': 'event.yunmai_de_blt_4_1nqh4nfc1gc00_ms104_customized_event_1_e_11_1022',
'from_state': <state event.yunmai_de_blt_4_1nqh4nfc1gc00_ms104_customized_event_1_e_11_1022=2026-01-25T07:49:34.709+00:00; event_types=['Customized Event-1'], event_type=Customized Event-1, Customized Argument 5=3, Customized Argument 4=1209035391, Customized Argument 3=1769327375, friendly_name=Xiaomi Scale S400 Customized Service For Ble Customized Event-1 @ 2026-01-25T07:49:34.709880+00:00>,
'to_state': <state event.yunmai_de_blt_4_1nqh4nfc1gc00_ms104_customized_event_1_e_11_1022=2026-01-25T07:49:35.737+00:00; event_types=['Customized Event-1'], event_type=Customized Event-1, Customized Argument 5=3, Customized Argument 4=1096024064, Customized Argument 3=1769327375, friendly_name=Xiaomi Scale S400 Customized Service For Ble Customized Event-1 @ 2026-01-25T07:49:35.738104+00:00>,
'for': None, 'attribute': None, 'description': 'state of event.yunmai_de_blt_4_1nqh4nfc1gc00_ms104_customized_event_1_e_11_1022'}
Log Timezone / 日志时区
Europe/UK (GMT)
Home Assistant Core Version / Home Assistant Core 版本
2026.1.3
Home Assistant Operation System Version / Home Assistant Operation System 版本
17.0
Xiaomi Home Integration Version / 米家集成版本
0.4.7
Additional Context / 其他说明
No response
Describe the Bug / 描述问题
I'm using a set of Xiaomi S400 scales that connect to a Xiaomi Smart Home Hub 2. Both devices were setup using the Android Xiaomi Home app and work correctly. The weight and body fat percentage (BFP) measurements for a user are correctly recorded in the app each time they use the scales.
I then installed the ha_xiaomi_home integration to access the S400 scales data for a home automation project. The integration successfully identified the hub and scales. The sensor and controls data for the hub is correct. However, no sensor values appear for the scales and all Notifiers and Events are shown as Unknown (see screenshot 1) except for a customised service event.
I have noticed that each time the scales are used, two Customized Event-1 events are triggered in Home Assistant. Each event includes three customised arguments (see screenshots 2 and 3):
Customized argument 5: This appears to identify the user using the scales.
Customised argument 3: This appears to be a Unix timestamp when the weighing occurred.
Customised argument 4: I'm guessing this may be the weight or BFP value of the user? However, I can't work out how the value has been encoded.
I'm assuming I should be able to access the data collected by the S400 scales in Home Assistant as sensor values? As a workaround, if the value of Customised argument 4 in each weighing event is a user's weight or BFP value, I can probably process this data and generate sensor values using a Home Assistant automation. Can anybody confirm what this event argument actually represents and how it is encoded?
How to Reproduce / 复现步骤
Setup S400 scales and Hub 2 using Xaomi Home phone app.
Create Xiaomi cloud account using phone app.
Install ha_xiaomi_home integration
Generate measurements using scales.
Expected Behavior / 预期结果
Each user's weight, body fat % (and possibly heart rate) should appear as sensor values.
Reproduce Time / 问题复现的时间点
2026-01-22 11:00:00
Home Assistant Logs / 系统日志
Thefollowing log entries are written to HA syslog by an automation triggered when the following event occurs: event.yunmai_de_blt_4_1nqh4nfc1gc00_ms104_customized_event_1_e_11_1022
Scales event data: {'id': '0', 'idx': '0', 'alias': None, 'platform': 'state', 'entity_id': 'event.yunmai_de_blt_4_1nqh4nfc1gc00_ms104_customized_event_1_e_11_1022',
'from_state': <state event.yunmai_de_blt_4_1nqh4nfc1gc00_ms104_customized_event_1_e_11_1022=2026-01-24T08:47:26.923+00:00; event_types=['Customized Event-1'], event_type=Customized Event-1, Customized Argument 5=4, Customized Argument 4=1435238400, Customized Argument 3=1769244449, friendly_name=Xiaomi Scale S400 Customized Service For Ble Customized Event-1 @ 2026-01-24T12:01:51.167942+00:00>,
'to_state': <state event.yunmai_de_blt_4_1nqh4nfc1gc00_ms104_customized_event_1_e_11_1022=2026-01-25T07:49:34.709+00:00; event_types=['Customized Event-1'], event_type=Customized Event-1, Customized Argument 5=3, Customized Argument 4=1209035391, Customized Argument 3=1769327375, friendly_name=Xiaomi Scale S400 Customized Service For Ble Customized Event-1 @ 2026-01-25T07:49:34.709880+00:00>,
'for': None, 'attribute': None, 'description': 'state of event.yunmai_de_blt_4_1nqh4nfc1gc00_ms104_customized_event_1_e_11_1022'}
Scales event data: {'id': '0', 'idx': '0', 'alias': None, 'platform': 'state', 'entity_id': 'event.yunmai_de_blt_4_1nqh4nfc1gc00_ms104_customized_event_1_e_11_1022',
'from_state': <state event.yunmai_de_blt_4_1nqh4nfc1gc00_ms104_customized_event_1_e_11_1022=2026-01-25T07:49:34.709+00:00; event_types=['Customized Event-1'], event_type=Customized Event-1, Customized Argument 5=3, Customized Argument 4=1209035391, Customized Argument 3=1769327375, friendly_name=Xiaomi Scale S400 Customized Service For Ble Customized Event-1 @ 2026-01-25T07:49:34.709880+00:00>,
'to_state': <state event.yunmai_de_blt_4_1nqh4nfc1gc00_ms104_customized_event_1_e_11_1022=2026-01-25T07:49:35.737+00:00; event_types=['Customized Event-1'], event_type=Customized Event-1, Customized Argument 5=3, Customized Argument 4=1096024064, Customized Argument 3=1769327375, friendly_name=Xiaomi Scale S400 Customized Service For Ble Customized Event-1 @ 2026-01-25T07:49:35.738104+00:00>,
'for': None, 'attribute': None, 'description': 'state of event.yunmai_de_blt_4_1nqh4nfc1gc00_ms104_customized_event_1_e_11_1022'}
Log Timezone / 日志时区
Europe/UK (GMT)
Home Assistant Core Version / Home Assistant Core 版本
2026.1.3
Home Assistant Operation System Version / Home Assistant Operation System 版本
17.0
Xiaomi Home Integration Version / 米家集成版本
0.4.7
Additional Context / 其他说明
No response