Skip to content

Commit

Permalink
Added Support for Goliath Doorbell (#356)
Browse files Browse the repository at this point in the history
Co-authored-by: Ronnie <[email protected]>
  • Loading branch information
neumeier-cloud and rroller authored Jun 9, 2024
1 parent 9c459d1 commit b90aa2c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion custom_components/dahua/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 """
Expand All @@ -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()
Expand Down

0 comments on commit b90aa2c

Please sign in to comment.