Hikvision Doorbell / Videointercom integration

I was looking at his code and he uses Isapi , for events he uses the alartstream…

But Alertstream, I believe it only works on hikvision camera’s, there are no much intercoms with Alertstream… Intercoms are just too limited, most of them even don’t support onvif , not sure why they did that…

But anyway, I also see a scrypted plugin that use SIP, why not use that one? That everything should work? You receive call, you answer and speak?

1 Like

You can maybe use their SIP plugin for receiving the call(callsensor) and reject/answer the call… maybe speaking works too, if not, you can use their two way plugin

1 Like

I didn’t know I had SIP haha. I’m using the Hikvision plug-in with two way audio over isapi

Oh, it explain a lot! I’ll add it into my report on git hub

Sip will be better, try it? Interested in this too :slight_smile:

1 Like

I need to create a SIP server before I add it. I’ll look better how to do that haha

No, you can try the private sip server on the doorbell itselfs, it runs on port 5065

1 Like

I didn’t know doorbell had it own SIP server. Is there a tutorial how to use it? I’ll check it better

Yes, the build in sip server is used for the indoor stations…

Try to use this for registration…

IP , the IP of your door intercom
Port , is port 5065 , this is the listening port on your intercom
Username , 10010110001 , this is the username , from your indoor station ( if you would have one)
Password, the registration password ( I believe it’s the same as the admin password, if not, then you need to define it with IVMS first)

Awesome! I didn’t know that. I tested with a SIP app on my phone and indeed it’s ringing on phone, but it stoped ringing on my Wall Panel. Do you know any way to fix that?

I’m trying to integrate it on Scrypted now

What do you mean by wallpanel? Is that an indoor?

Yep! The indoor, my bad

The Version A doesn’t support. but you can easily add them as a ffmegp camera like this:

camera:
  - platform: ffmpeg
    name: "Camera Portao Exterior"
    input: "rtsp://admin:[email protected]:554/Streaming/Channels/101"

For the B version please look at this document from the manufacturer:

Indoor Station

With the double of the memory there is no reason for not be included.

Weird. I have exactly the DS-KV6113-WPE1(B), but I never be able to use Onvif. Onvif can find the doorbell and sing in on login, but the camera image is black.

Haha Câmera portão exterior, looks like Portuguese

They might fix it in future FW version like happened with the CCTV cameras.

Good to know. I didn’t know it was possible… hope so, but I have no expectations.

I just sent an email to Hikvision Support from Brazil requesting the fix to Onvif. I dunno if it’ll help, but it’s what I can do :sweat_smile:

Hey Fabio, this is the log from my bug.

My doorbell spend more time with Ringing status than Idle haha.

