From ad39f9e0bc8399dc1f64c26eded97958371c3f40 Mon Sep 17 00:00:00 2001 From: Allen Pauna Date: Wed, 30 Oct 2024 12:31:02 -0500 Subject: [PATCH 1/2] Update __init__.py --- custom_components/dahua/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/dahua/__init__.py b/custom_components/dahua/__init__.py index 513c51f..03ae4f5 100755 --- a/custom_components/dahua/__init__.py +++ b/custom_components/dahua/__init__.py @@ -537,7 +537,7 @@ 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 """ - 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") def is_doorbell(self) -> bool: """ Returns true if this is a doorbell (VTO) """ From d6cdd4c70e0ec9df25fec4b8621829c07f2ec523 Mon Sep 17 00:00:00 2001 From: Allen Pauna Date: Fri, 8 Nov 2024 11:54:15 -0600 Subject: [PATCH 2/2] Update init with security camera IP8M-2796Efeature for Addressed issues https://github.com/rroller/dahua/pull/405 --- custom_components/dahua/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/custom_components/dahua/__init__.py b/custom_components/dahua/__init__.py index fc757df..90ef9c0 100755 --- a/custom_components/dahua/__init__.py +++ b/custom_components/dahua/__init__.py @@ -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) """