From 9efb835c04678ef63df2f8a7063f7ed880957897 Mon Sep 17 00:00:00 2001 From: Alexander Buhr Date: Fri, 14 Apr 2023 10:22:57 +0200 Subject: [PATCH] Added Sensor for actual Weight to WashingMachine --- custom_components/hon/sensor.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/custom_components/hon/sensor.py b/custom_components/hon/sensor.py index dfae684..1ddd440 100644 --- a/custom_components/hon/sensor.py +++ b/custom_components/hon/sensor.py @@ -64,8 +64,8 @@ SENSORS: dict[str, tuple[SensorEntityDescription, ...]] = { icon="mdi:water", ), SensorEntityDescription( - key="startProgram.weight", - name="Suggested weight", + key="actualWeight", + name="Actual weight", state_class=SensorStateClass.MEASUREMENT, entity_category=EntityCategory.CONFIG, native_unit_of_measurement=UnitOfMass.KILOGRAMS, @@ -94,6 +94,14 @@ SENSORS: dict[str, tuple[SensorEntityDescription, ...]] = { state_class=SensorStateClass.MEASUREMENT, native_unit_of_measurement=UnitOfTime.MINUTES, ), + SensorEntityDescription( + key="startProgram.weight", + name="Suggested weight", + state_class=SensorStateClass.MEASUREMENT, + entity_category=EntityCategory.CONFIG, + native_unit_of_measurement=UnitOfMass.KILOGRAMS, + icon="mdi:weight-kilogram", + ), ), "TD": ( SensorEntityDescription(