Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Support for Goliath Doorbell #356

Merged
merged 2 commits into from
Jun 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading