maciej-or / hikvision_next

Home Assistant integration for Hikvision NVRs and IP cameras
104 stars 19 forks source link

Intrusion Detection not working #150

Open przemekp833 opened 6 months ago

przemekp833 commented 6 months ago

Hi, the intrusion detection (as well as motion detection), shows. The intrusion detection is all set in HIK, i get all the notifications in the app etc.

It seems the alarm server is set correctly, at least on the camera itself. This is set on each individual camera under configuration on each camera, not on the NVR, as it does not have this option (Alarm Server)

image

Nevertheless, the on the NVR device in HA it shows:

image

I'm not sure what to do to make it work to be honest. Help is appreciated. Thank you

PS. The cameras work in general, flawleslly i get the screenshots.

maciej-or commented 6 months ago

If you have cameras connected to NVR, it sends notifications, not cameras. You are right, Alarm Server options are not available in NVR's UI. That's why you should check Set alarm server using following address option in the integration config then integration sets that using API. Follow this thread for details https://github.com/maciej-or/hikvision_next/issues/23. You should remove your NVR from integration and add again.

przemekp833 commented 6 months ago

Thanks! Appreciated. Did it. Added the NVR again. The Diagnostic data shows everything correctly, as it is supposed. But the intrusion detection does not register any detection, it shows "Clear" all the time, so in this respect nothing has changed. I assume there must be something wrong elsewhere. Any support or hints appreciated

maciej-or commented 6 months ago

indeed, see https://github.com/maciej-or/hikvision_next/issues/149 it looks some NVRs don't support the way used by this integrations. Hikvision staff confirmed that.

bradkeifer commented 2 months ago

I have solved the issue I raised in #149 . Perhaps your issue has the same root causes?