Reolink add animal detection (#104216)
This commit is contained in:
parent
2d38a42fea
commit
2dd0a74b38
3 changed files with 61 additions and 3 deletions
|
@ -71,7 +71,16 @@ BINARY_SENSORS = (
|
|||
icon="mdi:dog-side",
|
||||
icon_off="mdi:dog-side-off",
|
||||
value=lambda api, ch: api.ai_detected(ch, PET_DETECTION_TYPE),
|
||||
supported=lambda api, ch: api.ai_supported(ch, PET_DETECTION_TYPE),
|
||||
supported=lambda api, ch: api.ai_supported(ch, PET_DETECTION_TYPE)
|
||||
and not api.supported(ch, "ai_animal"),
|
||||
),
|
||||
ReolinkBinarySensorEntityDescription(
|
||||
key=PET_DETECTION_TYPE,
|
||||
translation_key="animal",
|
||||
icon="mdi:paw",
|
||||
icon_off="mdi:paw-off",
|
||||
value=lambda api, ch: api.ai_detected(ch, PET_DETECTION_TYPE),
|
||||
supported=lambda api, ch: api.supported(ch, "ai_animal"),
|
||||
),
|
||||
ReolinkBinarySensorEntityDescription(
|
||||
key="visitor",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue