Hikvision Intergration

Good day,

I am following the docs for the Hikvision Intergration here: https://www.home-assistant.io/integrations/hikvision/

However I do not seem to be coming right.

I have added the following to my config file:

- platform: hikvision
  host: 192.168.1.65
  port: 80
  ssl: false
  username: "admin"
  password: "1234"
  customize:
    motion:
      delay: 30
    line_crossing:
      ignored: true

but when I go to check my config I get the following error:

Platform error sensor.hikvision - No module named ‘homeassistant.components.hikvision.sensor’

This leads me to think I have not installed the integration, however, I cannot find it on the integration list or on HACS?

What am I missing here?

I assume you mean configuration.yaml? if so the example documents show:

binary_sensor:
  - platform: hikvision
    host: 192.168.X.X
    port: 80
    ....
    ....

And not:

- platform: hikvision
  host: 192.168.1.65
  port: 80

Can you confirm where you have this yaml placed and if its correctly under the heading of ‘binary_sensor’

aah thank you so much, I was being silly, I had added it to my custom sensors.yaml when I see there is a binary_sensors.yaml file which I should have added.

This now works. Thank you very much.

I assume this will only be to access camera events?

How does one show the actual video footage on their dashboard?

The above integration is only for sensors via any preconfigured hikvision alarm triggers.

There are multiple different ways to add cctv video streams to home assistant and it’s a large subject, however the first thing you will need to do is discover your RTSP address to access the cameras.

Hikvision would be something like this:

rtsp://user:password@ipaddress:554/Streaming/channels/101

Where:
101 means stream 1 main stream
102 means stream 1 sub stream
201 means stream 2 main stream
Etc

Ok awesome, Then once I have established that what do I do?

Will this then work when I am not home? I assume not due to the local rstp IP address or will HA dashboard be smart and re-stream it up via the cloud link?

Add them to home assistant:

If you have access to your home assistant instance remotely, yes.