Cross line alarm sensor does not work with IPC-Color4K-X-2.8MM
See original GitHub issueVersion 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
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:12 (3 by maintainers)
Top GitHub Comments
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?
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?