question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cross line alarm sensor does not work with IPC-Color4K-X-2.8MM

See original GitHub issue

Version of the custom_component

NAME = “Dahua” DOMAIN = “dahua” VERSION = “0.5.0”

Configuration

Camera: IPC-Color4K-X-2.8MM identical to Dahua HFW5849T1-ASE-LED. Firmware: 2.840.15OG002.0.R,build:2021-09-08 HA: core-2021.12.8


No log entries found

Describe the bug

I configured a tripwire rule in the IVS of the camera. The tripwire rule triggers the alerts in the web interface of the camera as expected. I added the camera to Home Assistant with the Dahua integration. The sensor “Cross line alarm sensor” was created inside Home Assistant for this camera. When I cross the tripwire, the sensor “Cross line alarm” is not triggered in Home Assistant. I checked the events in Home Assistant and I found the events related to “CrossLineDetection”. Below an example for a stop event.

It seems that the events are correctly received from the camera, but the sensor “Cross line alarm” of the camera is not updated. Any idea why?

"event_type": "dahua_event_received",
"data": {
    "name": "Outdoor street",
    "Code": "CrossLineDetection",
    "action": "Stop",
    "index": "0",
    "data": {
        "Class": "Normal",
        "CountInGroup": 1,
        "DetectLine": [
            [
                6353,
                2139
            ],
            [
                4551,
                1750
            ],
            [
                2530,
                1686
            ],
            [
                0,
                2236
            ]
        ],
        "Direction": "RightToLeft",
        "EventID": 10097,
        "GroupID": 52,
        "Name": "IVS-1",
        "Object": {
            "Action": "Appear",
            "BelongID": 0,
            "BoundingBox": [
                5192,
                1152,
                5656,
                2992
            ],
            "Center": [
                5424,
                2072
            ],
            "Confidence": 0,
            "LowerBodyColor": [
                0,
                0,
                0,
                0
            ],
            "MainColor": [
                0,
                0,
                0,
                0
            ],
            "ObjectID": 7299,
            "ObjectType": "Human",
            "RelativeID": 0,
            "Speed": 0,
            "humanTripLineDirection": 0
        },
        "PTS": 43034387550,
        "RuleID": 4,
        "Track": [],
        "UTC": 1641559601,
        "UTCMS": 503
    },
    "DeviceName": "Outdoor street"
},
"origin": "LOCAL",
"time_fired": "2022-01-07T11:46:42.412439+00:00",
"context": {
    "id": "bc088b9640c2e0de8346f2cc062b521b",
    "parent_id": null,
    "user_id": null
}

}

Debug log

dahua.zip

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:12 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
RobinHarteveldcommented, Apr 11, 2022

Hello all, Any news on this problem? I have the same problem(debug logs crossline alarm, but no trigger in HA). Camera: IPC-HDW5442TM-ASE Firmware: 2.800.0000000.19.R,build:2020-07-09

I think maybe the extra “data” in the trigger is not processed correctly by the add-on, but my scripting knowledge is not good enough to debug this.

Is there a way to debug this?

0reactions
timvdsmcommented, Aug 24, 2022

Indeed this doesn’t sound logical. I have a camera in front of my house, which sees my entry area and a part of the street. On the street, there are off course many humans passing by and they are generating the Smartmotion human detection. However i’ve created an IVS intrusion zone for my entry area. And i want an automation to run when a human enters this area. The Dahua camera is generating a CrossRegionDetection, however HA only receives a Smartmotion Human detection. So for me I am unable to trigger an automation, as it will fire the automation every time a human is detected in the street as well. Is there a possibility to change it?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix a Comm Failure Alert from your Xfinity Home Sensor
Learn how to fix a Comm Failure Alert from your Xfinity Home Sensor. ... it may indicate that the sensor has stopped working...
Read more >
Best Driveway Alarms and Sensors of 2023 - SafeWise
Guardline is our top pick for the best driveway alarm of 2023. ... like with Guardline, so the system won't work when the...
Read more >
Security Alarm Service & Troubleshooting | ADT Security AU
If a device is not working due to the battery running flat, your security and smoke detection system is at risk of being...
Read more >
Motion Sensor Does Not Work Consistently.
I installed the system about two weeks ago. I tested the system several times. The entry sensors work pretty well during those tests...
Read more >
Wireless Driveway Alarm FAQs - Guardline Security
Pairing issues can be frustrating, but we're here for you. Typically you will hear a small and short beep when the sensor successfully...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found