2023-06-01 16:00:46.620 | INFO | event:motion_detection:87 - Motion detected from doorbell
2023-06-01 16:00:52.486 | INFO | event:motion_detection:87 - Motion detected from doorbell
2023-06-01 16:00:58.424 | INFO | event:motion_detection:87 - Motion detected from doorbell
2023-06-01 16:01:04.425 | INFO | event:motion_detection:87 - Motion detected from doorbell
2023-06-01 16:01:10.319 | INFO | event:motion_detection:87 - Motion detected from doorbell
2023-06-01 16:01:16.170 | INFO | event:motion_detection:87 - Motion detected from doorbell
2023-06-01 16:01:22.220 | INFO | event:motion_detection:87 - Motion detected from doorbell
2023-06-01 16:01:28.200 | INFO | event:motion_detection:87 - Motion detected from doorbell
2023-06-01 16:01:34.166 | INFO | event:motion_detection:87 - Motion detected from doorbell
2023-06-01 16:01:40.034 | INFO | event:motion_detection:87 - Motion detected from doorbell
2023-06-01 16:01:46.581 | INFO | event:motion_detection:87 - Motion detected from doorbell
2023-06-01 16:01:47.123 | INFO | event:motion_detection:87 - Motion detected from doorbell
2023-06-01 16:01:58.065 | INFO | event:motion_detection:87 - Motion detected from doorbell
2023-06-01 16:02:03.923 | INFO | event:motion_detection:87 - Motion detected from doorbell
2023-06-01 16:02:10.487 | INFO | event:motion_detection:87 - Motion detected from doorbell
2023-06-01 16:02:11.028 | INFO | event:motion_detection:87 - Motion detected from doorbell
2023-06-01 16:02:22.585 | INFO | event:motion_detection:87 - Motion detected from doorbell
2023-06-01 16:02:23.248 | INFO | event:motion_detection:87 - Motion detected from doorbell
2023-06-01 16:02:39.063 | INFO | event:motion_detection:87 - Motion detected from doorbell
2023-06-01 16:02:50.704 | INFO | event:motion_detection:87 - Motion detected from doorbell
2023-06-01 16:03:01.702 | INFO | event:motion_detection:87 - Motion detected from doorbell
2023-06-01 16:03:08.689 | INFO | event:motion_detection:87 - Motion detected from doorbell
2023-06-01 16:03:16.218 | INFO | event:motion_detection:87 - Motion detected from doorbell
2023-06-01 16:03:16.824 | INFO | event:motion_detection:87 - Motion detected from doorbell
2023-06-01 16:03:30.399 | INFO | event:motion_detection:87 - Motion detected from doorbell
2023-06-01 16:03:31.222 | INFO | event:motion_detection:87 - Motion detected from doorbell
2023-06-01 16:03:44.788 | INFO | event:motion_detection:87 - Motion detected from doorbell
2023-06-01 16:03:45.647 | INFO | event:motion_detection:87 - Motion detected from doorbell
2023-06-01 16:04:01.229 | INFO | event:motion_detection:87 - Motion detected from doorbell
2023-06-01 16:04:02.146 | INFO | event:motion_detection:87 - Motion detected from doorbell
2023-06-01 16:04:15.711 | INFO | event:motion_detection:87 - Motion detected from doorbell
2023-06-01 16:04:16.314 | INFO | event:motion_detection:87 - Motion detected from doorbell
2023-06-01 16:04:27.346 | INFO | event:motion_detection:87 - Motion detected from doorbell
2023-06-01 16:04:33.878 | INFO | event:motion_detection:87 - Motion detected from doorbell
2023-06-01 16:04:34.713 | INFO | event:video_intercom_alarm:109 - Video intercom alarm from doorbell
2023-06-01 16:04:34.714 | INFO | mqtt:video_intercom_alarm:236 - Doorbell ringing, updating sensor
settings: mqtt=MQTT(host=‘core-mosquitto’, username=‘addons’, password=‘xxx’, client_name=None, tls_key=None, tls_certfile=None, tls_ca_cert=None, discovery_prefix=‘homeassistant’, state_prefix=‘hmd’) entity=SensorInfo(component=‘sensor’, device=DeviceInfo(name=‘doorbell’, model=‘DS-KV6113-WPE1(B)’, manufacturer=‘Hikvision’, sw_version=‘V2.2.53’, hw_version=‘0x0’, identifiers=‘xxx’, connections=None, configuration_url=None), device_class=None, enabled_by_default=None, entity_category=None, expire_after=None, force_update=None, icon=‘mdi:bell’, name=‘Call state’, object_id=‘doorbell_call_state’, qos=None, unique_id=‘xxx-call_state’, unit_of_measurement=None) debug=False manual_availability=True
topic_prefix: sensor/doorbell/Call-state
config_topic: homeassistant/sensor/doorbell/Call-state/config
state_topic: hmd/sensor/doorbell/Call-state/state
wrote_configuration: True

2023-06-01 16:04:45.548 | INFO | event:motion_detection:87 - Motion detected from doorbell
2023-06-01 16:04:52.081 | INFO | event:motion_detection:87 - Motion detected from doorbell
2023-06-01 16:04:52.696 | INFO | event:motion_detection:87 - Motion detected from doorbell
2023-06-01 16:05:03.690 | INFO | event:motion_detection:87 - Motion detected from doorbell
2023-06-01 16:05:10.230 | INFO | event:motion_detection:87 - Motion detected from doorbell
2023-06-01 16:05:11.013 | INFO | event:motion_detection:87 - Motion detected from doorbell
2023-06-01 16:05:22.586 | INFO | event:motion_detection:87 - Motion detected from doorbell
2023-06-01 16:05:23.197 | INFO | event:video_intercom_alarm:109 - Video intercom alarm from doorbell
2023-06-01 16:05:23.198 | INFO | mqtt:video_intercom_alarm:239 - Call dismissed, updating sensor
settings: mqtt=MQTT(host=‘core-mosquitto’, username=‘addons’, password=‘xxx’, client_name=None, tls_key=None, tls_certfile=None, tls_ca_cert=None, discovery_prefix=‘homeassistant’, state_prefix=‘hmd’) entity=SensorInfo(component=‘sensor’, device=DeviceInfo(name=‘doorbell’, model=‘DS-KV6113-WPE1(B)’, manufacturer=‘Hikvision’, sw_version=‘V2.2.53’, hw_version=‘0x0’, identifiers=‘xxxx’, connections=None, configuration_url=None), device_class=None, enabled_by_default=None, entity_category=None, expire_after=None, force_update=None, icon=‘mdi:bell’, name=‘Call state’, object_id=‘doorbell_call_state’, qos=None, unique_id=‘xxx-call_state’, unit_of_measurement=None) debug=False manual_availability=True
topic_prefix: sensor/doorbell/Call-state
config_topic: homeassistant/sensor/doorbell/Call-state/config
state_topic: hmd/sensor/doorbell/Call-state/state
wrote_configuration: True

2023-06-01 16:05:34.157 | INFO | event:motion_detection:87 - Motion detected from doorbell
2023-06-01 16:05:40.051 | INFO | event:motion_detection:87 - Motion detected from doorbell
2023-06-01 16:05:45.755 | INFO | event:motion_detection:87 - Motion detected from doorbell
2023-06-01 16:05:52.291 | INFO | event:motion_detection:87 - Motion detected from doorbell
2023-06-01 16:05:53.055 | INFO | event:motion_detection:87 - Motion detected from doorbell
2023-06-01 16:06:04.056 | INFO | event:motion_detection:87 - Motion detected from doorbell
2023-06-01 16:06:10.000 | INFO | event:motion_detection:87 - Motion detected from doorbell
2023-06-01 16:06:16.031 | INFO | event:motion_detection:87 - Motion detected from doorbell
2023-06-01 16:06:21.860 | INFO | event:motion_detection:87 - Motion detected from doorbell
2023-06-01 16:06:28.425 | INFO | event:motion_detection:87 - Motion detected from doorbell
2023-06-01 16:06:29.123 | INFO | event:motion_detection:87 - Motion detected from doorbell
2023-06-01 16:06:35.132 | INFO | doorbell:unlock_door:115 - Door 1 unlocked by SDK
2023-06-01 16:06:36.771 | INFO | mqtt_input:_reject_call_callback:110 - Received reject command for doorbell: wall panel
2023-06-01 16:06:37.793 | INFO | mqtt_input:_reject_call_callback:110 - Received reject command for doorbell: doorbell
2023-06-01 16:06:45.784 | INFO | event:motion_detection:87 - Motion detected from doorbell
2023-06-01 16:06:52.338 | INFO | event:motion_detection:87 - Motion detected from doorbell
2023-06-01 16:06:53.045 | INFO | event:motion_detection:87 - Motion detected from doorbell
2023-06-01 16:07:04.596 | INFO | event:motion_detection:87 - Motion detected from doorbell
2023-06-01 16:07:05.243 | INFO | event:motion_detection:87 - Motion detected from doorbell
2023-06-01 16:07:18.813 | INFO | event:motion_detection:87 - Motion detected from doorbell
2023-06-01 16:07:19.410 | INFO | event:motion_detection:87 - Motion detected from doorbell
2023-06-01 16:07:32.980 | INFO | event:motion_detection:87 - Motion detected from doorbell
2023-06-01 16:07:33.650 | INFO | event:motion_detection:87 - Motion detected from doorbell
2023-06-01 16:07:46.576 | INFO | event:motion_detection:87 - Motion detected from doorbell
2023-06-01 16:07:53.130 | INFO | event:motion_detection:87 - Motion detected from doorbell
2023-06-01 16:07:53.833 | INFO | event:motion_detection:87 - Motion detected from doorbell
2023-06-01 16:08:05.386 | INFO | event:motion_detection:87 - Motion detected from doorbell
2023-06-01 16:08:05.978 | INFO | event:motion_detection:87 - Motion detected from doorbell
2023-06-01 16:08:17.514 | INFO | event:video_intercom_alarm:109 - Video intercom alarm from doorbell
2023-06-01 16:08:17.515 | INFO | mqtt:video_intercom_alarm:236 - Doorbell ringing, updating sensor
settings: mqtt=MQTT(host=‘core-mosquitto’, username=‘addons’, password=‘xxx’, client_name=None, tls_key=None, tls_certfile=None, tls_ca_cert=None, discovery_prefix=‘homeassistant’, state_prefix=‘hmd’) entity=SensorInfo(component=‘sensor’, device=DeviceInfo(name=‘doorbell’, model=‘DS-KV6113-WPE1(B)’, manufacturer=‘Hikvision’, sw_version=‘V2.2.53’, hw_version=‘0x0’, identifiers=‘xxx’, connections=None, configuration_url=None), device_class=None, enabled_by_default=None, entity_category=None, expire_after=None, force_update=None, icon=‘mdi:bell’, name=‘Call state’, object_id=‘doorbell_call_state’, qos=None, unique_id=‘xxx-call_state’, unit_of_measurement=None) debug=False manual_availability=True
topic_prefix: sensor/doorbell/Call-state
config_topic: homeassistant/sensor/doorbell/Call-state/config
state_topic: hmd/sensor/doorbell/Call-state/state
wrote_configuration: True

