Add sensor for DHW storage temperature in ViCare integration (#151128)
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"
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue