@xarrar/homebridge-hikvision
v1.0.3
Published
> **The original plugin that is based on handles IP cameras, this plugin handles Analog cameras.
Downloads
14
Readme
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.
Intent
This is fork from https://github.com/node-packages/homebridge-hikvision project the purpose to add support for cloudflare access, to be able to access remotely.
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 @xarrar/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",
"cf_id":"CF-Access-Client-Id:",
"cf_secrect":"CF-Access-Client-Secret"
}
]
}
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:
You might also find this YouTube video useful:
https://www.youtube.com/watch?v=-R_dtE9o9WI