mirror of
https://github.com/danieldemus/openhab-addons
synced 2026-07-31 13:34:22 +02:00
[ipcamera] Fix bugs in Reolink handler (#18338)
* Fix bugs in Reolink handler Signed-off-by: Simmon Yau <simmonyau@gmail.com>
This commit is contained in:
+3
-1
@@ -323,8 +323,9 @@ public class ReolinkHandler extends ChannelDuplexHandler {
|
||||
}
|
||||
break;
|
||||
default:
|
||||
// ignore responses from all Setxx commands
|
||||
if (!cutDownURL.startsWith("/cgi-bin/api.cgi?cmd=Set")
|
||||
|| !cutDownURL.startsWith("/api.cgi?cmd=Set")) {// ignore responses from all Setxx commands
|
||||
&& !cutDownURL.startsWith("/api.cgi?cmd=Set")) {
|
||||
ipCameraHandler.logger.warn(
|
||||
"URL {} is not handled currently by the binding, please report this message",
|
||||
cutDownURL);
|
||||
@@ -515,6 +516,7 @@ public class ReolinkHandler extends ChannelDuplexHandler {
|
||||
} else {
|
||||
ipCameraHandler.logger.warn("Unsupported command sent to enableLED channel");
|
||||
}
|
||||
break;
|
||||
case CHANNEL_ENABLE_MOTION_ALARM:
|
||||
if (OnOffType.ON.equals(command)) {
|
||||
ipCameraHandler.sendHttpPOST("/api.cgi?cmd=SetMdAlarm" + ipCameraHandler.reolinkAuth);
|
||||
|
||||
Reference in New Issue
Block a user