IpCamera: New IP Camera Binding

Working is different to it appearing. Does the ONVIF device manager actually move your camera with ABSOLUTE move selected? That program does not share any code with my binding, so if it fails to move in that program then it will confirm your issue is with your camera. In this case your only option is to upgrade the old hacked firmware to a newer hacked version, or to use presets instead if they work.

The same goes for …

Does this mean it actually moves the camera? My camera can be moved with the presets and the home button.

When you connect the camera directly to OFDM and select absolute move everything works.

In the latest version of binding, when you connect the camera directly, it does not even show a picture.
When you connect binding to nvr picture from the camera is, alarm works.
If you look at the last log sent there from 15:40:56 there are some errors.

2018-06-14 15:40:56.678 [ERROR] [ome.core.thing.link.ThingLinkManager] - Exception occurred while informing handler: null
java.lang.NullPointerException: null
	at org.openhab.binding.ipcamera.handler.IpCameraHandler.getAbsoluteZoom(IpCameraHandler.java:1194) ~[?:?]
	at org.openhab.binding.ipcamera.handler.IpCameraHandler.handleCommand(IpCameraHandler.java:989) ~[?:?]
	at org.eclipse.smarthome.core.thing.binding.BaseThingHandler.channelLinked(BaseThingHandler.java:278) ~[?:?]
	at org.eclipse.smarthome.core.thing.link.ThingLinkManager.lambda$0(ThingLinkManager.java:300) ~[?:?]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]
	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
	at java.lang.Thread.run(Thread.java:748) [?:?]
2018-06-14 15:40:56.676 [ERROR] [ome.core.thing.link.ThingLinkManager] - Exception occurred while informing handler: null
java.lang.NullPointerException: null
	at org.openhab.binding.ipcamera.handler.IpCameraHandler.getAbsoluteTilt(IpCameraHandler.java:1182) ~[?:?]
	at org.openhab.binding.ipcamera.handler.IpCameraHandler.handleCommand(IpCameraHandler.java:986) ~[?:?]
	at org.eclipse.smarthome.core.thing.binding.BaseThingHandler.channelLinked(BaseThingHandler.java:278) ~[?:?]
	at org.eclipse.smarthome.core.thing.link.ThingLinkManager.lambda$0(ThingLinkManager.java:300) ~[?:?]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]
	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
	at java.lang.Thread.run(Thread.java:748) [?:?]
2018-06-14 15:40:56.745 [DEBUG] [ipcamera.internal.MyNettyAuthHandler] - 401: Normal for DIGEST authorization. 	URL:/ISAPI/Streaming/channels/101/picture
2018-06-14 15:40:56.702 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - ++++ Handler 2 created. 1 channels. 	URL:/ISAPI/System/Video/inputs/channels/101/motionDetection
2018-06-14 15:40:56.675 [ERROR] [ome.core.thing.link.ThingLinkManager] - Exception occurred while informing handler: null
java.lang.NullPointerException: null
	at org.openhab.binding.ipcamera.handler.IpCameraHandler.getAbsolutePan(IpCameraHandler.java:1170) ~[?:?]
	at org.openhab.binding.ipcamera.handler.IpCameraHandler.handleCommand(IpCameraHandler.java:983) ~[?:?]
	at org.eclipse.smarthome.core.thing.binding.BaseThingHandler.channelLinked(BaseThingHandler.java:278) ~[?:?]
	at org.eclipse.smarthome.core.thing.link.ThingLinkManager.lambda$0(ThingLinkManager.java:300) ~[?:?]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]
	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
	at java.lang.Thread.run(Thread.java:748) [?:?]
