Categorize burner and compressor sensors as diagnostic entities in ViCare integration (#110653)

Categorize Burner and Compressor start and runtime counters as diagnostic entities in ViCare integration
This commit is contained in:
Christopher Fenner 2024-02-15 17:29:17 +01:00 committed by GitHub
parent 3526fd66df
commit 1372cf5a18
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -600,6 +600,7 @@ BURNER_SENSORS: tuple[ViCareSensorEntityDescription, ...] = (
translation_key="burner_starts",
icon="mdi:counter",
value_getter=lambda api: api.getStarts(),
entity_category=EntityCategory.DIAGNOSTIC,
state_class=SensorStateClass.TOTAL_INCREASING,
),
ViCareSensorEntityDescription(
@ -608,6 +609,7 @@ BURNER_SENSORS: tuple[ViCareSensorEntityDescription, ...] = (
icon="mdi:counter",
native_unit_of_measurement=UnitOfTime.HOURS,
value_getter=lambda api: api.getHours(),
entity_category=EntityCategory.DIAGNOSTIC,
state_class=SensorStateClass.TOTAL_INCREASING,
),
ViCareSensorEntityDescription(
@ -626,6 +628,7 @@ COMPRESSOR_SENSORS: tuple[ViCareSensorEntityDescription, ...] = (
translation_key="compressor_starts",
icon="mdi:counter",
value_getter=lambda api: api.getStarts(),
entity_category=EntityCategory.DIAGNOSTIC,
state_class=SensorStateClass.TOTAL_INCREASING,
),
ViCareSensorEntityDescription(
@ -634,6 +637,7 @@ COMPRESSOR_SENSORS: tuple[ViCareSensorEntityDescription, ...] = (
icon="mdi:counter",
native_unit_of_measurement=UnitOfTime.HOURS,
value_getter=lambda api: api.getHours(),
entity_category=EntityCategory.DIAGNOSTIC,
state_class=SensorStateClass.TOTAL_INCREASING,
),
ViCareSensorEntityDescription(
@ -642,6 +646,7 @@ COMPRESSOR_SENSORS: tuple[ViCareSensorEntityDescription, ...] = (
icon="mdi:counter",
native_unit_of_measurement=UnitOfTime.HOURS,
value_getter=lambda api: api.getHoursLoadClass1(),
entity_category=EntityCategory.DIAGNOSTIC,
state_class=SensorStateClass.TOTAL_INCREASING,
entity_registry_enabled_default=False,
),
@ -651,6 +656,7 @@ COMPRESSOR_SENSORS: tuple[ViCareSensorEntityDescription, ...] = (
icon="mdi:counter",
native_unit_of_measurement=UnitOfTime.HOURS,
value_getter=lambda api: api.getHoursLoadClass2(),
entity_category=EntityCategory.DIAGNOSTIC,
state_class=SensorStateClass.TOTAL_INCREASING,
entity_registry_enabled_default=False,
),
@ -660,6 +666,7 @@ COMPRESSOR_SENSORS: tuple[ViCareSensorEntityDescription, ...] = (
icon="mdi:counter",
native_unit_of_measurement=UnitOfTime.HOURS,
value_getter=lambda api: api.getHoursLoadClass3(),
entity_category=EntityCategory.DIAGNOSTIC,
state_class=SensorStateClass.TOTAL_INCREASING,
entity_registry_enabled_default=False,
),
@ -669,6 +676,7 @@ COMPRESSOR_SENSORS: tuple[ViCareSensorEntityDescription, ...] = (
icon="mdi:counter",
native_unit_of_measurement=UnitOfTime.HOURS,
value_getter=lambda api: api.getHoursLoadClass4(),
entity_category=EntityCategory.DIAGNOSTIC,
state_class=SensorStateClass.TOTAL_INCREASING,
entity_registry_enabled_default=False,
),
@ -678,6 +686,7 @@ COMPRESSOR_SENSORS: tuple[ViCareSensorEntityDescription, ...] = (
icon="mdi:counter",
native_unit_of_measurement=UnitOfTime.HOURS,
value_getter=lambda api: api.getHoursLoadClass5(),
entity_category=EntityCategory.DIAGNOSTIC,
state_class=SensorStateClass.TOTAL_INCREASING,
entity_registry_enabled_default=False,
),