mirror of
https://github.com/Andre0512/hon.git
synced 2026-05-07 09:54:41 +02:00
Many air conditioner fixes for #52
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user