Monitor your Hikvision NVR

Hi,

I have just purchased a DS-7208HQHI-K1/A with firmware V4.21.000build 190722.

Under Network / advance settings there is no tab for SNMP., I tried downgrading the firmware right back to STD_V3.5.10_Build170518 and others in between but still no luck

Is SNMP being phased out or is there another way to integrate this platform?

Here is screenshots from my NVR - menu should be same neverless of language…

I hope that this helps you…

1 Like

This is what I have

BASIC SETTINGS

ADVANCED SETTINGS

Cannot find SNMP anywhere.

Go to NVR settings but not via web browser but directly plug in monitor via VGA or HDMI cable… then follow my steps…

Also be sure that you have the latest FW?

I have a DS-7208 too and SNMP is not enabled either on the web UI or native configuration menu. I am on the latest firmware. As per this document, SNMP is not available for DS-7208 model.

Thanks @tibmart for nice NVR sensor.

I changed NVR uptime from minutes to days:

 ################# HIKVISIOn NVR ##############################
  - platform: snmp
    name: 'nvr_uptime'
    host: 192.168.XXX.XXX
    baseoid: 1.3.6.1.2.1.1.3.0
    accept_errors: true
    unit_of_measurement: 'days'
    value_template: '{{((value | int) / 8640000) | int}}'

It seems the NVR’s time is in centiseconds 10-2s

1 Like

after updating the firmware of the nvr, the sensors no longer work via snmp.

I tried via putty from terminal and it works properly, for example:

snmpget -v 2c -c public -Oqv 192.168.0.4 1.3.6.1.2.1.1.3.0
0: 9: 53: 48.29

but if I use in configuration.yaml:

  sensor:
    - platform: snmp
      name: 'nvr_uptime'
      host: 192.168.0.4
      baseoid: 1.3.6.1.2.1.1.3.0
      accept_errors: true
      unit_of_measurement: 'minutes'
      value_template: '{{((value | int) / 6000) | }} int '

I receive:
sensor.nvr_uptime unknown

I also tried:

sensor:
   - platform: command_line
     name: 'test'
     command: "snmpget -v 2c -c public -Oqv 192.168.0.4 1.3.6.1.2.1.1.3.0"

or

   - platform: command_line
     name: 'test1'
     command: "/ usr / bin / snmpset -v 2c -c public -Oqv 192.168.0.4 1.3.6.1.2.1.1.3.0"

I receive:

sensor.test unknown friendly_name: test
sensor.test1 unknown friendly_name: test1

how can i solve?

Hi all,

I’m rebuilding my HA instance as the old one had accumulated too many years of tests and things that not always work :frowning:

Anyways, just to let you know that when I tried the SNMP sensor, it didn’t work for me at the first time, and I know this was working before.

After some frustration, I added:

community: public

(I was omitting it before as “public” is the default value)

like in:

- platform: snmp
  name: 'nvr_uptime'
  host: !secret ip_hikvision
  community: public
  baseoid: 1.3.6.1.2.1.1.3.0
  accept_errors: true
  unit_of_measurement: 'minutes'
  value_template: '{{((value | int) / 6000) | int}}'

and suddenly all my SNMP sensors started working at once.

HA v0.114.4

Hope this helps.

Same for me, but I also had to specify the protocol version for each sensor.

  - platform: snmp
    name: 'NVR Uptime'
    host: 192.168.200.246
    community: public
    version: 2c
    baseoid: 1.3.6.1.2.1.1.3.0
    accept_errors: true
    unit_of_measurement: 'Days'
    value_template: '{{((value | int) / 8640000) | int}}'

1 Like

I had issue on how to set input alarm trigger, for use in my alarm system.
In case somebody will be having problem im writing the solution.
Task:
Monitor input alarm from Hikvision DVR using API xml

  - platform: command_line
    name: active_alarm
    command:  'curl -k --silent --user LOGIN:PASSWORD http://HIKVISSION_IP/ISAPI/System/IO/inputs/1/status | sed -n "s:.*<ioState>\(.*\)</ioState>.*:\1:p"'
    scan_interval: 60

I am using a ds-7604ni-k1/4p NVR but i am missing the SNMP option. Using firmware V4.30.000 build 200508 which is the newest. Someone any idea??

1 Like

Did you ever get this working?

Hmm. I’m on firmware V4.22.005 build 191208, so a few releases behind you. I have the SNMP options under Network / Advanced on the Web UI. So it’s not a firmware problem:

image

This is on a DS7608NI-I2 / 8P. They must have removed SNMP support from some of their budget models (the -k1 and -k2 series is what they call “Value Express” models).

I think so, i do not have that option. Was hoping to enable snmp…

Can you share your SNMP settings? as I see you have some other intresting ones then the oriinal one, or share the IOD’s

thank you

sensor:
  - platform: snmp
    name: 'NVR Serial #'
    host: 192.168.200.246
    community: public
    version: 2c
    baseoid: 1.3.6.1.4.1.50001.1.3.0
    accept_errors: true

  - platform: snmp
    name: 'NVR Uptime Days'
    host: 192.168.200.246
    community: public
    version: 2c
    baseoid: 1.3.6.1.2.1.1.3.0
    accept_errors: true
    unit_of_measurement: 'Days'
    value_template: '{{((value | int) / 8640000) | int}}'

  - platform: snmp
    name: 'NVR Uptime Hrs'
    host: 192.168.200.246
    community: public
    version: 2c
    baseoid: 1.3.6.1.2.1.1.3.0
    accept_errors: true
    unit_of_measurement: 'Hrs'
    value_template: '{{((value | int) / 360000) | int}}'

  - platform: snmp
    name: 'NVR Uptime Mins'
    host: 192.168.200.246
    community: public
    version: 2c
    baseoid: 1.3.6.1.2.1.1.3.0
    accept_errors: true
    unit_of_measurement: 'Mins'
    value_template: '{{((value | int) / 6000) | int}}'

  - platform: snmp
    name: 'NVR Status'
    host: 192.168.200.246
    community: public
    version: 2c
    baseoid: 1.3.6.1.4.1.50001.1.102.0
    accept_errors: true
    value_template: >-
      {% if value is equalto "1" %}
        Online
      {% else %}
        Offline
      {% endif %}

  - platform: snmp
    name: NVR Disk Count
    host: 192.168.200.246
    community: public
    version: 2c
    baseoid: 1.3.6.1.4.1.50001.1.240.0
    accept_errors: true
    unit_of_measurement: HDD

  - platform: snmp
    name: 'NVR Disk 1 Status'
    host: 192.168.200.246
    community: public
    version: 2c
    baseoid: 1.3.6.1.4.1.50001.1.241.1.3.1.0
    accept_errors: true
    value_template: >-
      {% if value is equalto "0" %}
        Normal
      {% elif value is equalto "1" %}
        Unformatted
      {% elif value is equalto "2" %}
        Abnormal
      {% elif value is equalto "3" %}
        Smarf Failed
      {% elif value is equalto "4" %}
        Mismatched
      {% elif value is equalto "5" %}
        Idle
      {% elif value is equalto "6" %}
        Not Online
      {% elif value is equalto "10" %}
        Repairing
      {% elif value is equalto "11" %}
        Formatting
      {% else %}
        Not Detected
      {% endif %}

  - platform: snmp
    name: 'NVR Disk 2 Status'
    host: 192.168.200.246
    community: public
    version: 2c
    baseoid: 1.3.6.1.4.1.50001.1.241.1.3.2.0
    accept_errors: true
    value_template: >-
      {% if value is equalto "0" %}
        Normal
      {% elif value is equalto "1" %}
        Unformatted
      {% elif value is equalto "2" %}
        Abnormal
      {% elif value is equalto "3" %}
        Smarf Failed
      {% elif value is equalto "4" %}
        Mismatched
      {% elif value is equalto "5" %}
        Idle
      {% elif value is equalto "6" %}
        Not Online
      {% elif value is equalto "10" %}
        Repairing
      {% elif value is equalto "11" %}
        Formatting
      {% else %}
        Not Detected
      {% endif %}

  - platform: snmp
    name: 'NVR Disk 1 Capacity'
    host: 192.168.200.246
    community: public
    version: 2c
    baseoid: 1.3.6.1.4.1.50001.1.241.1.5.1.0
    accept_errors: true
    unit_of_measurement: 'TB'
    value_template: '{{((value | int) / 1000000) | round (2)}}'

  - platform: snmp
    name: 'NVR Disk 2 Capacity'
    host: 192.168.200.246
    community: public
    version: 2c
    baseoid: 1.3.6.1.4.1.50001.1.241.1.5.2.0
    accept_errors: true
    unit_of_measurement: 'TB'
    value_template: '{{((value | int) / 1000000) | round (2)}}'

  - platform: snmp
    name: 'NVR Disk 1 Free Space'
    host: 192.168.200.246
    community: public
    version: 2c
    baseoid: 1.3.6.1.4.1.50001.1.241.1.4.1.0
    accept_errors: true
    unit_of_measurement: 'MB'

  - platform: snmp
    name: 'NVR Disk 2 Free Space'
    host: 192.168.200.246
    community: public
    version: 2c
    baseoid: 1.3.6.1.4.1.50001.1.241.1.4.1.0
    accept_errors: true
    unit_of_measurement: 'MB'

  - platform: snmp
    name: 'NVR CPU Freq'
    host: 192.168.200.246
    community: public
    version: 2c
    baseoid: 1.3.6.1.4.1.50001.1.201.0
    accept_errors: true

  - platform: snmp
    name: 'NVR CPU Num'
    host: 192.168.200.246
    community: public
    version: 2c
    baseoid: 1.3.6.1.4.1.50001.1.200.0
    accept_errors: true

  - platform: snmp
    name: 'NVR Memory'
    host: 192.168.200.246
    community: public
    version: 2c
    baseoid: 1.3.6.1.4.1.50001.1.220.0
    accept_errors: true
    unit_of_measurement: MB
2 Likes

any ideas on this to work with intelbras dvr?

IDN, what does the interface look like, do you have a model # / manual, from a quick google it looks like dahua but I could be wrong.

yeah, this model.

Intelbras MHDX 1104