DS-KD8003 - DS-KV8113 - DS-KV8213 - DS-KV6113 - DS-KV8413 and .... integration Hikvision HikConnect Video intercom doorbell

I don’t think Alertstream is supported on your model… If you want that stuff you need to ask hikvison to make a custom firmware… Or use the SDK

I don’t think so either. Thanks for your reply.

I installed HASS with Docker on my Synology. Use the Surveillance Cam motion detection to trigger my lights in HASS. Would be nice to use the HikVision Doorbel sensor.

Maybe, who knows, in the next firmware upgrade …

Thank you @CAMman101! This worked fairly well! I’m coming from more of a homebridge background so the nuances behind yaml kind of road blocked me.

It’s crazy that alert stream isn’t there. I tried a hitting a bunch of APIs when reading through their documentation.

Not sure about this one though:

curl -i --digest http://[IP Address]/ISAPI/Event/triggers/vmd-1/notifications/preset/VMD?=JSON

Where VMD = video motion detection?? Not sure how it differs from alert stream?

@pergola.fabio you might know more about this one?

@jmnovak I tried:
ISAPI/Event/triggers/vmd/1/notifications/preset/VMD?format=json

Got this:

{
        "requestURL":   "/ISAPI/Event/triggers/vmd/1/notifications/preset/VMD",
        "statusCode":   6,
        "statusString": "Invalid Content",
        "subStatusCode":        "badXmlContent",
        "errorCode":    1610612739,
        "errorMsg":     "Wrong XMLcontent"
}

Seems like a wrong command

@CAMman101 Was thinking more about what you wanted regarding motion detection coming from the camera itself as I also have the same w Synology…

Actually, if you’ve managed to create a sensor from Synology, I would imagine might be a bit better that what Hikvision can supply…at least by my rationale, given that Synology offers a more degree of granularity in which you can enable the detection area. So if you can push it to HA as a sensor, then does it really matter where it comes from? Btw, how did you enable that Synology integration?

Use vmd-1 not vmd/1 in the url

You’re right, it’s better to use the Synology for that. Offcourse we just all want to know how to access the sensor on the HikVision doorbell. No luck there.

I tried ‘curl -i --digest -u [USER]:[PASSWRD] http://[IP-ADDRESS]/ISAPI/Event/triggers/vmd-1/notifications/preset/VMD’ But did not work. Then I started to modify the URL to test. But still no success.

For the Synology, I still have to start on the sensor in HASS. I hope to get to that part this week. If you manage to get it to work, please post it here. When I get it to work, I’ll post it here.

For Synology? I think you just see the motion as an attribute on the camera itself? Don’t think there is a separate sensor

From where do you have that ISAPI info? Maybe you just need to send a payload too?

In my first post, there is a ISAPI zip file, containing all ISAPI info

@pergola.fabio @jmnovak I used the motion sensor trigger of the Synology Surveillance Station to trigger an event. For the moment it’s a notification on my phone. But it will be replaced by my new lights I just ordered.

There’s also a time condition in the automation. When I have the lights, I need to implement a duration for the lights to go on and turn off again after a number of seconds and no motion has been detected for x seconds. But I will do that when I have my lights.

Here’s what I’ve got so far

// CONFIGURATION.YAML
binary_sensor: !include binary_sensor.yaml

// BINARY_SENSOR.YAML

- platform: template
  sensors:
    camera_doorbell_motion_detect:
      value_template: "{{ is_state ( 'camera.[CAMERA ID SYNOLOGY]', 'recording' ) }}"

// AUTOMATION.YAML

- alias: 'Doorbell Motion Detected'
  trigger:
  - platform: state
    entity_id: binary_sensor.camera_doorbell_motion_detect
    to: 'on'
  condition:
  - condition: time
    after: "00:00:00"
    before: "00:06:00"  
  action:
  - service: notify.mobile_app_[PHONE ID]
    data:
      title: "[TITLE]"
      message: "[MESSAGE]"

yeah, i dont do events based on motion, only when someone actually press the doorbell button

good will be if @laszlojakab can write integration to HA as it is integration for Dahua.

not sure if an integration is actually possible, since SDK is needed, and it doesnt work on HassOS (alpine linux) , so an add-on is needed to run a different OS

maybe possible with appdeamon

Here’s my final automation script for the lights to turn on when motion is detected on my Synology. I need the transition time to fade out the lights, or else by turning off the lights motion is detected and I’m stuck in a loop.

Maybe someone finds it usefull.

- alias: 'Doorbell Motion Detected'
  trigger:
  - platform: state
    entity_id: binary_sensor.camera_doorbell_motion_detect
    to: 'on'
  condition:
  - condition: time
    before: '06:30:00'
  action:
  - service: notify.mobile_app_[PHONE ID]
    data:
      title: "[TITLE]"
      message: "[MESSAGE]"
  - service: light.turn_on
    target:
      entity_id: light.[LIGHT ID]
    data:
      brightness: 255
      kelvin: 2700
- alias: 'Doorbell Motion Ended'
  trigger:
  - platform: state
    entity_id: binary_sensor.camera_doorbell_motion_detect
    to: 'off'
  condition:
  - condition: time
    before: '06:30:00'
  action:
  - service: notify.mobile_app_[PHONE ID]
    data:
      title: "[TITLE]"
      message: "[MESSAGE]"
  - service: light.turn_off
    target:
      entity_id: light.[LIGHT ID]
    data:
      transition: 60
1 Like

And in this my opinion is bad about HikVision. Now i think that DAHUA is better product.

It’s not bad at all, SDK works verry good… We just need some developers that are able to make integrations…

Yes but we dont have it… :frowning:

just wait , but the SDK is ready to use, you just need to run it (non-hassos) system, or ceate a local addon with centos

Hi.

As I have mentioned before, I did something very simple (just now gad time to finish it).
Since I use HASSIO (RPi 4) and can’t use the SDK, I have the Hik-Connect installed.
I do not like it but at least it rings.
It is installed in my HA tablets around the house and in my family’es phones.
In these tablets, the HA is the one that runs at the front with the screen saver disabled so it is visible at all times.
One a button is pressed on the outdoor unit (DS-HK8003) I get a ring from the Hik-Connect. Once the bug with the F/W will be solved I will not need the Hik-Connect anymore.
Anyway, I have created a new view in Lovelace, added a WebRTC card and shell command based lock control and all is well.
One thing though, under my Galaxy Note 10+ I have sound. Under my PC which is Linux Mint 19.3 no sound on both Chromium not Firefox. The Codec is PCM uLaw. Both browsers support it as well as VLC but no sound here. I will see if the problem is also under Windows.
Accessing from out of my house was not tested yet but I guess I need to set the router properly as the WebRTC instructions.

Hello, tell me which command to get the motion sensor event.
How to enable recording on a SD card?
My panel is DS KV6113-WPE1(B) firmware 2.2.50