i want to set up my Reolink Cameras into my Openhab Rpi.
I use the openHAB 4.0.0.M4 - Milestone Build IP Camera Binding. My Cameras wouldn’t found automatically. When i set them manually as Reolink Camera with API they would be online, but in my Log Viewer I see only:
```2023-07-04 15:15:08.235 [WARN ] [nhab.core.internal.items.ItemUpdater] - NoSuchMethodException while creating Class instance: org.openhab.core.library.types.RawType.<init>()
2023-07-04 15:15:08.286 [INFO ] [era.internal.handler.IpCameraHandler] - Your Reolink camera gave a bad login response:[
{
"cmd" : "Login",
"code" : 1,
"error" : {
"detail" : "login failed",
"rspCode" : -7
}
}
]
I try every Account from my Reolink App (Email & Local Name/Password).
Do you have a Solution?
Thanks.
Create a new thread of your own with TRACE log output.
Try using the tokens or not using them with the config switch. Some of the cameras especially older firmware does not like to use the default tokens and prefers to use USER and PASS in the url. The binding supports both methods.
There is a PR that may fix that in openhab 4.x but it’s not merged yet from the M. Memory. You need to manually add them as a reolink thing type as they will only get detected as onvif till that is merged and they will get the wrong onvif port too if left at the auto detected state.
Switching to use tokens is only found under reolink thing type in the things config.
Lastly what items are staying as null? Need more information or trace logs of what is happening. Please put it into your own dedicated thread and not this one so it does not get lost with multiple other people posting.
Anyone else having issues with the Reolink Video Doorbell?
After some time openHAB stops detecting the button press. However the video stream is still working. As soon as I stop and start the camera thing it works again for a certain time.
Log seems unremarkable…
Trace logs of when the problem is occurring. If pausing and unpaused solves the issue it would point to the binding having an issue. Ipcamera Docs tell you how to get the trace logs in the very first section.
It stopped working again but I don’t know the exact time.
I checked the logs from the last time the button press was recognized till now but I couldn’t find any related entries. No warnings or errors regarding the IPCamera binding.
I have a similar problem with the onvif channels from Reolink cameras.
Sometimes the Onvif-Channels arent updated anymore.
This happens if the Wifi-Connection is disconnected. If the camera reconnects the stream works again but the onvif channels arent updated.
Thing need to be restarted…
so my soluton:
One camera with cable (works)
Other camera with 5Ghz wifi (not so heavy used like 2,4 ghz wifi - works)
and I restart the camera things 2 times a day with a rule.
you need a stable network connection…
Greets.
Sometimes it is what is different between when it works to when it does not. There was a change made recently to the online and offline detection so it is possible this may be the cause if the camera drops offline or if the wired camera is unplugged or does a reboot. Cameras should detect and handle this fine so I may need to run some tests after this change was made.
I have the same problem of OpenHAB not detecting button presses or motion alarms after a while.
Added a script to restart the thing every night for now.
Let me know if I can be of some help debugging the problem.
Your guess seems to be correct.
Right before the button press detection stopped working a loss of connection was detected:
2023-11-19 02:00:13.182 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'ipcamera:reolink:ID' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): Connection Timeout: Check your IP and PORT are correct and the camera can be reached.
2023-11-19 02:00:25.186 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'ipcamera:reolink:ID' changed from OFFLINE (COMMUNICATION_ERROR): Connection Timeout: Check your IP and PORT are correct and the camera can be reached. to OFFLINE (COMMUNICATION_ERROR): Camera is not reachable
2023-11-19 02:01:25.190 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'ipcamera:reolink:ID' changed from OFFLINE (COMMUNICATION_ERROR): Camera is not reachable to ONLINE
However, I have no idea what is causing the connection loss.
No one reported this earlier, so it may be a bug just introduced.
A change was made recently.
Does an older version of the binding solve the issue? You can stay on the latest openHAB and just drop in the older version to try from here where I keep a pre-compiled version, or you can use the jfrog server and look up the older builds: http://pcmus.com/openhab/IpCameraBinding/
I just tested it with Hikvision and it did not happen as that does not use the ONVIF methods, however an ONVIF camera does allow me to reproduce an issue. Looking at the reolink code shows that you could also work around it by setting the NVR channel value to something other than 0 so it will change to using an alternative method to poll the alarm states.