Hikvision Doorbell Camera – Chime and Motion Sensor

Hi @juan11perez

I’m well thanks. Just tried it on my DS-KB6403-WIP (It was on my to do list, thanks for the nudge :wink: )
Unfortunately I get this:

Can't locate the url

You?

Thank you. I have a DS-KB6003.
Same result. No url.

I’ve got an older Hikvision KB8112-IM doorbell. The open gate command is different according to this REST API reference.

Here is what worked for me:

curl --digest -u admin:pass -X PUT -d '<RemoteOpenDoor version="2.0" xmlns="http://www.isapi.org/ver20/XMLSchema"><gateWayIndex>1</gateWayIndex><command>unlock</command><controlSrc>src</controlSrc></RemoteOpenDoor>' http://<door_bell_ip>/ISAPI/VideoIntercom/remoteOpenDoor

Quick reference how to set up an “open gate” door button:

switch:
  - platform: command_line
    switches:
      open_gate_door:
        command_on: >
          curl --digest -u admin:pass -X PUT -d '<RemoteOpenDoor version="2.0" xmlns="http://www.isapi.org/ver20/XMLSchema"><gateWayIndex>1</gateWayIndex><command>unlock</command><controlSrc>src</controlSrc></RemoteOpenDoor>' http://<door_bell_ip>/ISAPI/VideoIntercom/remoteOpenDoor

I hope somebody will find this reference usefull.

All ISAPI info is here:

1 Like

For those of you using MotionEye, it is possible to use a webhook (instead of mqtt) :wink:
image

Sensor:

 - platform: template
    sensors:
      frontdoormotion_sensor:
        value_template: "{{ is_state('input_boolean.motiondoorcam', 'on') }}"
        friendly_name: Front Door Motion Sensor
        device_class: motion

Automation;

alias: Front Doorcam motion detected
description: ''
trigger:
  - platform: webhook
    webhook_id: doorcam
condition: []
action:
  - service: input_boolean.turn_on
    target:
      entity_id: input_boolean.motiondoorcam
  - delay:
      hours: 0
      minutes: 0
      seconds: 30
      milliseconds: 0
  - service: input_boolean.turn_off
    target:
      entity_id: input_boolean.motiondoorcam
mode: single
initial_state: true