mirror of
https://github.com/home-assistant/core.git
synced 2025-08-13 17:45:19 +02:00
add fuel cell gas consumption sensors
This commit is contained in:
@@ -207,6 +207,34 @@ GLOBAL_SENSORS: tuple[ViCareSensorEntityDescription, ...] = (
|
|||||||
unit_getter=lambda api: api.getGasConsumptionHeatingUnit(),
|
unit_getter=lambda api: api.getGasConsumptionHeatingUnit(),
|
||||||
state_class=SensorStateClass.TOTAL_INCREASING,
|
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||||
),
|
),
|
||||||
|
ViCareSensorEntityDescription(
|
||||||
|
key="gas_consumption_fuelcell_today",
|
||||||
|
translation_key="gas_consumption_fuelcell_today",
|
||||||
|
value_getter=lambda api: api.getFuelCellGasConsumptionToday(),
|
||||||
|
unit_getter=lambda api: api.getFuelCellGasConsumptionUnit(),
|
||||||
|
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||||
|
),
|
||||||
|
ViCareSensorEntityDescription(
|
||||||
|
key="gas_consumption_fuelcell_this_week",
|
||||||
|
translation_key="gas_consumption_fuelcell_this_week",
|
||||||
|
value_getter=lambda api: api.getFuelCellGasConsumptionThisWeek(),
|
||||||
|
unit_getter=lambda api: api.getFuelCellGasConsumptionUnit(),
|
||||||
|
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||||
|
),
|
||||||
|
ViCareSensorEntityDescription(
|
||||||
|
key="gas_consumption_fuelcell_this_month",
|
||||||
|
translation_key="gas_consumption_fuelcell_this_month",
|
||||||
|
value_getter=lambda api: api.getFuelCellGasConsumptionThisMonth(),
|
||||||
|
unit_getter=lambda api: api.getFuelCellGasConsumptionUnit(),
|
||||||
|
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||||
|
),
|
||||||
|
ViCareSensorEntityDescription(
|
||||||
|
key="gas_consumption_fuelcell_this_year",
|
||||||
|
translation_key="gas_consumption_fuelcell_this_year",
|
||||||
|
value_getter=lambda api: api.getFuelCellGasConsumptionThisYear(),
|
||||||
|
unit_getter=lambda api: api.getFuelCellGasConsumptionUnit(),
|
||||||
|
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||||
|
),
|
||||||
ViCareSensorEntityDescription(
|
ViCareSensorEntityDescription(
|
||||||
key="gas_summary_consumption_heating_currentday",
|
key="gas_summary_consumption_heating_currentday",
|
||||||
translation_key="gas_summary_consumption_heating_currentday",
|
translation_key="gas_summary_consumption_heating_currentday",
|
||||||
|
Reference in New Issue
Block a user