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

Possible fix by differentiating newer model floodlightmode APIs for coaxial API use on floodlights. #315

Closed
wants to merge 6 commits into from

Conversation

cchamilt
Copy link
Contributor

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.

@@ -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()
Copy link
Owner

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...

Copy link

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?

@gkwok1
Copy link

gkwok1 commented Feb 6, 2024

Any updates on this to fix floodlight issues with Amcrest ASH26 in v0.9.51?

@skooj
Copy link
Contributor

skooj commented Jul 10, 2024

@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:
I made a fork that includes my changes here. I'd be willing to open a PR as well if that's easier or better.

@rroller
Copy link
Owner

rroller commented Jul 20, 2024

@rroller rroller closed this Jul 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants