Add additional entities for the Aqara E1 curtain motor to ZHA (#108243)

* aqara curtain motor opened by hand binary sensor

add icon and translation key for identify button

remove previous inversion entity

add window covering type sensor and aqara curtain motor sensors

add aqara curtain motor hook lock switch

add aqara curtain motor attributes zcl_init_attrs

add aqara curtain motor zcl_init_attrs

translations

* update translation string

* review comments

* use enum sensor after rebase

* remove button change
This commit is contained in:
David F. Mulcahey 2024-01-30 22:40:33 -05:00 committed by GitHub
parent 3115af1041
commit ac8f555a70
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 107 additions and 20 deletions

View file

@ -471,25 +471,6 @@ class AqaraT2RelayDecoupledMode(ZCLEnumSelectEntity):
_attr_translation_key: str = "decoupled_mode"
class AqaraE1ReverseDirection(types.enum8):
"""Aqara curtain reversal."""
Normal = 0x00
Inverted = 0x01
@CONFIG_DIAGNOSTIC_MATCH(
cluster_handler_names="window_covering", models={"lumi.curtain.agl001"}
)
class AqaraCurtainMode(ZCLEnumSelectEntity):
"""Representation of a ZHA curtain mode configuration entity."""
_unique_id_suffix = "window_covering_mode"
_attribute_name = "window_covering_mode"
_enum = AqaraE1ReverseDirection
_attr_translation_key: str = "window_covering_mode"
class InovelliOutputMode(types.enum1):
"""Inovelli output mode."""