mirror of
https://github.com/home-assistant/core.git
synced 2025-04-26 10:17:51 +00:00
Add hotwater storage sensors to ViCare integration (#126570)
add sensors for hotwater storage
This commit is contained in:
parent
74931071de
commit
636cba5d6b
@ -177,6 +177,30 @@ GLOBAL_SENSORS: tuple[ViCareSensorEntityDescription, ...] = (
|
|||||||
state_class=SensorStateClass.MEASUREMENT,
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
entity_registry_enabled_default=False,
|
entity_registry_enabled_default=False,
|
||||||
),
|
),
|
||||||
|
ViCareSensorEntityDescription(
|
||||||
|
key="dhw_storage_temperature",
|
||||||
|
translation_key="dhw_storage_temperature",
|
||||||
|
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
|
||||||
|
value_getter=lambda api: api.getDomesticHotWaterStorageTemperature(),
|
||||||
|
device_class=SensorDeviceClass.TEMPERATURE,
|
||||||
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
|
),
|
||||||
|
ViCareSensorEntityDescription(
|
||||||
|
key="dhw_storage_top_temperature",
|
||||||
|
translation_key="dhw_storage_top_temperature",
|
||||||
|
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
|
||||||
|
value_getter=lambda api: api.getHotWaterStorageTemperatureTop(),
|
||||||
|
device_class=SensorDeviceClass.TEMPERATURE,
|
||||||
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
|
),
|
||||||
|
ViCareSensorEntityDescription(
|
||||||
|
key="dhw_storage_bottom_temperature",
|
||||||
|
translation_key="dhw_storage_bottom_temperature",
|
||||||
|
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
|
||||||
|
value_getter=lambda api: api.getHotWaterStorageTemperatureBottom(),
|
||||||
|
device_class=SensorDeviceClass.TEMPERATURE,
|
||||||
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
|
),
|
||||||
ViCareSensorEntityDescription(
|
ViCareSensorEntityDescription(
|
||||||
key="hotwater_gas_consumption_today",
|
key="hotwater_gas_consumption_today",
|
||||||
translation_key="hotwater_gas_consumption_today",
|
translation_key="hotwater_gas_consumption_today",
|
||||||
|
@ -152,6 +152,15 @@
|
|||||||
"hotwater_min_temperature": {
|
"hotwater_min_temperature": {
|
||||||
"name": "DHW min temperature"
|
"name": "DHW min temperature"
|
||||||
},
|
},
|
||||||
|
"dhw_storage_temperature": {
|
||||||
|
"name": "DHW storage temperature"
|
||||||
|
},
|
||||||
|
"dhw_storage_top_temperature": {
|
||||||
|
"name": "DHW storage top temperature"
|
||||||
|
},
|
||||||
|
"dhw_storage_bottom_temperature": {
|
||||||
|
"name": "DHW storage bottom temperature"
|
||||||
|
},
|
||||||
"hotwater_gas_consumption_today": {
|
"hotwater_gas_consumption_today": {
|
||||||
"name": "DHW gas consumption today"
|
"name": "DHW gas consumption today"
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user