2018-06-14 15:40:56.785 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Have  opened  a  brand NEW channel:1 	URL:/ISAPI/System/Video/inputs/channels/101/motionDetection
2018-06-14 15:40:56.789 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Resending using a fresh DIGEST 	URL:/ISAPI/Streaming/channels/101/picture
2018-06-14 15:40:56.798 [DEBUG] [ipcamera.internal.MyNettyAuthHandler] - 401: Normal for DIGEST authorization. 	URL:/ISAPI/System/Video/inputs/channels/101/motionDetection
2018-06-14 15:40:56.803 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Sending camera at IP:172.18.222.4 the 	URL:/ISAPI/Streaming/channels/101/picture
2018-06-14 15:40:56.804 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Resending using a fresh DIGEST 	URL:/ISAPI/System/Video/inputs/channels/101/motionDetection
2018-06-14 15:40:56.812 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Sending camera at IP:172.18.222.4 the 	URL:/ISAPI/System/Video/inputs/channels/101/motionDetection
2018-06-14 15:40:56.814 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - ****Using the already open channel:0 	URL:/ISAPI/Streaming/channels/101/picture
2018-06-14 15:40:56.825 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - ****Using the already open channel:1 	URL:/ISAPI/System/Video/inputs/channels/101/motionDetection
2018-06-14 15:40:56.849 [DEBUG] [ipcamera.internal.MyNettyAuthHandler] - 401: Normal for DIGEST authorization. 	URL:/ISAPI/System/Video/inputs/channels/101/motionDetection
2018-06-14 15:40:56.850 [DEBUG] [ipcamera.internal.MyNettyAuthHandler] - 401: Normal for DIGEST authorization. 	URL:/ISAPI/Streaming/channels/101/picture
2018-06-14 15:40:56.854 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Resending using a fresh DIGEST 	URL:/ISAPI/System/Video/inputs/channels/101/motionDetection
2018-06-14 15:40:56.862 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Sending camera at IP:172.18.222.4 the 	URL:/ISAPI/System/Video/inputs/channels/101/motionDetection
2018-06-14 15:40:56.870 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Resending using a fresh DIGEST 	URL:/ISAPI/Streaming/channels/101/picture
2018-06-14 15:40:56.874 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - ****Using the already open channel:1 	URL:/ISAPI/System/Video/inputs/channels/101/motionDetection
2018-06-14 15:40:56.876 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Sending camera at IP:172.18.222.4 the 	URL:/ISAPI/Streaming/channels/101/picture
2018-06-14 15:40:56.885 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - ****Using the already open channel:0 	URL:/ISAPI/Streaming/channels/101/picture
2018-06-14 15:40:56.886 [DEBUG] [ipcamera.internal.MyNettyAuthHandler] - 401: Normal for DIGEST authorization. 	URL:/ISAPI/System/Video/inputs/channels/101/motionDetection
2018-06-14 15:40:56.893 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Resending using a fresh DIGEST 	URL:/ISAPI/System/Video/inputs/channels/101/motionDetection
2018-06-14 15:40:56.895 [DEBUG] [ipcamera.internal.MyNettyAuthHandler] - 401: Normal for DIGEST authorization. 	URL:/ISAPI/Streaming/channels/101/picture
2018-06-14 15:40:56.897 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Sending camera at IP:172.18.222.4 the 	URL:/ISAPI/System/Video/inputs/channels/101/motionDetection
2018-06-14 15:40:56.900 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - ****Using the already open channel:1 	URL:/ISAPI/System/Video/inputs/channels/101/motionDetection
2018-06-14 15:40:56.901 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Resending using a fresh DIGEST 	URL:/ISAPI/Streaming/channels/101/picture
2018-06-14 15:40:56.908 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Sending camera at IP:172.18.222.4 the 	URL:/ISAPI/Streaming/channels/101/picture
2018-06-14 15:40:56.911 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - ****Using the already open channel:0 	URL:/ISAPI/Streaming/channels/101/picture
2018-06-14 15:40:56.913 [DEBUG] [ipcamera.internal.MyNettyAuthHandler] - 401: Normal for DIGEST authorization. 	URL:/ISAPI/System/Video/inputs/channels/101/motionDetection
2018-06-14 15:40:56.917 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Resending using a fresh DIGEST 	URL:/ISAPI/System/Video/inputs/channels/101/motionDetection
2018-06-14 15:40:56.920 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Sending camera at IP:172.18.222.4 the 	URL:/ISAPI/System/Video/inputs/channels/101/motionDetection
2018-06-14 15:40:56.921 [DEBUG] [ipcamera.internal.MyNettyAuthHandler] - 401: Normal for DIGEST authorization. 	URL:/ISAPI/Streaming/channels/101/picture
2018-06-14 15:40:56.927 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Resending using a fresh DIGEST 	URL:/ISAPI/Streaming/channels/101/picture
2018-06-14 15:40:56.929 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Sending camera at IP:172.18.222.4 the 	URL:/ISAPI/Streaming/channels/101/picture
2018-06-14 15:40:56.929 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - ****Using the already open channel:1 	URL:/ISAPI/System/Video/inputs/channels/101/motionDetection
2018-06-14 15:40:56.936 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - ****Using the already open channel:0 	URL:/ISAPI/Streaming/channels/101/picture
2018-06-14 15:40:56.941 [DEBUG] [ipcamera.internal.MyNettyAuthHandler] - 401: Normal for DIGEST authorization. 	URL:/ISAPI/System/Video/inputs/channels/101/motionDetection
2018-06-14 15:40:56.948 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Resending using a fresh DIGEST 	URL:/ISAPI/System/Video/inputs/channels/101/motionDetection
2018-06-14 15:40:56.952 [DEBUG] [ipcamera.internal.MyNettyAuthHandler] - 401: Normal for DIGEST authorization. 	URL:/ISAPI/Streaming/channels/101/picture
2018-06-14 15:40:56.950 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Sending camera at IP:172.18.222.4 the 	URL:/ISAPI/System/Video/inputs/channels/101/motionDetection
2018-06-14 15:40:56.957 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Resending using a fresh DIGEST 	URL:/ISAPI/Streaming/channels/101/picture
2018-06-14 15:40:56.961 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Sending camera at IP:172.18.222.4 the 	URL:/ISAPI/Streaming/channels/101/picture
2018-06-14 15:40:56.963 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - ****Using the already open channel:0 	URL:/ISAPI/Streaming/channels/101/picture
2018-06-14 15:40:56.958 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - ****Using the already open channel:1 	URL:/ISAPI/System/Video/inputs/channels/101/motionDetection
2018-06-14 15:40:56.975 [DEBUG] [ipcamera.internal.MyNettyAuthHandler] - 401: Normal for DIGEST authorization. 	URL:/ISAPI/Streaming/channels/101/picture
2018-06-14 15:40:56.976 [DEBUG] [ipcamera.internal.MyNettyAuthHandler] - 401: Normal for DIGEST authorization. 	URL:/ISAPI/System/Video/inputs/channels/101/motionDetection
2018-06-14 15:40:56.981 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Resending using a fresh DIGEST 	URL:/ISAPI/System/Video/inputs/channels/101/motionDetection
2018-06-14 15:40:56.982 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Resending using a fresh DIGEST 	URL:/ISAPI/Streaming/channels/101/picture
2018-06-14 15:40:56.985 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Sending camera at IP:172.18.222.4 the 	URL:/ISAPI/System/Video/inputs/channels/101/motionDetection
2018-06-14 15:40:56.986 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Sending camera at IP:172.18.222.4 the 	URL:/ISAPI/Streaming/channels/101/picture
2018-06-14 15:40:56.989 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - ****Using the already open channel:1 	URL:/ISAPI/System/Video/inputs/channels/101/motionDetection
2018-06-14 15:40:56.995 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - ****Using the already open channel:0 	URL:/ISAPI/Streaming/channels/101/picture
2018-06-14 15:40:57.001 [DEBUG] [ipcamera.internal.MyNettyAuthHandler] - 401: Normal for DIGEST authorization. 	URL:/ISAPI/System/Video/inputs/channels/101/motionDetection
2018-06-14 15:40:57.004 [DEBUG] [ipcamera.internal.MyNettyAuthHandler] - 401: Normal for DIGEST authorization. 	URL:/ISAPI/Streaming/channels/101/picture
2018-06-14 15:40:57.004 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Resending using a fresh DIGEST 	URL:/ISAPI/System/Video/inputs/channels/101/motionDetection
2018-06-14 15:40:57.009 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Resending using a fresh DIGEST 	URL:/ISAPI/Streaming/channels/101/picture
2018-06-14 15:40:57.012 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Sending camera at IP:172.18.222.4 the 	URL:/ISAPI/System/Video/inputs/channels/101/motionDetection
2018-06-14 15:40:57.012 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Sending camera at IP:172.18.222.4 the 	URL:/ISAPI/Streaming/channels/101/picture
2018-06-14 15:40:57.015 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - ****Using the already open channel:1 	URL:/ISAPI/System/Video/inputs/channels/101/motionDetection
2018-06-14 15:40:57.018 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - ****Using the already open channel:0 	URL:/ISAPI/Streaming/channels/101/picture
2018-06-14 15:40:57.030 [DEBUG] [ipcamera.internal.MyNettyAuthHandler] - 401: Normal for DIGEST authorization. 	URL:/ISAPI/System/Video/inputs/channels/101/motionDetection
2018-06-14 15:40:57.033 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Resending using a fresh DIGEST 	URL:/ISAPI/System/Video/inputs/channels/101/motionDetection
2018-06-14 15:40:57.036 [DEBUG] [ipcamera.internal.MyNettyAuthHandler] - 401: Normal for DIGEST authorization. 	URL:/ISAPI/Streaming/channels/101/picture
2018-06-14 15:40:57.036 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Sending camera at IP:172.18.222.4 the 	URL:/ISAPI/System/Video/inputs/channels/101/motionDetection
2018-06-14 15:40:57.041 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Resending using a fresh DIGEST 	URL:/ISAPI/Streaming/channels/101/picture
2018-06-14 15:40:57.042 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - ****Using the already open channel:1 	URL:/ISAPI/System/Video/inputs/channels/101/motionDetection
2018-06-14 15:40:57.045 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Sending camera at IP:172.18.222.4 the 	URL:/ISAPI/Streaming/channels/101/picture
2018-06-14 15:40:57.049 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - ****Using the already open channel:0 	URL:/ISAPI/Streaming/channels/101/picture
2018-06-14 15:40:57.053 [DEBUG] [ipcamera.internal.MyNettyAuthHandler] - 401: Normal for DIGEST authorization. 	URL:/ISAPI/System/Video/inputs/channels/101/motionDetection
2018-06-14 15:40:57.057 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Resending using a fresh DIGEST 	URL:/ISAPI/System/Video/inputs/channels/101/motionDetection
2018-06-14 15:40:57.069 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Sending camera at IP:172.18.222.4 the 	URL:/ISAPI/System/Video/inputs/channels/101/motionDetection
2018-06-14 15:40:57.072 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - ****Using the already open channel:1 	URL:/ISAPI/System/Video/inputs/channels/101/motionDetection
2018-06-14 15:40:57.077 [DEBUG] [ipcamera.internal.MyNettyAuthHandler] - 401: Normal for DIGEST authorization. 	URL:/ISAPI/Streaming/channels/101/picture
2018-06-14 15:40:57.085 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Resending using a fresh DIGEST 	URL:/ISAPI/Streaming/channels/101/picture
2018-06-14 15:40:57.088 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Sending camera at IP:172.18.222.4 the 	URL:/ISAPI/Streaming/channels/101/picture
2018-06-14 15:40:57.090 [DEBUG] [ipcamera.internal.MyNettyAuthHandler] - 401: Normal for DIGEST authorization. 	URL:/ISAPI/System/Video/inputs/channels/101/motionDetection
2018-06-14 15:40:57.092 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - ****Using the already open channel:0 	URL:/ISAPI/Streaming/channels/101/picture
2018-06-14 15:40:57.098 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Resending using a fresh DIGEST 	URL:/ISAPI/System/Video/inputs/channels/101/motionDetection
2018-06-14 15:40:57.102 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Sending camera at IP:172.18.222.4 the 	URL:/ISAPI/System/Video/inputs/channels/101/motionDetection
2018-06-14 15:40:57.104 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - ****Using the already open channel:1 	URL:/ISAPI/System/Video/inputs/channels/101/motionDetection
2018-06-14 15:40:57.114 [DEBUG] [ipcamera.internal.MyNettyAuthHandler] - 401: Normal for DIGEST authorization. 	URL:/ISAPI/Streaming/channels/101/picture
2018-06-14 15:40:57.118 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Resending using a fresh DIGEST 	URL:/ISAPI/Streaming/channels/101/picture
2018-06-14 15:40:57.119 [DEBUG] [ipcamera.internal.MyNettyAuthHandler] - 401: Normal for DIGEST authorization. 	URL:/ISAPI/System/Video/inputs/channels/101/motionDetection
2018-06-14 15:40:57.122 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Sending camera at IP:172.18.222.4 the 	URL:/ISAPI/Streaming/channels/101/picture
2018-06-14 15:40:57.127 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Resending using a fresh DIGEST 	URL:/ISAPI/System/Video/inputs/channels/101/motionDetection
2018-06-14 15:40:57.130 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Sending camera at IP:172.18.222.4 the 	URL:/ISAPI/System/Video/inputs/channels/101/motionDetection
2018-06-14 15:40:57.134 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - ****Using the already open channel:1 	URL:/ISAPI/System/Video/inputs/channels/101/motionDetection
2018-06-14 15:40:57.130 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - ****Using the already open channel:0 	URL:/ISAPI/Streaming/channels/101/picture
2018-06-14 15:40:57.152 [DEBUG] [ipcamera.internal.MyNettyAuthHandler] - 401: Normal for DIGEST authorization. 	URL:/ISAPI/System/Video/inputs/channels/101/motionDetection
2018-06-14 15:40:57.156 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Resending using a fresh DIGEST 	URL:/ISAPI/System/Video/inputs/channels/101/motionDetection
2018-06-14 15:40:57.155 [DEBUG] [ipcamera.internal.MyNettyAuthHandler] - 401: Normal for DIGEST authorization. 	URL:/ISAPI/Streaming/channels/101/picture
2018-06-14 15:40:57.159 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Sending camera at IP:172.18.222.4 the 	URL:/ISAPI/System/Video/inputs/channels/101/motionDetection
2018-06-14 15:40:57.162 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - ****Using the already open channel:1 	URL:/ISAPI/System/Video/inputs/channels/101/motionDetection
2018-06-14 15:40:57.166 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Resending using a fresh DIGEST 	URL:/ISAPI/Streaming/channels/101/picture
2018-06-14 15:40:57.168 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Sending camera at IP:172.18.222.4 the 	URL:/ISAPI/Streaming/channels/101/picture
2018-06-14 15:40:57.170 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - ****Using the already open channel:0 	URL:/ISAPI/Streaming/channels/101/picture
2018-06-14 15:40:57.171 [DEBUG] [ipcamera.internal.MyNettyAuthHandler] - 401: Normal for DIGEST authorization. 	URL:/ISAPI/System/Video/inputs/channels/101/motionDetection
2018-06-14 15:40:57.175 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Resending using a fresh DIGEST 	URL:/ISAPI/System/Video/inputs/channels/101/motionDetection
2018-06-14 15:40:57.177 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Sending camera at IP:172.18.222.4 the 	URL:/ISAPI/System/Video/inputs/channels/101/motionDetection
2018-06-14 15:40:57.179 [DEBUG] [ipcamera.internal.MyNettyAuthHandler] - 401: Normal for DIGEST authorization. 	URL:/ISAPI/Streaming/channels/101/picture
2018-06-14 15:40:57.180 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - ****Using the already open channel:1 	URL:/ISAPI/System/Video/inputs/channels/101/motionDetection
2018-06-14 15:40:57.186 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Resending using a fresh DIGEST 	URL:/ISAPI/Streaming/channels/101/picture
2018-06-14 15:40:57.192 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Sending camera at IP:172.18.222.4 the 	URL:/ISAPI/Streaming/channels/101/picture
2018-06-14 15:40:57.195 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - ****Using the already open channel:0 	URL:/ISAPI/Streaming/channels/101/picture
2018-06-14 15:40:57.194 [DEBUG] [ipcamera.internal.MyNettyAuthHandler] - 401: Normal for DIGEST authorization. 	URL:/ISAPI/System/Video/inputs/channels/101/motionDetection
2018-06-14 15:40:57.201 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Resending using a fresh DIGEST 	URL:/ISAPI/System/Video/inputs/channels/101/motionDetection
2018-06-14 15:40:57.204 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Sending camera at IP:172.18.222.4 the 	URL:/ISAPI/System/Video/inputs/channels/101/motionDetection
2018-06-14 15:40:57.206 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - ****Using the already open channel:1 	URL:/ISAPI/System/Video/inputs/channels/101/motionDetection
2018-06-14 15:40:57.212 [DEBUG] [ipcamera.internal.MyNettyAuthHandler] - 401: Normal for DIGEST authorization. 	URL:/ISAPI/Streaming/channels/101/picture
2018-06-14 15:40:57.215 [DEBUG] [ipcamera.internal.MyNettyAuthHandler] - 401: Normal for DIGEST authorization. 	URL:/ISAPI/System/Video/inputs/channels/101/motionDetection
2018-06-14 15:40:57.215 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Resending using a fresh DIGEST 	URL:/ISAPI/Streaming/channels/101/picture
2018-06-14 15:40:57.219 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Sending camera at IP:172.18.222.4 the 	URL:/ISAPI/Streaming/channels/101/picture
2018-06-14 15:40:57.224 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - ****Using the already open channel:0 	URL:/ISAPI/Streaming/channels/101/picture
2018-06-14 15:40:57.219 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Resending using a fresh DIGEST 	URL:/ISAPI/System/Video/inputs/channels/101/motionDetection
2018-06-14 15:40:57.229 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Sending camera at IP:172.18.222.4 the 	URL:/ISAPI/System/Video/inputs/channels/101/motionDetection
2018-06-14 15:40:57.232 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - ****Using the already open channel:1 	URL:/ISAPI/System/Video/inputs/channels/101/motionDetection
2018-06-14 15:40:57.235 [DEBUG] [ipcamera.internal.MyNettyAuthHandler] - 401: Normal for DIGEST authorization. 	URL:/ISAPI/Streaming/channels/101/picture
2018-06-14 15:40:57.239 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Resending using a fresh DIGEST 	URL:/ISAPI/Streaming/channels/101/picture
2018-06-14 15:40:57.242 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Sending camera at IP:172.18.222.4 the 	URL:/ISAPI/Streaming/channels/101/picture
2018-06-14 15:40:57.243 [DEBUG] [ipcamera.internal.MyNettyAuthHandler] - 401: Normal for DIGEST authorization. 	URL:/ISAPI/System/Video/inputs/channels/101/motionDetection
2018-06-14 15:40:57.245 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - ****Using the already open channel:0 	URL:/ISAPI/Streaming/channels/101/picture
2018-06-14 15:40:57.248 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Resending using a fresh DIGEST 	URL:/ISAPI/System/Video/inputs/channels/101/motionDetection
2018-06-14 15:40:57.250 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Sending camera at IP:172.18.222.4 the 	URL:/ISAPI/System/Video/inputs/channels/101/motionDetection
2018-06-14 15:40:57.253 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - ****Using the already open channel:1 	URL:/ISAPI/System/Video/inputs/channels/101/motionDetection
2018-06-14 15:40:57.256 [DEBUG] [ipcamera.internal.MyNettyAuthHandler] - 401: Normal for DIGEST authorization. 	URL:/ISAPI/Streaming/channels/101/picture
2018-06-14 15:40:57.259 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Resending using a fresh DIGEST 	URL:/ISAPI/Streaming/channels/101/picture
2018-06-14 15:40:57.262 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Sending camera at IP:172.18.222.4 the 	URL:/ISAPI/Streaming/channels/101/picture
2018-06-14 15:40:57.265 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - ****Using the already open channel:0 	URL:/ISAPI/Streaming/channels/101/picture
2018-06-14 15:40:57.295 [DEBUG] [ipcamera.internal.MyNettyAuthHandler] - 401: Normal for DIGEST authorization. 	URL:/ISAPI/System/Video/inputs/channels/101/motionDetection
2018-06-14 15:40:57.293 [DEBUG] [ipcamera.internal.MyNettyAuthHandler] - 401: Normal for DIGEST authorization. 	URL:/ISAPI/Streaming/channels/101/picture
2018-06-14 15:40:57.300 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Resending using a fresh DIGEST 	URL:/ISAPI/System/Video/inputs/channels/101/motionDetection
2018-06-14 15:40:57.302 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Resending using a fresh DIGEST 	URL:/ISAPI/Streaming/channels/101/picture
2018-06-14 15:40:57.306 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Sending camera at IP:172.18.222.4 the 	URL:/ISAPI/System/Video/inputs/channels/101/motionDetection
2018-06-14 15:40:57.308 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Sending camera at IP:172.18.222.4 the 	URL:/ISAPI/Streaming/channels/101/picture
2018-06-14 15:40:57.313 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - ****Using the already open channel:1 	URL:/ISAPI/System/Video/inputs/channels/101/motionDetection
2018-06-14 15:40:57.316 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - ****Using the already open channel:0 	URL:/ISAPI/Streaming/channels/101/picture
2018-06-14 15:40:57.330 [DEBUG] [ipcamera.internal.MyNettyAuthHandler] - 401: Normal for DIGEST authorization. 	URL:/ISAPI/System/Video/inputs/channels/101/motionDetection
2018-06-14 15:40:57.332 [DEBUG] [ipcamera.internal.MyNettyAuthHandler] - 401: Normal for DIGEST authorization. 	URL:/ISAPI/Streaming/channels/101/picture
2018-06-14 15:40:57.340 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Resending using a fresh DIGEST 	URL:/ISAPI/System/Video/inputs/channels/101/motionDetection
2018-06-14 15:40:57.345 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Resending using a fresh DIGEST 	URL:/ISAPI/Streaming/channels/101/picture
2018-06-14 15:40:57.348 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Sending camera at IP:172.18.222.4 the 	URL:/ISAPI/System/Video/inputs/channels/101/motionDetection
2018-06-14 15:40:57.356 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - ****Using the already open channel:1 	URL:/ISAPI/System/Video/inputs/channels/101/motionDetection
2018-06-14 15:40:57.350 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Sending camera at IP:172.18.222.4 the 	URL:/ISAPI/Streaming/channels/101/picture

Tried version binding until 31.05. When connected directly to the camera, the pictures could not be seen.
With NVR picture show all.

I don’t know what I did, but the picture came out. :slight_smile:

Understood. The picture can not be obtained using the username and password for onvif.

It turns out that the binding hik does not work with onvif :frowning:

@matt1 First off, awesome work. I really appreciate it.

I am having troubles getting triggers when motion is detected with my foscam model FI9821P

I have already connected my camera and can successfully enable/disable the motion alarm, but when dancing in front of my camera I get no state change within OH…

my logs also seem to go dead as far as logging ip cam issues…

I did snag this log though::

2018-06-15 20:56:56.322 [me.event.ThingUpdatedEvent] - Thing ‘ipcamera:FOSCAM:3d17f825’ has been updated.

2018-06-15 20:57:12.571 [INFO ] [ing.ipcamera.handler.IpCameraHandler] - Camera is reporting that it supports PTZ control with Absolute movement via ONVIF

2018-06-15 20:57:40.836 [ERROR] [ing.saaj.soap.ver1_2.SOAPPart1_2Impl] - SAAJ0415: InputStream does not represent a valid SOAP 1.2 Message

Try this link in any browser and let me know what the camera sends as a reply when you have movement.

http://IPaddress/cgi-bin/CGIProxy.fcgi?cmd=getDevState&usr=username&pwd=password

