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

reolink: add siren support #1506

Merged
merged 1 commit into from
Jun 23, 2024
Merged

reolink: add siren support #1506

merged 1 commit into from
Jun 23, 2024

Conversation

gtalusan
Copy link
Contributor

This changes the camera to be a DeviceProvider, so that a Siren device can be provided by the camera if siren mode is supported. Siren support is inferred via the GetAbility API.

For my PoE doorbell, I noticed that the alarm_mode = "manul" won't trigger the siren. Using the siren's timed mode instead and pumping the API is a workaround.

@@ -521,6 +596,7 @@ class ReolinkProvider extends RtspProvider {
ScryptedInterface.Camera,
ScryptedInterface.AudioSensor,
ScryptedInterface.MotionSensor,
ScryptedInterface.DeviceProvider,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't add this interface unless it has a siren.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it. Updated to push the DeviceProvider interface when the siren ability is determined.

@koush koush merged commit 2d98774 into koush:main Jun 23, 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.

2 participants