1.2.2 • Published 3 years ago

@druuuuu/homebridge-hikvision v1.2.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Homebridge Hikvision plugin

**The original plugin that is based on handles IP cameras, this plugin handles Analog cameras.

Homebridge plugin that connects to your HikVision DVR and exposes your cameras in Homebridge. The plugin is heavily based on excellent homebridge-camera-ffmpeg.

This plugin will automatically discover all cameras connected to your DVR and will expose them to homebridge. You will get access to stream video (including sound) directly from your home app, will get push notification with screenshots of the motion events - this needs to be configured in HikVision DVR and additionally in Home app under home settings - you will need to enable notifications.

Installation

In order to use this plugin, you need to install homebridge-camera-ffmpeg and homebridge-hikvision as per below:

sudo npm install -g homebridge-camera-ffmpeg @ferronrsmith/homebridge-hikvision --unsafe-perm

Configuration

To configure, add this to your config.json for homebridge under platforms node:

{
  "platforms": [
    {
      "platform": "Hikvision",
      "host": "nvr-host",
      "port": 443,
      "username": "admin",
      "password": "very-secure-password"
    }
  ]
}

At this time, these are the only configuration options available. Once you've added the platform to your config, (re)start your homebridge instance, and configure your cameras on your iPhone or iPad, iOS will prompt you for each camera in your system.

Enable notifications in HikVision DVR

The plugin does not detect motion itself, it responds to events generated by the DVR using HTTP Event API. The relevant code for this lives at https://github.com/node-packages/homebridge-hikvision/blob/master/src/HikvisionApi.ts#L73.

You must set up notifications in the DVR configuration as per below screenshot:

image

You might also find this YouTube video useful:

https://www.youtube.com/watch?v=-R_dtE9o9WI

Setup Notifications