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

If your device is connnected to Hik-Connect or an indoor station or a PBX, when the doorbell is pressed the status of the device will go to a state of ‘ringing’ (I think) while it is waiting for someone to answer the call (via the Hik-Connect app or on the indoor station or on a SIP client). When in the call, the status will be ‘in-call’ (I think).

For me, I currently have the doorbell at the outside gate. I have configured it to connect to a PBX but that PBX is not currently running (and nor do I have an indoor station or Hik-Connect). When the outdoor button is pressed, the visitor will hear a ‘busy tone’ for a couple of seconds but my Home Assistant REST Sensor will detect that ‘ringing’ state change and create a notification on my Google Homes and send a Home Assistant Companion notification to my mobile phones.

Maybe I need to write up a bit of a how-to.

Thanks i added in the below and now can see a sensor
``
sensor:
platform: rest
name: Doorbell Status
authentication: digest
username: admin
password: [my pw]
scan_interval: 1
resource: http://192.168.0.xx/ISAPI/VideoIntercom/callStatus?format=json
value_template: “{{ value_json.CallStatus.status }}”
`

ok thanks, i have setup your REST sensor in HA and it says ‘Idle’.

I’ll go home soon and press it and see if i can see anything in logs.

Yes any info you could share on how to use that to send a notification in HA would be appreciated as i’d like to use that info to explore the doorbell press to say increase light intensity/colour at the gate. I get the Hik-connect notifications on my just phone fine so that part is all good.

You can just use automations for that? The status of sensor will change to ringing or something like that

i’ll google that, cheers.

updated first post with that example rest sensor :slight_smile:

yep it works, can see it change from ‘idle’ to ‘ring’ when the doorbell is calling the indoor station or our phones app. Thanks!

The automation i setup isnt working though - so i created new topic around the automation: First attempt at automation not working

is the rest sensor mean to be a ‘sensor’ , a ‘binary_sensor’ or something else in the configuration.yaml?

No, it’s a sensor

1 Like

Just a pyton console app (script) I wrote earlier. See my forum comment on Jun 26

@laszlojakab

I am missing something :slight_smile: don’t see the script you posted earlier? Can you share again? :slight_smile:

Or do you have a gihub repository?
Edit : found something , but it’s quite empty :wink:

Can you also explain how to use polling or how to make sensors for doorbell or other events?

Just created the github repo:) Check now.

yeah, noticed, downloading and installing sdk right now
but it only works on windows? i see there is a also a linux variant? maybe we can create a docker container running this sdk?
it probably wont work for HassOs users, right? since there is no way to install sdk? installing sdk is needed right? to have all dll files?

or maybe there is already a docker image with this sdk?

Probably works on linux too. I haven’t tried it. I haven’t used docker yet so I don’t know:( I think you don’t have to install SDK, you just have to copy files from the lib folder (for windows users, as I wrote I haven’t checked linux SDK yet)

ok, lets try without installing, what actual lib files are only needed?

btw , you have a 8003, right? there is also a new firmware coming to have more ISAPI events, also for doorunlock, and swipe events ,

@laszlojakab you need to explain that data :slight_smile:
why is it constantly changing from ringing to dismissed?

i also opened the door 4 times, with key and badge, but i see more events there?

I only get “dismissed” when I press red “terminate call” phone icon on indoor station. The array “unlocked by” value is from NET_DVR_UNLOCK_RECORD_INFO.byControlSrc field. From docs: “Operation source information”.

A log from me:

  • opened the lock by card 1

  • opened the lock by card 2

  • pressed door bell to ring

  • opened the lock from indoor station

  • pressed red phone icon on doorbell

  • open-close sensor was always opened during the test (that’s why sometimes door not closed event happened)

hmm, what device do yo have? i have a ds-kd8003 and 93xx for indoor
whats your firmware level?

DS-KD8003-IME1
DS-KH6320-WTE1

hikvision1
hikvision2

thats indeed an older firmware, i dont think its related to the indoor anyway
i have newer firmware, i am also missing the “motion detection” settings
maybe thats why i have some strange unusable data, its contanntly changing while i am watching tv :slight_smile:
any idea what could be wrong?