mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 04:07:08 +00:00
Add energy consumption sensors for cooling in ViCare integration (#127274)
This commit is contained in:
parent
53da418d68
commit
fa7be597d2
@ -430,6 +430,32 @@ GLOBAL_SENSORS: tuple[ViCareSensorEntityDescription, ...] = (
|
||||
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||
entity_registry_enabled_default=False,
|
||||
),
|
||||
ViCareSensorEntityDescription(
|
||||
key="energy_consumption_cooling_today",
|
||||
translation_key="energy_consumption_cooling_today",
|
||||
native_unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR,
|
||||
value_getter=lambda api: api.getPowerConsumptionCoolingToday(),
|
||||
unit_getter=lambda api: api.getPowerConsumptionCoolingUnit(),
|
||||
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||
),
|
||||
ViCareSensorEntityDescription(
|
||||
key="energy_consumption_cooling_this_month",
|
||||
translation_key="energy_consumption_cooling_this_month",
|
||||
native_unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR,
|
||||
value_getter=lambda api: api.getPowerConsumptionCoolingThisMonth(),
|
||||
unit_getter=lambda api: api.getPowerConsumptionCoolingUnit(),
|
||||
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||
entity_registry_enabled_default=False,
|
||||
),
|
||||
ViCareSensorEntityDescription(
|
||||
key="energy_consumption_cooling_this_year",
|
||||
translation_key="energy_consumption_cooling_this_year",
|
||||
native_unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR,
|
||||
value_getter=lambda api: api.getPowerConsumptionCoolingThisYear(),
|
||||
unit_getter=lambda api: api.getPowerConsumptionCoolingUnit(),
|
||||
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||
entity_registry_enabled_default=False,
|
||||
),
|
||||
ViCareSensorEntityDescription(
|
||||
key="energy_dhw_summary_consumption_heating_currentday",
|
||||
translation_key="energy_dhw_summary_consumption_heating_currentday",
|
||||
|
@ -245,6 +245,15 @@
|
||||
"energy_summary_consumption_heating_lastsevendays": {
|
||||
"name": "Heating electricity consumption last seven days"
|
||||
},
|
||||
"energy_consumption_cooling_today": {
|
||||
"name": "Cooling electricity consumption today"
|
||||
},
|
||||
"energy_consumption_cooling_this_month": {
|
||||
"name": "Cooling electricity consumption this month"
|
||||
},
|
||||
"energy_consumption_cooling_this_year": {
|
||||
"name": "Cooling electricity consumption this year"
|
||||
},
|
||||
"energy_dhw_summary_consumption_heating_currentday": {
|
||||
"name": "DHW electricity consumption today"
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user