[xiaomi_ble] Support Body Composition Scale S400 (#142705)

This commit is contained in:
zry98 2025-04-13 22:41:43 +02:00 committed by GitHub
parent 18c814d3dc
commit 8ab59bee47
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -177,6 +177,25 @@ SENSOR_DESCRIPTIONS = {
native_unit_of_measurement=UnitOfTime.MINUTES, native_unit_of_measurement=UnitOfTime.MINUTES,
state_class=SensorStateClass.MEASUREMENT, state_class=SensorStateClass.MEASUREMENT,
), ),
# Low frequency impedance sensor (ohm)
(ExtendedSensorDeviceClass.IMPEDANCE_LOW, Units.OHM): SensorEntityDescription(
key=str(ExtendedSensorDeviceClass.IMPEDANCE_LOW),
native_unit_of_measurement=Units.OHM,
state_class=SensorStateClass.MEASUREMENT,
icon="mdi:omega",
),
# Heart rate sensor (bpm)
(ExtendedSensorDeviceClass.HEART_RATE, "bpm"): SensorEntityDescription(
key=str(ExtendedSensorDeviceClass.HEART_RATE),
native_unit_of_measurement="bpm",
state_class=SensorStateClass.MEASUREMENT,
icon="mdi:heart-pulse",
),
# User profile ID sensor
(ExtendedSensorDeviceClass.PROFILE_ID, None): SensorEntityDescription(
key=str(ExtendedSensorDeviceClass.PROFILE_ID),
icon="mdi:identifier",
),
} }