-
Hi there. Anyone knows how to Swtich the Spotlight Night-Mode via API. API-Guide describes only to set IrLights via API.
Reply QuoteShare0- Share this Post
-
copy the link
Copied!
-
@dirk_402008813515005 I gave the curl commands to switch on/off the spotlight in https://community.reolink.com/topic/7204/rlc-511wa-http-requests-to-trigger-the-light?post_id=27161&_=1718469703483
-
@joseph_1979 I saw this earlier, but it does not work with the DUO WiFi Camera. The WhiteLed seems not to be supported by this camera. Just to be clear, I mean Settings, under Camera Light, Spotlight, NightMode switch between Auto and Off.
-
@dirk_402008813515005 Can you paste the response received when you send the command?
-
@joseph_1979
I used the command below as you described....
curl -s -k -X POST -H "Content-Type : application/json" -d "[{\"cmd\":\"SetWhiteLed\",\"param\": {\"WhiteLed\": {\"bright\":100,\"channel\":0,\"mode\":1,\"state\": 1}}}]" "https://192.168.178.25/cgi-bin/api.cgi?cmd=SetWhiteLed&user=admin&password=xxx"
[
{
"cmd" : "SetWhiteLed",
"code" : 0,
"value" : {
"rspCode" : 200
}
}
]
I played a little bit arround, and when I use "mode 0 or 1" instead of "state 0 or 1" it works fine and switch the Night-Mode on and off as I want.
Many thanks for that hint Joseph !!! -
@dirk_402008813515005 I knew you were doing something wrong that's why I asked. Now enjoy switching on/off
200 means OK like SIP 200 OK.
Duo Wifi change Spotlight Night Mode via API
All Categories