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 Reolink Duo Floodlight whiteLED Channel #16663

Merged
merged 1 commit into from May 11, 2024

Conversation

simmonyau
Copy link
Contributor

Updated whiteLED channel for reolink ipcamera so that when the light is turned on, it will stay on forever and if the light is turned off, it will stay off forever. This is achieved by setting the floodlight mode to "Always On at Night" when the floodlight is turned on and to Off when the floodlight is turned off. Prior to this change, the mode would be set to Auto when turning the floodlight off and to Off when setting the floodlight ON and then back to Auto if you change the brightness via the dimmer.

This was tested and confirmed on a Reolink Duo Floodlight POE camera and is working well for me. I believe this setting would be more ideal for most users but I could be wrong. I just thought it was odd that the floodlight wouldn't stay on longer than 3 minutes after the brightness was set to 100. The same thing probably could have been achieved if mode is set to 0 for all 3 settings.

Signed-off-by: Simmon Yau simmonyau@gmail.com

@simmonyau simmonyau requested a review from Skinah as a code owner April 19, 2024 05:00
@lsiepel
Copy link
Contributor

lsiepel commented Apr 28, 2024

I'm unable to asses if these changed modes are good. Code is fine. Need @Skinah to determine if this is ok to merge. In the mean time it would be nice if you can fix the DCO.

@lsiepel lsiepel added the bug An unexpected problem or unintended behavior of an add-on label Apr 28, 2024
light is turned on, it will stay on forever and if the light is
turned off, it will stay off forever.

Signed-off-by: Simmon Yau <simmonyau@gmail.com>
@simmonyau simmonyau force-pushed the reolink-fix-duo-floodlight branch from 9688429 to 8ba123a Compare May 2, 2024 04:59
@simmonyau
Copy link
Contributor Author

I'm unable to asses if these changed modes are good. Code is fine. Need @Skinah to determine if this is ok to merge. In the mean time it would be nice if you can fix the DCO.

Done.

@lsiepel
Copy link
Contributor

lsiepel commented May 10, 2024

Gentle ping @Skinah

@Skinah
Copy link
Contributor

Skinah commented May 11, 2024

LGTM
I am not able to test as I don't own any Reolink cameras so thanks for the testing and changes you have made.

@lsiepel lsiepel merged commit f5fe9d1 into openhab:main May 11, 2024
5 checks passed
@lsiepel lsiepel added this to the 4.2 milestone May 11, 2024
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.

None yet

3 participants