parent
da6eca7b68
commit
372886bf6c
3 changed files with 56 additions and 0 deletions
|
@ -7,6 +7,7 @@ from dataclasses import dataclass
|
|||
from reolink_aio.api import (
|
||||
DUAL_LENS_DUAL_MOTION_MODELS,
|
||||
FACE_DETECTION_TYPE,
|
||||
PACKAGE_DETECTION_TYPE,
|
||||
PERSON_DETECTION_TYPE,
|
||||
PET_DETECTION_TYPE,
|
||||
VEHICLE_DETECTION_TYPE,
|
||||
|
@ -86,6 +87,14 @@ BINARY_SENSORS = (
|
|||
value=lambda api, ch: api.ai_detected(ch, PET_DETECTION_TYPE),
|
||||
supported=lambda api, ch: api.supported(ch, "ai_animal"),
|
||||
),
|
||||
ReolinkBinarySensorEntityDescription(
|
||||
key=PACKAGE_DETECTION_TYPE,
|
||||
translation_key="package",
|
||||
icon="mdi:gift-outline",
|
||||
icon_off="mdi:gift-off-outline",
|
||||
value=lambda api, ch: api.ai_detected(ch, PACKAGE_DETECTION_TYPE),
|
||||
supported=lambda api, ch: api.ai_supported(ch, PACKAGE_DETECTION_TYPE),
|
||||
),
|
||||
ReolinkBinarySensorEntityDescription(
|
||||
key="visitor",
|
||||
translation_key="visitor",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue