mirror of
https://github.com/home-assistant/core.git
synced 2026-04-27 05:16:51 +00:00
Add sensor for DHW storage temperature in ViCare integration (#151128)
This commit is contained in:
committed by
GitHub
parent
75d792207a
commit
0928e9a6ee
@@ -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",
|
||||
|
||||
@@ -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"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user