mirror of
https://github.com/Andre0512/hon.git
synced 2025-05-13 06:34:22 -04:00
Many air conditioner fixes for #52
This commit is contained in:
parent
d39deba973
commit
a4ec3290ba
30 changed files with 199 additions and 30 deletions
|
@ -1,6 +1,8 @@
|
|||
import logging
|
||||
from dataclasses import dataclass
|
||||
|
||||
from pyhon import Hon
|
||||
|
||||
from homeassistant.components.binary_sensor import (
|
||||
BinarySensorEntityDescription,
|
||||
BinarySensorDeviceClass,
|
||||
|
@ -8,8 +10,6 @@ from homeassistant.components.binary_sensor import (
|
|||
)
|
||||
from homeassistant.config_entries import ConfigEntry
|
||||
from homeassistant.core import callback
|
||||
from pyhon import Hon
|
||||
|
||||
from .const import DOMAIN
|
||||
from .hon import HonCoordinator, HonEntity, unique_entities
|
||||
|
||||
|
@ -179,6 +179,20 @@ BINARY_SENSORS: dict[str, tuple[HonBinarySensorEntityDescription, ...]] = {
|
|||
translation_key="door_open",
|
||||
),
|
||||
),
|
||||
"AC": (
|
||||
HonBinarySensorEntityDescription(
|
||||
key="filterChangeStatusLocal",
|
||||
name="Filter Replacement",
|
||||
device_class=BinarySensorDeviceClass.PROBLEM,
|
||||
on_value="1",
|
||||
translation_key="filter_replacement",
|
||||
),
|
||||
HonBinarySensorEntityDescription(
|
||||
key="ch2oCleaningStatus",
|
||||
name="Ch2O Cleaning",
|
||||
on_value="1",
|
||||
),
|
||||
),
|
||||
"REF": (
|
||||
HonBinarySensorEntityDescription(
|
||||
key="quickModeZ2",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue