Add sensor for DHW storage temperature in ViCare integration (#151128)

pull/151613/head
Christopher Fenner 2025-09-02 13:24:42 +02:00 committed by GitHub
parent 75d792207a
commit 0928e9a6ee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 12 additions and 0 deletions

View File

@ -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",

View File

@ -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"
},