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] Add white LED controls for Dahua and also Email and Push for Reolink with v20 command support #16144

Merged
merged 33 commits into from Jan 26, 2024

Conversation

Skinah
Copy link
Contributor

@Skinah Skinah commented Dec 29, 2023

This PR adds the following channels as requested by users in the linked issues:

Reolink:
enableEmail
enablePush
whiteLED
autoWhiteLED

Dahua:
whiteLED
autoWhiteLED

Additionally, the PR also adds:

closes #15757
closes #15118

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>
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 enhancement An enhancement or new feature for an existing add-on label Dec 29, 2023
Signed-off-by: Matthew Skinner <matt@pcmus.com>
@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/adding-reolink-api-to-the-ipcamera-binding-beta-testers-needed/142202/155

@Skinah Skinah added the work in progress A PR that is not yet ready to be merged label Dec 30, 2023
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 changed the title [ipcamera] Add white LED controls for Dahua and also Email and Push enable for Reolink cameras [ipcamera] Add white LED controls for Dahua and also Email and Push for Reolink with v20 command support Jan 6, 2024
Signed-off-by: Matthew Skinner <matt@pcmus.com>
@Skinah Skinah removed the work in progress A PR that is not yet ready to be merged label Jan 7, 2024
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>
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, Some minor comments and a question

Edit: Could you also fix the two MemberNameCheck warnings while you are at it? (alarm_state and dog_cat in ReolinkState.java)

Skinah and others added 4 commits January 25, 2024 21:51
Signed-off-by: Matthew Skinner <matt@pcmus.com>
…/thing/thing-types.xml

Co-authored-by: lsiepel <leosiepel@gmail.com>
Signed-off-by: Matthew Skinner <matt@pcmus.com>
…/thing/thing-types.xml

Co-authored-by: lsiepel <leosiepel@gmail.com>
Signed-off-by: Matthew Skinner <matt@pcmus.com>
…/thing/thing-types.xml

Co-authored-by: lsiepel <leosiepel@gmail.com>
Signed-off-by: Matthew Skinner <matt@pcmus.com>
Skinah and others added 9 commits January 25, 2024 21:53
…/binding/ipcamera/internal/ReolinkHandler.java

Co-authored-by: lsiepel <leosiepel@gmail.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>
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
Copy link
Contributor Author

Skinah commented Jan 26, 2024

@lsiepel Thank you for the review and help. All comments have been addressed, have spent 10+ hours testing these changes over four different cameras in different ways to set them up. Happy with it and needing a break :)

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 5a29d7e into openhab:main Jan 26, 2024
3 checks passed
@lsiepel lsiepel added this to the 4.2 milestone Jan 26, 2024
@lsiepel
Copy link
Contributor

lsiepel commented Jan 26, 2024

@Skinah Minor suggestion; i would recommend to split future PR's into seperate bug and enhancements PR's. So they are easy to review, cherry pick and also mentioned seperately in the changelog.

andrasU pushed a commit to andrasU/openhab-addons that referenced this pull request Jan 27, 2024
…or Reolink with v20 command support (openhab#16144)

* New reolink channels
* extra channel for Dahua.
* Reolink NPE fix
* Fix LED modes and auto.
* Handle NVR channels for new channels
* add nvr channels to Dahua.

Signed-off-by: Matthew Skinner <matt@pcmus.com>
Signed-off-by: Andras Uhrin <andras.uhrin@gmail.com>
@Skinah Skinah deleted the ipcamera branch January 28, 2024 01:32
ulbi pushed a commit to ulbi/openhab-addons that referenced this pull request Jan 28, 2024
…or Reolink with v20 command support (openhab#16144)

* New reolink channels
* extra channel for Dahua.
* Reolink NPE fix
* Fix LED modes and auto.
* Handle NVR channels for new channels
* add nvr channels to Dahua.

Signed-off-by: Matthew Skinner <matt@pcmus.com>
Signed-off-by: René Ulbricht <rene_ulbricht@outlook.com>
austvik pushed a commit to austvik/openhab-addons that referenced this pull request Mar 27, 2024
…or Reolink with v20 command support (openhab#16144)

* New reolink channels
* extra channel for Dahua.
* Reolink NPE fix
* Fix LED modes and auto.
* Handle NVR channels for new channels
* add nvr channels to Dahua.

Signed-off-by: Matthew Skinner <matt@pcmus.com>
Signed-off-by: Jørgen Austvik <jaustvik@acm.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An enhancement or new feature for an existing add-on
Projects
None yet
3 participants