Yes that is intentional, the log will not get filled up with useless lines when things are going well. If you want to see what is happening see the first post of this thread on how to enable TRACE logging. You will then see what is sent to the camera and what the camera replies with.

This error occurs when the camera does not support a ONVIF method, the TRACE log will tell you what the binding was sending right before this error happened. This will not be connected to not getting alarm alerts. Try updating the firmware for your camera to the latest.

New build 16-06-2018 has these changes:

  • HIKVISION can now enable and disable the motion alarm. @toroid you were waiting for this.
  • Detect and disable PTZ when it fails half way through the connection setup.
  • More changes to the way logs are done when PTZ is setting up the connection.
  • Minor bug fixes.
  • Removed tracking of Handler numbers.
1 Like

I use the most recent build with a InstarHD IP Cam.
The issue I see is that the Motion alarm keeps being toggled on/off automatically.

I haven’t used it actually but in the log I see:

2018-06-16 13:55:11.328 [vent.ItemStateChangedEvent] - CamKeller_EnableDisableTheMotionAlarm changed from ON to OFF
2018-06-16 13:55:11.355 [vent.ItemStateChangedEvent] - CamKeller_EnableDisableTheMotionAlarm changed from OFF to ON
2018-06-16 13:55:11.636 [vent.ItemStateChangedEvent] - cam_keller_image changed from raw type (image/jpeg): 54979 bytes to raw type (image/jpeg): 55086 bytes
2018-06-16 13:55:16.345 [vent.ItemStateChangedEvent] - CamKeller_EnableDisableTheMotionAlarm changed from ON to OFF
2018-06-16 13:55:16.372 [vent.ItemStateChangedEvent] - CamKeller_EnableDisableTheMotionAlarm changed from OFF to ON
2018-06-16 13:55:16.562 [vent.ItemStateChangedEvent] - cam_keller_image changed from raw type (image/jpeg): 55086 bytes to raw type (image/jpeg): 55034 bytes
2018-06-16 13:55:21.335 [vent.ItemStateChangedEvent] - CamKeller_EnableDisableTheMotionAlarm changed from ON to OFF
2018-06-16 13:55:21.370 [vent.ItemStateChangedEvent] - CamKeller_EnableDisableTheMotionAlarm changed from OFF to ON
2018-06-16 13:55:21.602 [vent.ItemStateChangedEvent] - cam_keller_image changed from raw type (image/jpeg): 55034 bytes to raw type (image/jpeg): 55031 bytes
2018-06-16 13:55:26.375 [vent.ItemStateChangedEvent] - CamKeller_EnableDisableTheMotionAlarm changed from ON to OFF
2018-06-16 13:55:26.410 [vent.ItemStateChangedEvent] - CamKeller_EnableDisableTheMotionAlarm changed from OFF to ON
2018-06-16 13:55:26.565 [vent.ItemStateChangedEvent] - cam_keller_image changed from raw type (image/jpeg): 55031 bytes to raw type (image/jpeg): 54994 bytes

