Add miele core temp sensors (#143785)

Add core temp sensors
This commit is contained in:
Åke Strandberg 2025-04-28 18:47:42 +02:00 committed by GitHub
parent 20df183470
commit 3f82120cdc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 54 additions and 0 deletions

View File

@ -25,6 +25,14 @@
"default": "mdi:pause" "default": "mdi:pause"
} }
}, },
"sensor": {
"core_temperature": {
"default": "mdi:thermometer-probe"
},
"core_target_temperature": {
"default": "mdi:thermometer-probe"
}
},
"switch": { "switch": {
"power": { "power": {
"default": "mdi:power" "default": "mdi:power"

View File

@ -113,6 +113,46 @@ SENSOR_TYPES: Final[tuple[MieleSensorDefinition, ...]] = (
/ 100.0, / 100.0,
), ),
), ),
MieleSensorDefinition(
types=(
MieleAppliance.OVEN,
MieleAppliance.OVEN_MICROWAVE,
MieleAppliance.STEAM_OVEN_COMBI,
),
description=MieleSensorDescription(
key="state_core_temperature",
translation_key="core_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_core_temperature[0].temperature)
/ 100.0
),
),
),
MieleSensorDefinition(
types=(
MieleAppliance.OVEN,
MieleAppliance.OVEN_MICROWAVE,
MieleAppliance.STEAM_OVEN_COMBI,
),
description=MieleSensorDescription(
key="state_core_target_temperature",
translation_key="core_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_core_target_temperature[0].temperature
)
/ 100.0
),
),
),
) )

View File

@ -190,6 +190,12 @@
"superheating": "Superheating", "superheating": "Superheating",
"waiting_to_start": "Waiting to start" "waiting_to_start": "Waiting to start"
} }
},
"core_temperature": {
"name": "Core temperature"
},
"core_target_temperature": {
"name": "Core target temperature"
} }
}, },
"switch": { "switch": {