-
Notifications
You must be signed in to change notification settings - Fork 84
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
Possible fix by differentiating newer model floodlightmode APIs for coaxial API use on floodlights. #315
Conversation
@@ -549,6 +552,10 @@ def is_flood_light(self) -> bool: | |||
m = self.model.upper() | |||
return m.startswith("ASH26") or "L26N" in m or "L46N" in m or m.startswith("V261LC") or m.startswith("W452ASD") | |||
|
|||
def supports_floodlightmode(self) -> bool: | |||
""" Returns true if this camera supports floodlight mode """ | |||
return "W452ASD" in self.model.upper() or "L46N" in self.model.upper() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think one of my cams is a different model but supports the floodlight. Once I get home I'll try to check...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ASH26 flood light is still broken in 0.9.54. Anyway we can get this merged on the next release?
Any updates on this to fix floodlight issues with Amcrest ASH26 in v0.9.51? |
@rroller Any possible update on getting these changes merged into the main branch? I am not well-versed in git, but I manually made the changes found in this commit to the init.py and light.py files from the most recent release (0.9.59) and can confirm that my ASH26-W floodlight turns on and off as expected. Prior to making those changes, I still got the errors that I outlined here. EDIT: |
done. released in https://github.com/rroller/dahua/releases/tag/0.9.60 |
It appears that some of the earlier models support Coaxial API, but not the floodlightmode. Since the 26 earlier models appear to use LightingV2 OK, this explicitly associates the Coaxial API calls to the 4x models that have floodlightmode.