Hikvision motion detection triggers a lot!

Hi,

I have a new Hikvision camera DS-2CD2387G2P-LSU/SL

I integrated it in home assistant :

  • platform: hikvision
    host: 192.168.1.107
    port: 80
    name: Camera Voorgevel
    username: !secret camera_voorgevel_login_rtsp
    password: !secret camera_voorgevel_psw_rtsp
    ssl: false
    customize:
    motion:
    ignored: false
    line_crossing:
    ignored: false
    field_detection:
    ignored: false
    tamper_detection:
    ignored: false
    faceSnap:
    ignored: true

The problem is that the only sensor which changes is the binary_sensor.camera_voorgevel_motion

Unfortunately this one trigger constantly, also when there is nothing.

I did the same with my older hikvision cameras (DS-2CD2386G2-ISU/SL) where it works fine.

Of course, it’s another firmware…

Any solution ?

Change the motion sensitivity in your camera settings.

Or turn off motion detection completely. I find line crossing in combination with intrusion detection more than enough for my Hikvision cameras.

I have a different Make of camera but what I do is turn the sensitivity for the pixel change motion detection all the way down and the trigger threshold all the way up. Then just rely on AI person, vehicle and Animal detection (in camera). You can’t just disable pixel motion detection as it disables all types of motion detection :roll_eyes: This works really well. 100% reliability for people and cars. Animals are less reliable (missed and false positive detections).

I forgot the most important thing: I’m getting the correct notifications in my Hik Connect app. For example, while I’ve only received three motion notifications in the last hour, binary_sensor.camera_voorgevel_motion is reporting “on” at least every minute.

Could it be that the AI ​​filtering (auto/human) isn’t being applied, meaning every movement (leaf on a tree, rain, etc.) is being sent to Home Assistant?

I do that with my other Hikvision cameras, but I don’t have that possibility on this new on…

Yes so…

This is the only thing I can change… Changing to “0” gives me no detection at all (also not in the hik-connect app), changing to “20” gives me the false motion detections… Default was “60”.

What are the other configuration modes in the dropdown list?

Expert mode, where you can enabled/disabled some area’s at certain times (didn’t look at that for the moment) :slight_smile:

Meanwhile, it’s become clearer: the camera sends motion detection to Home Assistant, even if the movement occurs outside my selected zone!

Specifically: I select my driveway, but every time a car passes on the street, I get a signal in Home Assistant :worried:

Are the settings/changes being saved?
Did you reboot the camera after changing?
Have you checked the FW updates (if any available) if something is mentioned related to this?

These are the “saved” settings :

I use the last firmware : V5.7.20 build 241120

I only have one user :

And one admin user for ONVIF :

Just did a reboot of the camera en home assistant again, just to be sure :slight_smile:

According to chatgtp home assistant only gets the unfiltered motion detection on the whole picture, but I can’t imagine that…do you use motion detection in home assistant of this camera ?

But the question remains: what do you want to trigger on, any motion or people? If you have sensors for both, ignore motion and trigger op people detection. The motion detection is only useful for the camera to decide what areas to check for people so the AI has less work.

I want only a trigger on people & cars on my drive way. That works fine in the Hik-Connect app.

In home assistant I have all these entities :

ONVIF integration
- binary_sensor.camera_voorgevel_cell_motion_detection
- binary_sensor.camera_voorgevel_field_detection

HikVision integration
- binary_sensor.camera_voorgevel_motion
- binary_sensor.camera_voorgevel_line_crossing
- binary_sensor.camera_voorgevel_detection_field_detection
- binary_sensor.camera_voorgevel_entering_region
- binary_sensor.camera_voorgevel_exiting_region

Only binary_sensor.camera_voorgevel_cell_motion_detection and binary_sensor.camera_voorgevel_motion are changing, the others are allays on ‘clear’ :

Then I would suggest looking in to Frigate if the integration does not provide access to the AI features for detection.

Are they using Frigate anyway?