reolink_dev
reolink_dev copied to clipboard
LED/Spotlight switch not working
Describe the bug When I turn on the Camera spotlight nothing happens.
To Reproduce Add Camera via Reolink intergration, add switch to Lovelace and click.
some logs: 2022-01-05 20:28:34 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook d11415cf1444444444444444449360d3b1cb94f83eefa68456e96bed06705a from 192.168.1.31 2022-01-05 20:28:38 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook d11415cf1a44444444444444444444d3b1cb94f83eefa68456e96bed06705a from 192.168.1.31 2022-01-05 20:28:42 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook d11415cf1a4444444444444444444444b1cb94f83eefa68456e96bed06705a from 192.168.1.31 2022-01-05 20:28:46 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook d11415cf1a4444444444444444444444b1cb94f83eefa68456e96bed06705a from 192.168.1.31 2022-01-05 20:28:50 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook d11415cf1a4344444444444444444443b1cb94f83eefa68456e96bed06705a from 192.168.1.31 2022-01-05 20:28:54 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook d11415cf1a43444444444444444460d3b1cb94f83eefa68456e96bed06705a from 192.168.1.31 2022-01-05 20:48:02 WARNING (MainThread) [reolink.camera_api] Host: 192.168.1.31: Failed to get results for Search, JSON data was was empty?
Logger: reolink.camera_api Source: /usr/local/lib/python3.9/site-packages/reolink/camera_api.py:1529 First occurred: 8:25:02 PM (2 occurrences) Last logged: 8:48:02 PM Host: 192.168.1.31: Failed to get results for Search, JSON data was was empty?
Expected behavior The Spotlight to turn on
Screenshots If applicable, add screenshots to help explain your problem.
Environment: Please provide useful information about your environment, like:
- Home Assistant version - 2021.12.8
- Reolink camera model - E1 Outdoor
- Camera firmware number - v3.0.0.460_21071466
Additional context Running v0.46
The Curl command to turn it on works; curl -X POST 'http://yourcameraIP/cgi-bin/api.cgi?user=yourusername&password=yourpassword' -d '[{"cmd": "SetWhiteLed", "param": { "WhiteLed": {"bright" : 100, "channel": 0, "mode": 1, "state": 1}}}]'
The siren switch works.
downgraded to v0.45 same result,
Current workaround is a command line switch using the curl commands for on and off.
switch: platform: command_line switches: front_camera_spotlight: friendly_name: Front Camera LED command_on: > curl -X POST '{"on":true}' 'http://192.168.1.31/cgi-bin/api.cgi?user=######&password=########' -d '[{"cmd": "SetWhiteLed", "param": { "WhiteLed": {"bright" : 100, "channel": 0, "mode": 1, "state": 1}}}]' command_off: > curl -X POST '{"on":false}' 'http://192.168.1.31/cgi-bin/api.cgi?user=######&password=#######' -d '[{"cmd": "SetWhiteLed", "param": { "WhiteLed": {"bright" : 100, "channel": 0, "mode": 3, "state": 0}}}]'
Also experiencing the same problem with the E1 Pro. Will attempt the curl command switch as a work-around.
Reolink RLC-520A - same result :-(
At Reolink RLC-520A, the Spotlight switch does not work at all. Even through the web menu of the camera itself. I propose to exclude Spotlight switches at 520A
Looking into getting the RLC-511WA, could anyone comment on if this is working?