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

white LED status #25

Open
oelison opened this issue Mar 13, 2023 · 5 comments
Open

white LED status #25

oelison opened this issue Mar 13, 2023 · 5 comments
Labels
blocked In focus, but waiting on extern bug Something isn't working

Comments

@oelison
Copy link
Collaborator

oelison commented Mar 13, 2023

white LED status
white LED status is auto after switching off

To Reproduce
Steps to reproduce the behavior:

  1. LED status is in off mode
  2. switch LED on
  3. switch LED off
  4. LED now in auto mode (every time)

Expected behavior
LED is in the old state or LED is selectable in AUTO or OFF (store the old state may be not the best solution)

@oelison oelison added the bug Something isn't working label Mar 25, 2023
@oelison oelison added the blocked In focus, but waiting on extern label Dec 3, 2023
@oelison
Copy link
Collaborator Author

oelison commented Dec 3, 2023

Cannot find the auto state in the API. Only on and off (0, 1) is possible.

@johndoetheanimal
Copy link

don't know how the light will be triggered, but with
[ { "cmd":"SetWhiteLed", "action":0, "param":{ "WhiteLed":{ "channel":0, "state":1 } } } ]
and
[ { "cmd":"SetWhiteLed", "action":0, "param":{ "WhiteLed":{ "channel":0, "state":0 } } } ]

Nightmode doesn't switch on automaticly

@johndoetheanimal
Copy link

johndoetheanimal commented Dec 8, 2023

ok - so mode refers to the LED Mode
mode 0 = off
mode 1 = night mode
mode 2 = unknown atm
// €: home-assistant/core#100250 says it would be always-on, but my RLC811-A doesn't support it
mode 3 = Timer mode

API Documentation v8 is wrong !

Lights on in mode0 means, that the LEDs are on for 3 minutes and afterwards they are shut off. seems to be hardcoded.

If you need more than 3 minutes, you have to go on mode3 and set the begintime -1 minute before now() and end time +x minutes you want to have - fe 20 minutes LED:

[ { "cmd":"SetWhiteLed", "action":0, "param":{ "WhiteLed":{ "LightingSchedule":{ "EndHour":23, "EndMin":50, "StartHour":23, "StartMin":29 }, "mode":3, "channel":0 } } } ]
But this has to be reset afterwards or you have fun the next day :)
Alternativ
toggle on: set Start to now()-1minute and End to now()-2 minutes (so lights are on 23:59 and just one minute offline)
toggle off: set mode 0 & state 0

Tested with RLC-811A

@Nibbels
Copy link
Contributor

Nibbels commented Apr 23, 2024

Ich bin eben über dasselbe Phänomen gestolpert. Immer, wenn ich die Led oder die Led-Brightness im IoBroker geändert habe, hat sich der "Nacht Smart Modus" aktiviert.

Also müsste man hier wohl den mode = 1 entfernen?

"mode": 1,

"mode": 1,

Ich meine man sollte den LedMode(int mode) gesondert setzen können.

@Nibbels
Copy link
Contributor

Nibbels commented Apr 23, 2024

Laut https://community.reolink.com/topic/4196/reolink-camera-api-user-guide_v8-updated-in-april-2023 -> https://drive.google.com/drive/folders/1qvKcKswNJP_-G0tTbs_JQOuO67QqujfB -> Seite 343 SetWhiteLed ist "mode" nicht mandatory =M sondern optional =O
Man sollte mode im Request-Json weglassen oder gesondert setzen dürfen.

oelison added a commit that referenced this issue May 16, 2024
* (Nibbels) [#56](#56) added function to switch scheduled recording on and off
* (Nibbels) [#25](#25) detach led light from led light mode
* (Nibbels) added setWhiteLedMode function
* (Nibbels) read zoom and focus with POST request (works on RLC-823A v3.1)
* (oelison) removed node 16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked In focus, but waiting on extern bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants