maciej-or / hikvision_next

Home Assistant integration for Hikvision NVRs and IP cameras
115 stars 23 forks source link

Every 2 minutes: Client error '403 Forbidden' for url 'http://10.20.120.210/ISAPI/System/IO/inputs/101' #206

Open xoferz opened 2 months ago

xoferz commented 2 months ago

Every 2 minutes, HA logs: 2024-09-15 22:38:28.622 WARNING (MainThread) [custom_components.hikvision_next.isapi] Unexpected exception | Cannot fetch state for io | Client error '403 Forbidden' for url 'http://10.20.120.210/ISAPI/System/IO/inputs/101' The device is DS-7616NI-K2 and user is "admin".

Disabling "NVR Alarm Input 101" entity has no effect.

maciej-or commented 2 months ago

please attach diagnostic data from device view

xoferz commented 2 months ago

this? Screenshot 2024-09-18 at 10 17 57

maciej-or commented 2 months ago

this:

image

Settings -> Devices -> Integration tile -> your nvr

xoferz commented 2 months ago

https://drive.google.com/file/d/1-kBCeRVAHBBAKUJ2zqEHfSFuHJX50bGo/view?usp=share_link

maciej-or commented 1 month ago

I'm leaving it for the future: my NVR responds on ISAPI/System/IO/inputs/<ID> but web UI uses ISAPI/ContentMgmt/IOProxy/inputs/<ID> with similar output

You have newer firmware not available for my model so I suppose it could handle only new endpoint

DJDunk commented 1 month ago

I think I have the same issue? The logs show this every 2 mins. Is there anything I can do to fix it please? I also notice that the 'snapshots' are always broken on my dashboard, not sure if related.

image

maciej-or commented 1 month ago

hi, in the v1.0.19 new action is available which can help, please paste response from your nvr for /System/IO/inputs/capabilities

image

DJDunk commented 1 month ago

image

maciej-or commented 4 weeks ago

thank you, it explains the error 403, I will change inputs detection to this request