Please replace FF:FF:FF:FF:FF:FF as well as ffffffffffff with your devices mac.
{
"type": "MiBodyScaleDevice",
"friendlyName": "Mi Body Scale",
"mac": "FF:FF:FF:FF:FF:FF",
"userSex": "M",
"userHeight": 180,
"userBirthday": "1990-01-01T00:00:00.000Z"
}
userSex may be either M or F
userHeight is the height in centimeters
userBirthday will be used for age calculation
The device will attempt to autoconfigure Home Assistant for state information + attributes on
homeassistant/sensor/body_scale_ffffffffffff/config.
cybele/body_scale/ffffffffffff/state provides the weight
cybele/body_scale/ffffffffffff/attributes provides the current attributes.
{
"impedance": 600,
"lbm": "60.00",
"bmi": "20.00",
"fat_pct": "20.00",
"water_pct": "50.00",
"bone_mass_kg": "3.00",
"muscle_mass_kg": "50.00",
"visceral_fat_mass_kg": "5.00",
"bmr_kcal": "1800.00",
"fat": "Normal",
"water": "Normal",
"bone_mass": "Normal",
"muscle_mass": "Normal",
"visceral_fat": "Normal",
"bmi_class": "Normal",
"body_type": "balanced"
}
Take a look at BodyMetrics.js to find out what these mean.
It might make sense to make the BodyMetrics parameters configurable over MQTT instead of hard-coding them in the configuration.
