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

[ipcamera] Fix ONVIF alarms streams may stop and not restart on some cameras. #16777

Merged
merged 6 commits into from
May 20, 2024

Conversation

Skinah
Copy link
Contributor

@Skinah Skinah commented May 19, 2024

Fixes a bug where some cameras reply with a different ONVIF reply content then expected and the ONVIF alarm stream halts and will not restart when this occurs. Did not effect any of the cameras that have their own API, this was only for ONVIF and also REOLINK thing types.

Hikvision: Bug fix for issue reported on forum and also confirmed it was solved with this change. The binding cleared an arraylist (?) and then tried to SET the first element. Fixed by using ADD as it can only be empty at that point in the code.

https://community.openhab.org/t/ipcamera-new-ip-camera-binding/42771/2947

Reolink: Fixed some fence post errors that were causing some cameras to show the wrong snapshot or stream from a different channel on the same NVR. This was reported on the forum and also has been confirmed as being fixed with these changes here.
https://community.openhab.org/t/adding-reolink-api-to-the-ipcamera-binding-beta-testers-needed/142202/188

Signed-off-by: Matthew Skinner <matt@pcmus.com>
Signed-off-by: Matthew Skinner <matt@pcmus.com>
Signed-off-by: Matthew Skinner <matt@pcmus.com>
Signed-off-by: Matthew Skinner <matt@pcmus.com>
Signed-off-by: Matthew Skinner <matt@pcmus.com>
Signed-off-by: Matthew Skinner <matt@pcmus.com>
@Skinah Skinah added the bug An unexpected problem or unintended behavior of an add-on label May 19, 2024
Copy link
Contributor

@lsiepel lsiepel left a comment

Choose a reason for hiding this comment

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

Thanks, LGTM

@lsiepel lsiepel merged commit f7ebff9 into openhab:main May 20, 2024
5 checks passed
@lsiepel lsiepel added this to the 4.2 milestone May 20, 2024
PRosenb pushed a commit to PRosenb/openhab-addons that referenced this pull request May 22, 2024
…cameras. (openhab#16777)

* Fault find stream

Signed-off-by: Matthew Skinner <matt@pcmus.com>
PRosenb pushed a commit to PRosenb/openhab-addons that referenced this pull request May 22, 2024
…cameras. (openhab#16777)

* Fault find stream

Signed-off-by: Matthew Skinner <matt@pcmus.com>
@Skinah Skinah deleted the camera3 branch June 15, 2024 02:45
psmedley pushed a commit to psmedley/openhab-addons that referenced this pull request Jun 15, 2024
…cameras. (openhab#16777)

* Fault find stream

Signed-off-by: Matthew Skinner <matt@pcmus.com>
Signed-off-by: Paul Smedley <paul@smedley.id.au>
@openhab-bot
Copy link
Collaborator

This pull request has been mentioned on openHAB Community. There might be relevant details there:

https://community.openhab.org/t/problems-with-reolink-e1-outdoor/158358/7

pgfeller pushed a commit to pgfeller/openhab-addons that referenced this pull request Sep 29, 2024
…cameras. (openhab#16777)

* Fault find stream

Signed-off-by: Matthew Skinner <matt@pcmus.com>
Signed-off-by: Patrik Gfeller <patrik.gfeller@proton.me>
joni1993 pushed a commit to joni1993/openhab-addons that referenced this pull request Oct 15, 2024
…cameras. (openhab#16777)

* Fault find stream

Signed-off-by: Matthew Skinner <matt@pcmus.com>
matchews pushed a commit to matchews/openhab-addons that referenced this pull request Oct 18, 2024
…cameras. (openhab#16777)

* Fault find stream

Signed-off-by: Matthew Skinner <matt@pcmus.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An unexpected problem or unintended behavior of an add-on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants