Running OH 3.4.4 with the IP Camera add-on. Camera is Hikvision DS-2CD2143G2-I.
After I add Hikvision camera as thing, openhab.log starts to get flooded with following error messages:
2023-06-18 22:41:56.282 [WARN ] [ipcamera.internal.MyNettyAuthHandler] - 403 Forbidden: Check camera setup or has the camera activated the illegal login lock?
2023-06-18 22:42:04.276 [WARN ] [ipcamera.internal.MyNettyAuthHandler] - 403 Forbidden: Check camera setup or has the camera activated the illegal login lock?
2023-06-18 22:42:12.386 [WARN ] [ipcamera.internal.MyNettyAuthHandler] - 403 Forbidden: Check camera setup or has the camera activated the illegal login lock?
I checked with tcpdump and the add-on makes several successful requests but the error message comes from the add-on trying to make the following request to the camera:
GET /ISAPI/System/IO/inputs/1/status HTTP/1.1
You may have entered the login details we wrongly and your now locked out of the camera. To fix you need to check user and pass is correctly and then power cycle the camera. You can also disable the illegal login check but that should not be necessary as it gets triggered when the password is wrong and tried multiple times.
The login details are correct and illegal login check is disabled. I tested this with curl and got same 403 response. Other ISAPI requests work just fine with the same curl format. The way I see it that hikvisio camera doesn’t have any IO outputs and therfore throws 403 response to the request.
I suspect your correct, it has been on my to do list to remove channels that a camera reports that it does not support. It appears you have supplied the API call to check if the camera supports the IO features and given the response already, can you confirm it is complete as it looks cut short. That is all I need to complete this.
EDIT: @Tommo it would also be smart to install the latest firmware, see the link I get them from if the camera is an older model. Mine is on firmware 5.6.6
Below is the XML response to the /ISAPI/System/IO/capabilities.
Looks like the response is missing the IOInputPortNums and IOOutputPortnums values that your camera is responding.