Add additional characteristics for Airversa Homekit Air Purifiers (#85660)
This commit is contained in:
parent
5b80b1f55a
commit
da046f93f4
5 changed files with 660 additions and 0 deletions
|
@ -95,6 +95,9 @@ CHARACTERISTIC_PLATFORMS = {
|
|||
CharacteristicsTypes.IDENTIFY: "button",
|
||||
CharacteristicsTypes.THREAD_NODE_CAPABILITIES: "sensor",
|
||||
CharacteristicsTypes.THREAD_CONTROL_POINT: "button",
|
||||
CharacteristicsTypes.MUTE: "switch",
|
||||
CharacteristicsTypes.FILTER_LIFE_LEVEL: "sensor",
|
||||
CharacteristicsTypes.VENDOR_AIRVERSA_SLEEP_MODE: "switch",
|
||||
}
|
||||
|
||||
STARTUP_EXCEPTIONS = (
|
||||
|
|
|
@ -331,6 +331,12 @@ SIMPLE_SENSOR: dict[str, HomeKitSensorEntityDescription] = {
|
|||
native_unit_of_measurement=UnitOfSoundPressure.DECIBEL,
|
||||
device_class=SensorDeviceClass.SOUND_PRESSURE,
|
||||
),
|
||||
CharacteristicsTypes.FILTER_LIFE_LEVEL: HomeKitSensorEntityDescription(
|
||||
key=CharacteristicsTypes.FILTER_LIFE_LEVEL,
|
||||
name="Filter Life",
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
native_unit_of_measurement=PERCENTAGE,
|
||||
),
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -57,6 +57,18 @@ SWITCH_ENTITIES: dict[str, DeclarativeSwitchEntityDescription] = {
|
|||
icon="mdi:lock-open",
|
||||
entity_category=EntityCategory.CONFIG,
|
||||
),
|
||||
CharacteristicsTypes.MUTE: DeclarativeSwitchEntityDescription(
|
||||
key=CharacteristicsTypes.MUTE,
|
||||
name="Mute",
|
||||
icon="mdi:volume-mute",
|
||||
entity_category=EntityCategory.CONFIG,
|
||||
),
|
||||
CharacteristicsTypes.VENDOR_AIRVERSA_SLEEP_MODE: DeclarativeSwitchEntityDescription(
|
||||
key=CharacteristicsTypes.VENDOR_AIRVERSA_SLEEP_MODE,
|
||||
name="Sleep Mode",
|
||||
icon="mdi:power-sleep",
|
||||
entity_category=EntityCategory.CONFIG,
|
||||
),
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue