Hikvision Doorbell / Videointercom integration

Thanks for your quick response Fabio! Attached to go2rtc config in frigate.yml

I also enabled “insecure origins treated as secure in Chrome”.

Dear contributors, many thanks for this work
Unfortunately, I’m not able to get it work on my DS-KV6113
I receive this error in the log : Error while logging into Interphone: The IP is be locked. Error code:153
I tried everything : change doorbell password, change HA IP…

Your device is probably blocking you, try rebooting your Hikvision, maybe it takes a while before you are locked out again . Dont hammer your device

I wish you good health! Tell me, please! What could be the problem?
Hikvision Doorbell Current version: 3.0.16 does not connect to DS-KV6113-PE 1(C) V2. 2.65 build 231213
Logs:

[2024-10-07 09:59:16.914][INF] The COM:HCCoreBase ver is 6.1.4.15, 2020_03_05. Async:1.
[2024-10-07 09:59:16.914][INF] The COM:Core ver is 6.1.6.45, 2021_03_02. Async:1.
[2024-10-07 09:59:16.914][INF] This HCNetSDK ver is 6.1.6.45 Ver 2021_03_02.
2024-10-07 09:59:16.914 | DEBUG    | sdk.utils:setupSDK:100 - SDK initialized
2024-10-07 09:59:16.914 | DEBUG    | doorbell:__init__:52 - Setting up doorbell: HikDoor
2024-10-07 09:59:16.914 | DEBUG    | doorbell:authenticate:60 - Logging into doorbell
2024-10-07 09:59:16.914 | ERROR    | __main__:main_loop:100 - Error while logging into HikDoor: Parameter error. Input or output parameter in the SDK API is NULL. Error code: 17
[2024-10-07 09:59:16.914][INF] Login dev 192.192.168.1.101:8000.
[2024-10-07 09:59:16.914][INF] dwTotalNum[2048]
[2024-10-07 09:59:16.914][ERR] CMemberMgrBase::AllocIndex2, MemberStart Failed, iIndex[0]
[2024-10-07 09:59:16.920][INF] COM_Logout[-1][1]
2024-10-07 09:59:17.553 | DEBUG    | __main__:main:31 - Importing Hikvision SDK
2024-10-07 09:59:17.555 | INFO     | sdk.utils:loadSDK:44 - Using OS: Linux with architecture: x86_64
2024-10-07 09:59:17.555 | DEBUG    | sdk.utils:loadSDK:57 - Loading library from lib-amd64/libhcnetsdk.so
2024-10-07 09:59:17.563 | DEBUG    | __main__:main:35 - Hikvision SDK loaded
2024-10-07 09:59:17.563 | DEBUG    | sdk.utils:setupSDK:86 - Initializing SDK
loop[2] find 2 mac and 1 ip
[2024-10-07 09:59:17.593][DBG] CCoreGlobalCtrlBase::LoadDSo, HPR_LoadDSo Succ, Path[/lib/x86_64-linux-gnu/libz.so.1.2.11], hHandleRet[525856208]

…etc.

not sure, when googling error 17, it says bad IP configuration?


Снимок экрана 2024-10-07 104546
login & password - correct

I’m sorry!
I just noticed…
sorry to bother you!
thank you!!!

1 Like

Hi,

I have add-on installed, frigate configured and I get live video feed displayed, created call script but the only working button was unlock door button (recently also stopped working).
In logs I can see:

2024-10-14 21:09:35.632 | ERROR    | mqtt_input:_answer_call_callback:367 - Error while answering call with ISAPI: ('Error while calling ISAPI /ISAPI/VideoIntercom/callSignal?format=json', 11, 'The data sent to the device is illegal, or the data received from the device error.  E.g. The input data is not supported by the device for remote configuration.')
2024-10-14 21:09:36.115 | INFO     | mqtt_input:_hangup_call_callback:331 - Received hangup command for doorbell: Door
2024-10-14 21:09:36.124 | ERROR    | mqtt_input:_hangup_call_callback:344 - Error while Hanging up the call with ISAPI: ('Error while calling ISAPI /ISAPI/VideoIntercom/callSignal?format=json', 11, 'The data sent to the device is illegal, or the data received from the device error.  E.g. The input data is not supported by the device for remote configuration.')

How to troubleshoot it?

No idea maybe reboot the device?

Btw, commands like answer/hangup, only work on a real incoming call…

Thanks, how to automatically pull up or make a notification when there’s incoming call?

You can create an automation for that with for example a notification service

Yes but with hikvision doorbell’s entity will be the right one to use for this purpose, “Call status”, “Caller info”?

none of them :slight_smile: there is a sensor …

1 Like

One more question, what state or attribute of Call State sensor indicates incoming call?

see here, all documented

Hello and congratulations for the addon!
I just configured it to work with a doorbell (DS-KV8213-WME1) and two indoor intercoms (DS-KH6350-WTE1). Soon I would like to add two more doorbells with 6 call buttons on two gates that close a transit route. Here’s my question: is it possible to create an automation or a scene to open the 2 gates controlled by the 2 doorbells with 1 single opening command sent by 4 of the 6 indoor intercoms? The other 2 indoor intercoms will only open the gate from which the call came.
Many thanks!

Not sure about that specific indoor, but with my indoor station i can use the com ports, the 2 ports you also see in HikConnect
There is no wire attached to it, but if triggered you can start an automation indeed, to open other gates…

2024-10-26 15:35:43.300 | INFO     | event:video_intercom_event:109 - Video intercom event from DS-KD8003
2024-10-26 16:37:06.887 | INFO     | doorbell:unlock_com:115 -  Com 1 unlocked by ISAPI

image

mmmh… :thinking: I was thinking instead of using the “door unlocked” event on a doorbell as a trigger and {‘control_source’: ‘xxxxxxxxxxxxxxxxxxxxxxx’} as a condition to open the gate on the other doorbell… do you think it’s possible?

Yes, you can create other automations based on events/attributes

A little bit offtopic but here should be the right people :slight_smile:

I’ve got the integration running smoothly. But I’m having issues with the “Generic Camera” to show the snapshots for the dashboard and in HomeKit.
My config:

STILL IMAGE:
http://admin:[email protected]:80/ISAPI/Streaming/channels/101/picture

STREAM
rtsp://192.168.x.x:554/Streaming/Channels/1

PROTOCOL:
TCP

AUTH:
digest

USERNAME:
admin

PASSWORD:
password

REFRESH RATE:
15

SSL: NO


When I’m saving the settings, I’m able to see a current snapshot from the camera. When I put the Still Image URL in my browser it works great.

But when I’m looking at the HA Dashboard or when using homekit, the picture does not refresh. I’m getting an error in my HA Log:

2024-10-27 20:31:08.287 ERROR (MainThread) [homeassistant.components.generic.camera] Error getting new camera image from CAMERA: Client error '401 Unauthorized' for url 'http://admin:[email protected]/ISAPI/Streaming/channels/1/picture'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/401

Someone got an Idea how I can get this running?