And this is not done by any rule.

Apart from that: Cheers mate, nice work!

Should be fixed now, have uploaded new build for you to try.

Thanks, let me know if all works fine now as no one with Instar cameras has posted yet.

I have motion detection enabled on my camera and continually was refreshing the link you wanted me to view in my browser. Even when moving in front of the camera the response did not change. Here is what is continued to show

screenShot

Confirmed the camera is running the latest firmware version

So far the fix seems to do the trick. So far including the image into the sitemap works nicely. Soon I’ll try and add the motion alarm to see if this will fire an event I can use to scare off unwanted visitors.

@bernd_boehm
See this link regarding two ways to get the alarm checking working, interested in hearing your thoughts.

@chaderick9
You have confirmed this is not a bug in the binding, if it never changes in a browser this means it may be a bug in the cameras firmware. Report it to support for your camera. Do some google searches on your model camera to see if you can find more info on it.

I would always opt for speed vs. simplicity. In my personal case it is paramount to have the alarm switched of very timely to prevent unwanted alarm events in case I approach the camera from inside. Here my reed sensor in the outside door tells the cam to switch off if I open it from the inside vs. someone approached that door from the outside.

New build 18-06-2018 has these changes:

  • Dahua now hopefully keeps the alarmstream open for less overheads and more speed.
  • Bugs fixes for all camera brands.
  • Dahua may now have line crossed alarm working.
  • New channels and abilities for HIKVISION
  • Alpha test buttons removed.
  • Log changes.

