Working and not working IP Cameras

I have set the PTZ to Continuous. Right now nothing works; No snapshot, no alarm, no movement.
To me the log shows no problems:
2021-01-10 12:09:59.737 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing ‘ipcamera:instar:1921688109’ to inbox.

2021-01-10 12:09:59.741 [home.event.InboxAddedEvent] - Discovery Result with UID ‘ipcamera:instar:1921688109’ has been added.

2021-01-10 12:10:15.445 [me.event.InboxRemovedEvent] - Discovery Result with UID ‘ipcamera:instar:1921688109’ has been removed.

2021-01-10 12:10:15.471 [hingStatusInfoChangedEvent] - ‘ipcamera:instar:1921688109’ changed from UNINITIALIZED to UNINITIALIZED (HANDLER_CONFIGURATION_PENDING)

2021-01-10 12:10:58.269 [me.event.ThingUpdatedEvent] - Thing ‘ipcamera:instar:1921688109’ has been updated.

2021-01-10 12:10:58.279 [hingStatusInfoChangedEvent] - ‘ipcamera:instar:1921688109’ changed from UNINITIALIZED (HANDLER_CONFIGURATION_PENDING) to INITIALIZING

2021-01-10 12:10:58.305 [vent.ItemStateChangedEvent] - InstarCamera1921688109_ImageURL changed from NULL to http://192.168.8.105:500/ipcamera.jpg

2021-01-10 12:11:02.321 [hingStatusInfoChangedEvent] - ‘ipcamera:instar:1921688109’ changed from INITIALIZING to ONLINE

2021-01-10 12:11:02.340 [vent.ItemStateChangedEvent] - InstarCamera_Tilt changed from NULL to 0

2021-01-10 12:11:02.341 [vent.ItemStateChangedEvent] - InstarCamera_Pan changed from NULL to 0

2021-01-10 12:11:02.343 [vent.ItemStateChangedEvent] - InstarCamera_PollImage changed from NULL to OFF

2021-01-10 12:11:03.321 [vent.ItemStateChangedEvent] - InstarCamera1921688109_MotionAlarm changed from NULL to OFF

2021-01-10 12:11:03.338 [vent.ItemStateChangedEvent] - InstarCamera_AudioAlarmONOFF changed from NULL to ON

2021-01-10 12:11:11.346 [vent.ItemStateChangedEvent] - InstarCamera1921688109_MotionAlarmONOFF changed from NULL to ON

2021-01-10 12:11:16.493 [vent.ItemStateChangedEvent] - InstarCamera_Pan changed from NULL to 0

2021-01-10 12:11:16.499 [vent.ItemStateChangedEvent] - InstarCamera_Tilt changed from NULL to 0

2021-01-10 12:11:19.328 [vent.ItemStateChangedEvent] - InstarCamera1921688109_MotionAlarm changed from NULL to OFF

2021-01-10 12:11:19.346 [vent.ItemStateChangedEvent] - InstarCamera_PollImage changed from NULL to OFF

2021-01-10 12:11:19.354 [vent.ItemStateChangedEvent] - InstarCamera_AutoLEDONOFF changed from NULL to ON

2021-01-10 12:11:19.532 [vent.ItemStateChangedEvent] - InstarCamera1921688109_ImageURL changed from NULL to http://192.168.8.105:500/ipcamera.jpg

2021-01-10 12:11:19.549 [me.event.ThingUpdatedEvent] - Thing ‘ipcamera:instar:1921688109’ has been updated.

I need the trace level log to look into it, the command to use trace level is found in the ipcamera binding documentation under the heading what to do if you have problems.

You mean this command: log:set TRACE org.openhab.binding.ipcamera ?
I entered it at the openhabian console (putty), but the command is not known!

from the openhaibian console/putty you need to login to the karaf console to enter the command.

Thank you for your help! It’s hard at the beginning.
Attached the TRACE logTrace.txt (22.8 KB)

http://192.168.8.109:8083/tmpfs/snap.jpg
Why is it asking for a snapshot on port 8083 ?!?!?
Also the logs are showing the camera is not giving any replies back to ONVIF requests, is it behind a firewall or NVR that may be blocking comms? The binding by default will try to contact INSTAR on port 8080 for ONVIF, has the camera been changed to use ONVIF on port 8083?

What have you changed from the default settings for the camera in the bindings settings? Do not change anything from their defaults, just give the binding your user/pass and also enter in a Server Port that is different for each camera you have. Then what does the log show?

The http port is set to 8083. I reset the ONVIF Port to 8080 (before 9093). In the settings I only added the user and password and the http port (8083). The PTZ movement is set to continuous. I am using windows defender. The attached TRACE log is made with turned off firewall.Trace.txt (18.2 KB)

At least now your getting some kind of cut short ONVIF replies. The reply should contain a lot more than this…

Onvif reply is:<?xml version="1.0" encoding="UTF-8"?>

I need to see when the camera connects, you can trigger that by changing the Server Port setting which will trigger it to reconnect.

port 8083 sounds wrong, the default is 80 so try that as if that is wrong you wont get any snapshots or streams working.

You should try entering the URLS into a web browser to see if they work as that will quickly tell you if the port is wrong.

I just tried the URL http://192.168.8.109:8083/tmpfs/snap.jpg and got a snapshot.
Attached the TRACE with http port set to 80 an server port changed.Trace.txt (30.8 KB)

What happens if you use http://192.168.8.109:80/tmpfs/snap.jpg ? does that give a snapshot as well?

The logs are confusing me as they look to be cut short, however the binding is reporting that it is finding valid preset locations which indicates the reply is longer, the logs just dont show the full output… Any idea why that is happening? are you cutting them short? can you see longer replies if you look at the log?

A Server Port of 500 is not a good idea as some Linux versions require admin rights to use ports under 1024 so try a higher number. This is another confusing thing as the binding should be giving you a warning about this, yet it is not seen in the log you provided. Something wierd is going on and I cant fault find if the logs are messed up.

http://192.168.8.109:80/tmpfs/snap.jpg gives me a snapshot.
I changed the server port to 5000.
The logs are from: tail -f /var/log/openhab2/openhab.log /var/log/openhab2/events.log
The are not truncated. I attached a selection of ipcamera.Trace.txt (19.0 KB)
I entered tail -f /var/log/openhab2/openhab.log /var/log/openhab2/events.log in the Karaf console and the result looks the same.

The camera is giving a 404 not found error so port 80 may be wrong. Until I can see proper ONVIF replies I can not help further. The ONVIF will be reporting back what urls to use and the ports but the logs have cut everything short. Never seen or heard of that before.

So your using openHAB 2.x? Did you happen to download the binding I linked to above which is a 3.X version? If so that may explain it…
Under 2.5.x this one is the latest build.

http://www.pcmus.com/openhab/IpCameraBinding/ipcamera-2020-11-15.zip

You should clean the cache and tmp after placing that into the addons folder, reboot openHAB a few times and then delete and re-add the camera.

I recommend you move to V3

openhab - Kopie.log (294.4 KB) I made a clean OH 2.5.10 installation on my notebook.
There the snapshot works. The Pan and Tilt functions and the alarms are still dead.
I also tried the ODM. There the camera is found and the PTZ control works.
I am adding the openhab.log from my notebook. There are ONVIF logs inside.

I made an OH 3.0 test installation and added the camera.
Snapshot is shown, but PTZ and alarms are not working.
The TRACE log: Trace.txt (49.2 KB)

Same with the Foscam FI9831P camera. Only snapshot shown, PTZ and alarms not working.

PTZ:
your sending Sending ONVIF request:AbsoluteMove you said the camera only worked with continuos move, so the easiest way in OH3 is to use this widget. It will keep failing to work if you keep trying to send something that your camera does not support.

I cant help you further because:
a) stating that something is not working is not describing what your trying, if you dont describe I cant check that your doing the right thing that will make it work. We will only go in circles.
b) Your log still does not show correctly, since I have never seen or heard of others having this issue it has to stem from how you are fetching and copying the log. The binding is giving indication that the cameras replies are longer than what the log shows.

You goal should be to fix the issue with the log as until that is sorted I cant check for any compatibilty issues that may be there.

I realy appreciate your help und I am trying hard to contribuate. Above I attached the openhab-Kopie.log file. There are realy long ONVIF log entries. Are these the ones you are looking for? Otherwise I really don’t know, where else I could look for the logs. Please give me a hint. I changed the server port serveral times.
In the binding I have set the PTZ continuos movement on and off without a effect.

Yes the openhab-Kopie.log looks correct, they are long replies back from ONVIF. The other logs all look like they are getting cut short, missing lines…
Everything in there looks correct and it shows you are not sending continuous move commands.
Moving the slider will only result in Absolute movements, you need to send INCREASE and DECREASE commands to the channels and not an absolute (exact) number.

The documentation has an example on how to do this with SITEMAP, habpanel and I already gave you the link for OH3 widget.

If your camera only supports continuos then you must turn it ON and leave it on. But doing that does not turn the sliders into sending continuos messages, you need to send the commands I mentioned above which is far easier in OH3 with the widget.
Also I have not seen you use PRESETS in the logs, I suspect you will find they will work easier and better, so try to get presets working. I gave you a very important hint on how to get it working in a reply already and it is key to getting the Instar cameras to save presets.

I’m not going to fault find the alarms and cause more confusion until the logs and PTZ is sorted. Hopefully this solves the PTZ for you.

I gave up on the instar camera which I can still return to amazon. I am trying now to get the foscam FI9138 running which was reported working with the binding.
So far the snapshot is OK and with the presets I can move the camera to the end points wich does not really help. I installed the widget. I connected a cell on a page with the ClickabablePTZCamera. Sadly the cell stays plane white. As a workaround I could move and watch the camera through my phone app. But what I really need for my alarm system is the motion alarm which is not working in OH 3.
The binding description tells how to get and create the override settings. I followed the instruction but the URL https://192.168.8.160/cgi-bin/CGIProxy.fcgi?cmd=getMotionDetectConfig1&usr=admin&pwd=… only returned:
<CGI_Result>
-3
</CGI_Result>
Who can I create the override settings out of this?
Is there a possibility to get the motion alarm through to openhab 3?
I copied the output from the frontail to a file since I can’t get samba access to /var/log/openhab.
Is it possible to access the log files through samba?
Trace.txt (24.2 KB)
Finally I discovered that in the OH 2.5 IP Camera Binding for Foscam with API the snapshot, alarm and 26 presets work fine. Is there a possibility to use a OH 2 binding in OH 3?

I made an OH 3.1 testinstallation on my PC an downloaded the jar file. I moved it to the addon folder of my OH 3.1 installation. Is there anything else to do to use this binding? So far the alarm still doesn’t work.