Add Aqara c1 pet feeder support to ZHA (#82340)
* Add Aqara c1 pet feeder support to ZHA * clean up * cleanup * state classes for daily measurements * cleanups * cleanups * restore the refreshing of the inverted value cache * cleanup
This commit is contained in:
parent
d47fe35a88
commit
5329a679bb
7 changed files with 165 additions and 10 deletions
|
@ -477,3 +477,20 @@ class InovelliSwitchTypeEntity(ZCLEnumSelectEntity, id_suffix="switch_type"):
|
|||
_select_attr = "switch_type"
|
||||
_enum = InovelliSwitchType
|
||||
_attr_name: str = "Switch type"
|
||||
|
||||
|
||||
class AqaraFeedingMode(types.enum8):
|
||||
"""Feeding mode."""
|
||||
|
||||
Manual = 0x00
|
||||
Schedule = 0x01
|
||||
|
||||
|
||||
@CONFIG_DIAGNOSTIC_MATCH(channel_names="opple_cluster", models={"aqara.feeder.acn001"})
|
||||
class AqaraPetFeederMode(ZCLEnumSelectEntity, id_suffix="feeding_mode"):
|
||||
"""Representation of an Aqara pet feeder mode configuration entity."""
|
||||
|
||||
_select_attr = "feeding_mode"
|
||||
_enum = AqaraFeedingMode
|
||||
_attr_name = "Mode"
|
||||
_attr_icon: str = "mdi:wrench-clock"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue