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:
David F. Mulcahey 2022-11-21 18:03:17 -05:00 committed by GitHub
parent d47fe35a88
commit 5329a679bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 165 additions and 10 deletions

View file

@ -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"