Reolink ip camera Enable Motion Alarm do not work

Hi,

Item Enable Motion Alarm is not working for me when in change it from on to off or from of to on. No effect on camera setting.

My setup is Openhab 4.0.1 on ubuntu 22.04.02. Camera: Reolink Duo 2 WiFi. I’m using ipcamera binding with Reolink API.

Below is trace log when I switched Enable Motion Alarm form off to on.

21:25:49.305 [INFO ] [openhab.event.ItemCommandEvent ] - Item ‘Reolink_Kamera_Ogrod_Enable_Motion_Alarm’ received command ON
21:25:49.307 [INFO ] [openhab.event.ItemStatePredictedEvent] - Item ‘Reolink_Kamera_Ogrod_Enable_Motion_Alarm’ predicted to become ON
21:25:49.309 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item ‘Reolink_Kamera_Ogrod_Enable_Motion_Alarm’ changed from OFF to ON
21:25:49.366 [TRACE] [mera.internal.handler.IpCameraHandler] - Sending camera: POST: http://192.168.1.94:80/api.cgi?cmd=SetMdAlarm&token=null
21:25:49.370 [WARN ] [o.netty.channel.ChannelOutboundBuffer] - Failed to mark a promise as success because it has failed already: DefaultChannelPromise@13c1f23b(failure: io.netty.handler.codec.EncoderException: io.netty.util.IllegalReferenceCountException: refCnt: 0, decrement: 1), unnotified cause:
io.netty.handler.codec.EncoderException: io.netty.util.IllegalReferenceCountException: refCnt: 0, decrement: 1
at io.netty.handler.codec.http.HttpObjectEncoder.write(HttpObjectEncoder.java:108) ~[?:?]
at io.netty.channel.CombinedChannelDuplexHandler.write(CombinedChannelDuplexHandler.java:346) ~[?:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeWrite0(AbstractChannelHandlerContext.java:879) ~[?:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeWriteAndFlush(AbstractChannelHandlerContext.java:940) ~[?:?]
at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:966) ~[?:?]
at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:934) ~[?:?]
at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:984) ~[?:?]
at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:1025) ~[?:?]
at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:306) ~[?:?]
at org.openhab.binding.ipcamera.internal.handler.IpCameraHandler$2.operationComplete(IpCameraHandler.java:664) ~[?:?]
at org.openhab.binding.ipcamera.internal.handler.IpCameraHandler$2.operationComplete(IpCameraHandler.java:1) ~[?:?]
at io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:590) ~[?:?]
at io.netty.util.concurrent.DefaultPromise.notifyListeners0(DefaultPromise.java:583) ~[?:?]
at io.netty.util.concurrent.DefaultPromise.notifyListenersNow(DefaultPromise.java:559) ~[?:?]
at io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:492) ~[?:?]
at io.netty.util.concurrent.DefaultPromise.setValue0(DefaultPromise.java:636) ~[?:?]
at io.netty.util.concurrent.DefaultPromise.setSuccess0(DefaultPromise.java:625) ~[?:?]
at io.netty.util.concurrent.DefaultPromise.trySuccess(DefaultPromise.java:105) ~[?:?]
at io.netty.channel.DefaultChannelPromise.trySuccess(DefaultChannelPromise.java:84) ~[?:?]
at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.fulfillConnectPromise(AbstractNioChannel.java:300) ~[?:?]
at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:335) ~[?:?]
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:776) ~[?:?]
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:724) ~[?:?]
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:650) ~[?:?]
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:562) ~[?:?]
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997) ~[?:?]
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) ~[?:?]
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) ~[?:?]
at java.lang.Thread.run(Thread.java:833) ~[?:?]
Caused by: io.netty.util.IllegalReferenceCountException: refCnt: 0, decrement: 1
at io.netty.util.internal.ReferenceCountUpdater.toLiveRealRefCnt(ReferenceCountUpdater.java:83) ~[?:?]
at io.netty.util.internal.ReferenceCountUpdater.release(ReferenceCountUpdater.java:148) ~[?:?]
at io.netty.buffer.AbstractReferenceCountedByteBuf.release(AbstractReferenceCountedByteBuf.java:101) ~[?:?]
at io.netty.handler.codec.http.DefaultFullHttpRequest.release(DefaultFullHttpRequest.java:103) ~[?:?]
at io.netty.handler.codec.http.HttpObjectEncoder.encodeFullHttpMessage(HttpObjectEncoder.java:327) ~[?:?]
at io.netty.handler.codec.http.HttpObjectEncoder.encode(HttpObjectEncoder.java:162) ~[?:?]
at io.netty.handler.codec.http.HttpClientCodec$Encoder.encode(HttpClientCodec.java:203) ~[?:?]
at io.netty.handler.codec.http.HttpObjectEncoder.write(HttpObjectEncoder.java:97) ~[?:?]
… 28 more

Sorry only just seen this. Can you try upgrading to the latest binding? you can stay on openHAB 4.0.1 if you wish and just upgrade the binding to the latest version from here:

http://pcmus.com/openhab/IpCameraBinding/

Just drop the unzipped JAR into the addons folder and uninstall the merged binding. Installing the telstick binding will take care of the missing dependancies until you go back to using a newer openhab and the merged binding.