Hello, I’m having a problem with showing the feed of my HIKVISION camera.
Here is my configuration.
.items

String ipcamera_HIKVISION_f49b5647_imageurl { channel="ipcamera:HIKVISION:f49b5647:imageurl" }

.sitemap

Image url="http://google.com/leaveLinkAsThis" item=ipcamera_HIKVISION_f49b5647_imageurl refresh=5000

Things Configuration

Got it working, but now it constantly requires for a password. I enter the password, it works for 30seconds and then it starts to spam the password requirement.

See first post for how to enable onvif and the api, HIKVISION has them disabled by default.

Matt, I realized something…

The binding through OH ( Enabled/Disable the motion alarm ) clears out the red highlighted scheduling. I need to have some red in there in order for the actual motion notification to be enabled.

I figure I can keep it enabled at all times (with all red highlighting ) and not use the “enable/disable” binding and just have another switch in OH that continues the notification to me when I have it enabled.

turn on onvif and hikvision cgi
add admin user and password for onvif

turn off illegal login lock

It still requires for the password after sometime

Connecting it to the camera not to the dvr fixed the issue

New Build 20-06-2018 has following changes:

  • New channel handling code in the backend as I found a minor bug in previous builds.
  • Foscam: Added the changes described below as these are the examples given in the API so they should work.

Builds are probably going to slow down now as the main framework seems solid and working well.

@chaderick9

The latest build will enabling the motion alarm with one of these, can you see if it goes all red? If not you can use these to experiment with.

/cgi-bin/CGIProxy.fcgi?cmd=setMotionDetectConfig&isEnable=1&schedule0=1023&schedule1=1023&schedule2=1023&schedule3=1023&schedule4=1023&schedule5=1023&schedule6=1023&usr=username&pwd=password

/cgi-bin/CGIProxy.fcgi?cmd=setMotionDetectConfig1&isEnable=1&schedule0=281474976710655&schedule1=281474976710655&schedule2=281474976710655&schedule3=281474976710655&schedule4=281474976710655&schedule5=281474976710655&schedule6=281474976710655&usr=username&pwd=password

@zzzz

As an experiment try giving it a fake ONVIF PORT so it does not try connecting to the NVR with onvif. See if the problems go away. Its possible it does not like the onvif.