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

Re Added Security Light for more specific models IP8M-2796E #416

Merged
merged 5 commits into from
Nov 10, 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
3 changes: 2 additions & 1 deletion custom_components/dahua/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -538,8 +538,9 @@ def supports_security_light(self) -> bool:
"""
Returns true if this camera has the red/blue flashing security light feature. For example, the
IPC-HDW3849HP-AS-PV does https://dahuawiki.com/Template:NameConvention
Addressed issue https://github.com/rroller/dahua/pull/405
"""
return "-AS-PV" in self.model or self.model == "AD410"
return "-AS-PV" in self.model or self.model == "AD410" or self.model.startswith("IP8M-2796E")

def is_doorbell(self) -> bool:
""" Returns true if this is a doorbell (VTO) """
Expand Down
Loading