From 0928e9a6ee660d13bcb52824c451a11510aa5448 Mon Sep 17 00:00:00 2001 From: Christopher Fenner <9592452+CFenner@users.noreply.github.com> Date: Tue, 2 Sep 2025 13:24:42 +0200 Subject: [PATCH] Add sensor for DHW storage temperature in ViCare integration (#151128) --- homeassistant/components/vicare/sensor.py | 9 +++++++++ homeassistant/components/vicare/strings.json | 3 +++ 2 files changed, 12 insertions(+) diff --git a/homeassistant/components/vicare/sensor.py b/homeassistant/components/vicare/sensor.py index cddc5ca021a..fc26c489cd3 100644 --- a/homeassistant/components/vicare/sensor.py +++ b/homeassistant/components/vicare/sensor.py @@ -193,6 +193,15 @@ GLOBAL_SENSORS: tuple[ViCareSensorEntityDescription, ...] = ( device_class=SensorDeviceClass.TEMPERATURE, state_class=SensorStateClass.MEASUREMENT, ), + ViCareSensorEntityDescription( + key="dhw_storage_middle_temperature", + translation_key="dhw_storage_middle_temperature", + native_unit_of_measurement=UnitOfTemperature.CELSIUS, + value_getter=lambda api: api.getDomesticHotWaterStorageTemperatureMiddle(), + device_class=SensorDeviceClass.TEMPERATURE, + state_class=SensorStateClass.MEASUREMENT, + entity_registry_enabled_default=False, + ), ViCareSensorEntityDescription( key="dhw_storage_bottom_temperature", translation_key="dhw_storage_bottom_temperature", diff --git a/homeassistant/components/vicare/strings.json b/homeassistant/components/vicare/strings.json index dd8d93e609a..3135dd7acc3 100644 --- a/homeassistant/components/vicare/strings.json +++ b/homeassistant/components/vicare/strings.json @@ -182,6 +182,9 @@ "dhw_storage_top_temperature": { "name": "DHW storage top temperature" }, + "dhw_storage_middle_temperature": { + "name": "DHW storage middle temperature" + }, "dhw_storage_bottom_temperature": { "name": "DHW storage bottom temperature" },