Add support for homekit_controller secondary entities like power usage (#44013)

This commit is contained in:
Jc2k 2021-01-26 19:45:01 +00:00 committed by GitHub
parent f53a83e084
commit 3b0a440770
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 646 additions and 17 deletions

View file

@ -1,4 +1,6 @@
"""Constants for the homekit_controller component."""
from aiohomekit.model.characteristics import CharacteristicsTypes
DOMAIN = "homekit_controller"
KNOWN_DEVICES = f"{DOMAIN}-devices"
@ -40,3 +42,7 @@ HOMEKIT_ACCESSORY_DISPATCH = {
"valve": "switch",
"camera-rtp-stream-management": "camera",
}
CHARACTERISTIC_PLATFORMS = {
CharacteristicsTypes.Vendor.KOOGEEK_REALTIME_ENERGY: "sensor",
}