Add target temp sensor to Miele washing machines (#144507)

This commit is contained in:
Åke Strandberg 2025-05-12 09:42:27 +02:00 committed by GitHub
parent 5276a3688e
commit 646c230940
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 30 additions and 0 deletions

View File

@ -32,6 +32,9 @@
"core_target_temperature": {
"default": "mdi:thermometer-probe"
},
"target_temperature": {
"default": "mdi:thermometer-check"
},
"drying_step": {
"default": "mdi:water-outline"
},

View File

@ -382,6 +382,7 @@ SENSOR_TYPES: Final[tuple[MieleSensorDefinition, ...]] = (
MieleAppliance.OVEN,
MieleAppliance.OVEN_MICROWAVE,
MieleAppliance.STEAM_OVEN_COMBI,
MieleAppliance.STEAM_OVEN_MK2,
),
description=MieleSensorDescription(
key="state_core_target_temperature",
@ -398,6 +399,29 @@ SENSOR_TYPES: Final[tuple[MieleSensorDefinition, ...]] = (
),
),
),
MieleSensorDefinition(
types=(
MieleAppliance.WASHING_MACHINE,
MieleAppliance.WASHER_DRYER,
MieleAppliance.OVEN,
MieleAppliance.OVEN_MICROWAVE,
MieleAppliance.STEAM_OVEN_MICRO,
MieleAppliance.STEAM_OVEN_COMBI,
MieleAppliance.STEAM_OVEN_MK2,
),
description=MieleSensorDescription(
key="state_target_temperature",
translation_key="target_temperature",
zone=1,
device_class=SensorDeviceClass.TEMPERATURE,
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
state_class=SensorStateClass.MEASUREMENT,
value_fn=(
lambda value: cast(int, value.state_target_temperature[0].temperature)
/ 100.0
),
),
),
MieleSensorDefinition(
types=(
MieleAppliance.OVEN,

View File

@ -876,6 +876,9 @@
"core_temperature": {
"name": "Core temperature"
},
"target_temperature": {
"name": "Target temperature"
},
"core_target_temperature": {
"name": "Core target temperature"
}