From b90aa2c596d10b6050d1054cf869828b8d8d9905 Mon Sep 17 00:00:00 2001 From: Timo Neumeier <77058548+neumeier-cloud@users.noreply.github.com> Date: Sun, 9 Jun 2024 17:10:41 +0200 Subject: [PATCH] Added Support for Goliath Doorbell (#356) Co-authored-by: Ronnie --- custom_components/dahua/__init__.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/custom_components/dahua/__init__.py b/custom_components/dahua/__init__.py index 3777090..0b6c618 100755 --- a/custom_components/dahua/__init__.py +++ b/custom_components/dahua/__init__.py @@ -540,7 +540,7 @@ def is_doorbell(self) -> bool: """ Returns true if this is a doorbell (VTO) """ m = self.model.upper() return m.startswith("VTO") or m.startswith("DH-VTO") or ( - "NVR" not in m and m.startswith("DHI")) or self.is_amcrest_doorbell() or self.is_empiretech_doorbell() + "NVR" not in m and m.startswith("DHI")) or self.is_amcrest_doorbell() or self.is_empiretech_doorbell() or self.is_avaloidgoliath_doorbell() def is_amcrest_doorbell(self) -> bool: """ Returns true if this is an Amcrest doorbell """ @@ -550,6 +550,10 @@ def is_empiretech_doorbell(self) -> bool: """ Returns true if this is an EmpireTech doorbell """ return self.model.upper().startswith("DB2X") + def is_avaloidgoliath_doorbell(self) -> bool: + """ Returns true if this is an Avaloid Goliath doorbell """ + return self.model.upper().startswith("AV-V") + def is_flood_light(self) -> bool: """ Returns true if this camera is an floodlight camera (eg.ASH26-W) """ m = self.model.upper()