You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/components/sensor/xiaomi_miscale.md
+106Lines changed: 106 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,9 +29,44 @@ sensor:
29
29
name: "Xiaomi Mi Scale Impedance"
30
30
```
31
31
32
+
### MJTZC01YM
33
+
34
+
Xiaomi Body Composition Scale S400 can also measure impedance with 50kHz low frequency and heart rate. It must be first added in the Mijia (Xiaomi Home) app to start sending out advertisement packets containing metrics data, and to display the body fat percentage and heart rate on the scale's screen. It also supports multi-profile if configured in the app.
35
+
36
+
Since the messages are encrypted, you must provide a bindkey to be able to decrypt them, please see [Other encrypted devices](/components/sensor/xiaomi_ble#other-encrypted-devices).
- **mac_address** (**Required**, MAC Address): The MAC address of the scale.
69
+
- **bindkey** (*Optional*, string, 32 characters, case insensitive): The key to decrypt the BLE advertisements messages. **Only required for S400**.
35
70
- **weight** (*Optional*): The information for the weight sensor.
36
71
37
72
- All options from [Sensor](/components/sensor).
@@ -40,10 +75,28 @@ sensor:
40
75
41
76
- All options from [Sensor](/components/sensor).
42
77
78
+
- **impedance_low** (*Optional*): The information for the low frequency impedance sensor. **Only available on S400**
79
+
80
+
- All options from :ref:`Sensor <config-sensor>`.
81
+
43
82
- **clear_impedance** (*Optional*): Clear the impedance information if a weight reading without impedance is received. Defaults to `false`. **Only available on MiScale2**
44
83
45
84
Useful in the example below if a person steps onto the scale without waiting for the complete measurement. Without setting the flag the impedance reading of the measurement before will be used for the currently measured person.
46
85
86
+
- **heart_rate** (*Optional*): The information for the heart rate sensor. **Only available on S400**
87
+
88
+
- All options from :ref:`Sensor <config-sensor>`.
89
+
90
+
- **timestamp** (*Optional*): The information for the timestamp sensor, not recommended to use as the built-in RTC drifts quickly without constant syncing with the app. **Only available on S400**
91
+
92
+
- All options from :ref:`Sensor <config-sensor>`.
93
+
94
+
- **profile_id** (*Optional*): The information for the profile ID sensor. **Only available on S400**
95
+
96
+
- All options from :ref:`Sensor <config-sensor>`.
97
+
98
+
- **allowed_profile_ids** (*Optional*, list of uint8): A list of profile ID to be allowed to publish metric states. Any ID (``any``) will be allowed if this parameter is omitted. **Only available on S400**
99
+
47
100
### Configuration example with multiple users
48
101
49
102
You have to replace the numbers in the lambdas to determine your weight which is between X weight and X weight.
@@ -100,6 +153,59 @@ sensor:
100
153
accuracy_decimals: 0
101
154
```
102
155
156
+
For S400, if you have configured multiple profiles in the Mijia (Xiaomi Home) app:
0 commit comments