mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Update device class, icons and names of Vicare binary sensors (#101476)
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
This commit is contained in:
parent
eaf6197d43
commit
b8904fa173
@ -38,14 +38,15 @@ class ViCareBinarySensorEntityDescription(
|
|||||||
CIRCUIT_SENSORS: tuple[ViCareBinarySensorEntityDescription, ...] = (
|
CIRCUIT_SENSORS: tuple[ViCareBinarySensorEntityDescription, ...] = (
|
||||||
ViCareBinarySensorEntityDescription(
|
ViCareBinarySensorEntityDescription(
|
||||||
key="circulationpump_active",
|
key="circulationpump_active",
|
||||||
name="Circulation pump active",
|
name="Circulation pump",
|
||||||
device_class=BinarySensorDeviceClass.POWER,
|
icon="mdi:pump",
|
||||||
|
device_class=BinarySensorDeviceClass.RUNNING,
|
||||||
value_getter=lambda api: api.getCirculationPumpActive(),
|
value_getter=lambda api: api.getCirculationPumpActive(),
|
||||||
),
|
),
|
||||||
ViCareBinarySensorEntityDescription(
|
ViCareBinarySensorEntityDescription(
|
||||||
key="frost_protection_active",
|
key="frost_protection_active",
|
||||||
name="Frost protection active",
|
name="Frost protection",
|
||||||
device_class=BinarySensorDeviceClass.POWER,
|
icon="mdi:snowflake",
|
||||||
value_getter=lambda api: api.getFrostProtectionActive(),
|
value_getter=lambda api: api.getFrostProtectionActive(),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
@ -53,8 +54,9 @@ CIRCUIT_SENSORS: tuple[ViCareBinarySensorEntityDescription, ...] = (
|
|||||||
BURNER_SENSORS: tuple[ViCareBinarySensorEntityDescription, ...] = (
|
BURNER_SENSORS: tuple[ViCareBinarySensorEntityDescription, ...] = (
|
||||||
ViCareBinarySensorEntityDescription(
|
ViCareBinarySensorEntityDescription(
|
||||||
key="burner_active",
|
key="burner_active",
|
||||||
name="Burner active",
|
name="Burner",
|
||||||
device_class=BinarySensorDeviceClass.POWER,
|
icon="mdi:gas-burner",
|
||||||
|
device_class=BinarySensorDeviceClass.RUNNING,
|
||||||
value_getter=lambda api: api.getActive(),
|
value_getter=lambda api: api.getActive(),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
@ -62,8 +64,8 @@ BURNER_SENSORS: tuple[ViCareBinarySensorEntityDescription, ...] = (
|
|||||||
COMPRESSOR_SENSORS: tuple[ViCareBinarySensorEntityDescription, ...] = (
|
COMPRESSOR_SENSORS: tuple[ViCareBinarySensorEntityDescription, ...] = (
|
||||||
ViCareBinarySensorEntityDescription(
|
ViCareBinarySensorEntityDescription(
|
||||||
key="compressor_active",
|
key="compressor_active",
|
||||||
name="Compressor active",
|
name="Compressor",
|
||||||
device_class=BinarySensorDeviceClass.POWER,
|
device_class=BinarySensorDeviceClass.RUNNING,
|
||||||
value_getter=lambda api: api.getActive(),
|
value_getter=lambda api: api.getActive(),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
@ -71,26 +73,29 @@ COMPRESSOR_SENSORS: tuple[ViCareBinarySensorEntityDescription, ...] = (
|
|||||||
GLOBAL_SENSORS: tuple[ViCareBinarySensorEntityDescription, ...] = (
|
GLOBAL_SENSORS: tuple[ViCareBinarySensorEntityDescription, ...] = (
|
||||||
ViCareBinarySensorEntityDescription(
|
ViCareBinarySensorEntityDescription(
|
||||||
key="solar_pump_active",
|
key="solar_pump_active",
|
||||||
name="Solar pump active",
|
name="Solar pump",
|
||||||
device_class=BinarySensorDeviceClass.POWER,
|
icon="mdi:pump",
|
||||||
|
device_class=BinarySensorDeviceClass.RUNNING,
|
||||||
value_getter=lambda api: api.getSolarPumpActive(),
|
value_getter=lambda api: api.getSolarPumpActive(),
|
||||||
),
|
),
|
||||||
ViCareBinarySensorEntityDescription(
|
ViCareBinarySensorEntityDescription(
|
||||||
key="charging_active",
|
key="charging_active",
|
||||||
name="DHW Charging active",
|
name="DHW Charging",
|
||||||
device_class=BinarySensorDeviceClass.RUNNING,
|
device_class=BinarySensorDeviceClass.RUNNING,
|
||||||
value_getter=lambda api: api.getDomesticHotWaterChargingActive(),
|
value_getter=lambda api: api.getDomesticHotWaterChargingActive(),
|
||||||
),
|
),
|
||||||
ViCareBinarySensorEntityDescription(
|
ViCareBinarySensorEntityDescription(
|
||||||
key="dhw_circulationpump_active",
|
key="dhw_circulationpump_active",
|
||||||
name="DHW Circulation Pump Active",
|
name="DHW Circulation Pump",
|
||||||
device_class=BinarySensorDeviceClass.POWER,
|
icon="mdi:pump",
|
||||||
|
device_class=BinarySensorDeviceClass.RUNNING,
|
||||||
value_getter=lambda api: api.getDomesticHotWaterCirculationPumpActive(),
|
value_getter=lambda api: api.getDomesticHotWaterCirculationPumpActive(),
|
||||||
),
|
),
|
||||||
ViCareBinarySensorEntityDescription(
|
ViCareBinarySensorEntityDescription(
|
||||||
key="dhw_pump_active",
|
key="dhw_pump_active",
|
||||||
name="DHW Pump Active",
|
name="DHW Pump",
|
||||||
device_class=BinarySensorDeviceClass.POWER,
|
icon="mdi:pump",
|
||||||
|
device_class=BinarySensorDeviceClass.RUNNING,
|
||||||
value_getter=lambda api: api.getDomesticHotWaterPumpActive(),
|
value_getter=lambda api: api.getDomesticHotWaterPumpActive(),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user