2023-06-01 16:08:18.188 | INFO | event:motion_detection:87 - Motion detected from doorbell
2023-06-01 16:08:29.750 | INFO | event:motion_detection:87 - Motion detected from doorbell
2023-06-01 16:08:30.406 | INFO | event:motion_detection:87 - Motion detected from doorbell
2023-06-01 16:08:41.487 | INFO | event:motion_detection:87 - Motion detected from doorbell
2023-06-01 16:08:43.015 | INFO | event:motion_detection:87 - Motion detected from doorbell
2023-06-01 16:08:53.960 | INFO | event:motion_detection:87 - Motion detected from doorbell
2023-06-01 16:08:54.630 | INFO | event:motion_detection:87 - Motion detected from doorbell

It can only change back to idle, if call is hangup or dismissed… Maybe it’s because you use Isapi two way audio, and there is no signal about hang-up

Ive just finished reading over 3 years of the journey to get where we are today. what a ride everyone!
I have to admit when I first got my DS-KV6113 things would be much easier lol.

I learned a lot on this whole thread, I already setup my doorbell with 2way audio on scrypted, only issue is the not working button, and the missing snapshot capture endpoint, from what I’ve gathered there isn’t a known way to get a snapshot via http.

I gave the Hikvision Doorbell HA Addon a try, however, the main version is not running for me for some reason, just stops at “loop [2] find 6 mac and 13 ip”, I gave the beta version a try, but it also failed to start because it assumes I should have the MQTT add-on running, but I don’t use the add-on but an already setup broker on my server.

I loved to see the progress made with the SIP approach, but I think at first I’ll try to go callStatus endpoint polling approach. then hangup and delete the call before notifying the doorbell was rang. that might work well I think.

Is it possible to capture a snapshot via the SDK? if so I might try creating an endpoint that gets the snapshot via the api and then proxies it via http.

Hey, indeed, it was alzo a struggle for me to get this far, was very difficult to build something that was compatible for almost all devices… Many devices dont support polling, etc…

For the addon, this line is normal:

loop [2] find 6 mac and 13 ip …
That’s always outputted…

As for the beta addon, yes, working on a setup to define an external Mqtt server…

Doe snapshot, they don’t support http indeed, BUT, they are firmwares coming from hokvision to support it finally, my ds8003 with latest firmware, now can capture snapshot based on http url…

I also tested SDK, but didn’t work for every device…

Best way is to add an rtsp camera, and then use the snapshot service…

1 Like

Hello everyone, can this addon be installed twice? Make a duplicate?
I have two apartments in which there is this device.