New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AD410 Smart Human Detection no longer working #129
Comments
I did remove the integration and re-added it, restarted the system multiple times, etc. Tried 4 releases back and it worked again. |
Thanks for reporting. I'll dig into this. |
According to the log you posted I assume message = self.parse_response(data)
message_id = message.get("id") |
Any thing else you want me to try?
…On Fri, Dec 31, 2021 at 12:41 PM Ronnie ***@***.***> wrote:
According to the log you posted I assume message is null. I'll try to
guard against that. But so far I can't reproduce this :/
message = self.parse_response(data)message_id = message.get("id")
—
Reply to this email directly, view it on GitHub
<#129 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AV5TS6P67PL5NQRFV3MSLB3UTX2ODANCNFSM5LAMCRPA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I can't repro the error message but I am getting delayed human motion detection. I'll keep digging... |
One other thing…don’t know if this is relevant. Ad410 doesn’t support
vehicle detection, but until I opted into that option during setup human
detection didn’t work at all. I rolled back 4 releases opted in for
vehicle detection and human is working again as expected.
…On Fri, Dec 31, 2021 at 12:46 PM Ronnie ***@***.***> wrote:
I can't repro the error message but I am getting delayed human motion
detection. I'll keep digging...
—
Reply to this email directly, view it on GitHub
<#129 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AV5TS6LCWCXDSIC4GLO4HR3UTX3BPANCNFSM5LAMCRPA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
So far what I've noticed is that I'm not getting the smart human start event. But I do get the smart human stop event. Still digging... |
Happy to help debug...please let me know.
…-David
On Fri, Dec 31, 2021 at 4:02 PM Ronnie ***@***.***> wrote:
So far what I've noticed is that I'm not getting the smart human start
event. But I do get the smart human stop event. Still digging...
—
Reply to this email directly, view it on GitHub
<#129 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AV5TS6NZF5UX34LLUCEX3NDUTYR6FANCNFSM5LAMCRPA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
what's the exact version that works for you? I'll go through the commits to see if there's a bug in one of them |
0.9.26 works for me. I didn't try the versions between that and the most
recent which definitely doesn't work.
…On Fri, Dec 31, 2021 at 4:11 PM Ronnie ***@***.***> wrote:
what's the exact version that works for you? I'll go through the commits
to see if there's a bug in one of them
—
Reply to this email directly, view it on GitHub
<#129 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AV5TS6JI4G4QA4UPZ3S7353UTYTB5ANCNFSM5LAMCRPA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I don't think it's working on 0.9.26 either. It works after you first start up HA, but after 1 or 2 detections it'll stop detecting humans (I don't see the events coming from the doorbell even though the app itself gets the notification). |
Update: I'm getting close to solving this... I hope to having something tonight. |
Fix is released in https://github.com/rroller/dahua/releases/tag/0.9.31 |
I will give it a try. Thanks and happy New Year!
…On Fri, Dec 31, 2021, 7:19 PM Ronnie ***@***.***> wrote:
Fix is released in https://github.com/rroller/dahua/releases/tag/0.9.31
—
Reply to this email directly, view it on GitHub
<#129 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AV5TS6P2I3V2BSIQZGGNOS3UTZJAHANCNFSM5LAMCRPA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Just tested...seems to be working! What was the issue?
Thanks again!
On Fri, Dec 31, 2021 at 7:21 PM David Brenner ***@***.***>
wrote:
… I will give it a try. Thanks and happy New Year!
On Fri, Dec 31, 2021, 7:19 PM Ronnie ***@***.***> wrote:
> Fix is released in https://github.com/rroller/dahua/releases/tag/0.9.31
>
> —
> Reply to this email directly, view it on GitHub
> <#129 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AV5TS6P2I3V2BSIQZGGNOS3UTZJAHANCNFSM5LAMCRPA>
> .
> Triage notifications on the go with GitHub Mobile for iOS
> <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
> or Android
> <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
>
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>
|
In short, multiple events were returned from the camera and only one was being processed, causing some events to be skipped. Now it handles them all :) |
Prior to the latest release Smart Human Detection worked. After the update to 0.9.30 this sensor seems to have been broken. The Amcrest app is still reporting Human Detected. At the same timestamp in the HA 2 errors are present in the logs.
Version of the custom_component
0.9.30
-->
Add your logs here.
This error originated from a custom integration.
Logger: custom_components.dahua
Source: custom_components/dahua/vto.py:393
Integration: Dahua (documentation, issues)
First occurred: 3:48:58 PM (6 occurrences)
Last logged: 3:56:43 PM
Failed to read data: b' \x00\x00\x00DHIP\xb2\\xf1H\x08\x00\x00\x00{\x04\x00\x00\x00\x00\x00\x00{\x04\x00\x00\x00\x00\x00\x00{"id":8,"method":"client.notifyEventStream","params":{"SID":513,"eventList":[{"Action":"Start","Code":"CrossRegionDetection","Data":{"Action":"Appear","CfgRuleId":1,"Class":"Normal","CountInGroup":0,"DetectRegion":[[3102,2891],[0,1644],[0,8191],[4581,8191],[5428,4061],[4744,3334]],"EventID":10257,"EventSeq":60,"FrameSequence":8740172,"GroupID":60,"LocaleTime":"2021-12-30 15:48:58","Mark":0,"Name":"IVS-1","Object":{"Action":"Appear","Age":0,"Angle":0,"Bag":0,"BagType":0,"BoundingBox":[1336,1608,4280,8072],"CarrierBag":0,"Center":[2808,4840],"Confidence":0,"DownClothes":0,"Express":0,"FaceFlag":0,"FaceRect":[0,0,0,0],"FrameSequence":8740172,"Gender":0,"Glass":0,"HairStyle":0,"HasHat":0,"Helmet":0,"HumanRect":[0,0,0,0],"LowerBodyColor":[0,0,0,0],"MainColor":[0,0,0,0],"MessengerBag":0,"ObjectID":422,"ObjectType":"Human","Phone":0,"RelativeID":0,"SerialUUID":"","ShoulderBag":0,"Source":0.0,"Speed":0,"SpeedTypeInternal":0,"Umbrella":0,"UpClothes":0,"UpperBodyColor":[0,0,0,0],"UpperPattern":0},"PTS":44351293340.0,"Priority":0,"RuleID":1,"RuleId":1,"Source":-1.0,"Track":[],"UTC":1640879337,"UTCMS":156},"Index":0}]},"session":1223777458}\n', error: substring not found, Line: 385
Failed to read data: b' \x00\x00\x00DHIP\x900[Y\x08\x00\x00\x00{\x04\x00\x00\x00\x00\x00\x00{\x04\x00\x00\x00\x00\x00\x00{"id":8,"method":"client.notifyEventStream","params":{"SID":513,"eventList":[{"Action":"Start","Code":"CrossRegionDetection","Data":{"Action":"Appear","CfgRuleId":1,"Class":"Normal","CountInGroup":0,"DetectRegion":[[3102,2891],[0,1644],[0,8191],[4581,8191],[5428,4061],[4744,3334]],"EventID":10259,"EventSeq":62,"FrameSequence":8741658,"GroupID":62,"LocaleTime":"2021-12-30 15:53:29","Mark":0,"Name":"IVS-1","Object":{"Action":"Appear","Age":0,"Angle":0,"Bag":0,"BagType":0,"BoundingBox":[4416,3784,4928,5800],"CarrierBag":0,"Center":[4672,4792],"Confidence":0,"DownClothes":0,"Express":0,"FaceFlag":0,"FaceRect":[0,0,0,0],"FrameSequence":8741658,"Gender":0,"Glass":0,"HairStyle":0,"HasHat":0,"Helmet":0,"HumanRect":[0,0,0,0],"LowerBodyColor":[0,0,0,0],"MainColor":[0,0,0,0],"MessengerBag":0,"ObjectID":424,"ObjectType":"Human","Phone":0,"RelativeID":0,"SerialUUID":"","ShoulderBag":0,"Source":0.0,"Speed":0,"SpeedTypeInternal":0,"Umbrella":0,"UpClothes":0,"UpperBodyColor":[0,0,0,0],"UpperPattern":0},"PTS":44351564250.0,"Priority":0,"RuleID":1,"RuleId":1,"Source":-1.0,"Track":[],"UTC":1640879607,"UTCMS":276},"Index":0}]},"session":1499148432}\n', error: substring not found, Line: 385
Failed to read data: b' \x00\x00\x00DHIP\xb2\\xf1H\x08\x00\x00\x00{\x04\x00\x00\x00\x00\x00\x00{\x04\x00\x00\x00\x00\x00\x00{"id":8,"method":"client.notifyEventStream","params":{"SID":513,"eventList":[{"Action":"Start","Code":"CrossRegionDetection","Data":{"Action":"Appear","CfgRuleId":1,"Class":"Normal","CountInGroup":0,"DetectRegion":[[3102,2891],[0,1644],[0,8191],[4581,8191],[5428,4061],[4744,3334]],"EventID":10259,"EventSeq":62,"FrameSequence":8741658,"GroupID":62,"LocaleTime":"2021-12-30 15:53:29","Mark":0,"Name":"IVS-1","Object":{"Action":"Appear","Age":0,"Angle":0,"Bag":0,"BagType":0,"BoundingBox":[4416,3784,4928,5800],"CarrierBag":0,"Center":[4672,4792],"Confidence":0,"DownClothes":0,"Express":0,"FaceFlag":0,"FaceRect":[0,0,0,0],"FrameSequence":8741658,"Gender":0,"Glass":0,"HairStyle":0,"HasHat":0,"Helmet":0,"HumanRect":[0,0,0,0],"LowerBodyColor":[0,0,0,0],"MainColor":[0,0,0,0],"MessengerBag":0,"ObjectID":424,"ObjectType":"Human","Phone":0,"RelativeID":0,"SerialUUID":"","ShoulderBag":0,"Source":0.0,"Speed":0,"SpeedTypeInternal":0,"Umbrella":0,"UpClothes":0,"UpperBodyColor":[0,0,0,0],"UpperPattern":0},"PTS":44351564250.0,"Priority":0,"RuleID":1,"RuleId":1,"Source":-1.0,"Track":[],"UTC":1640879607,"UTCMS":276},"Index":0}]},"session":1223777458}\n', error: substring not found, Line: 385
Failed to read data: b' \x00\x00\x00DHIP\x900[Y\x08\x00\x00\x00{\x04\x00\x00\x00\x00\x00\x00{\x04\x00\x00\x00\x00\x00\x00{"id":8,"method":"client.notifyEventStream","params":{"SID":513,"eventList":[{"Action":"Start","Code":"CrossRegionDetection","Data":{"Action":"Appear","CfgRuleId":1,"Class":"Normal","CountInGroup":0,"DetectRegion":[[3102,2891],[0,1644],[0,8191],[4581,8191],[5428,4061],[4744,3334]],"EventID":10263,"EventSeq":66,"FrameSequence":8742602,"GroupID":66,"LocaleTime":"2021-12-30 15:56:43","Mark":0,"Name":"IVS-1","Object":{"Action":"Appear","Age":0,"Angle":0,"Bag":0,"BagType":0,"BoundingBox":[4496,3784,5088,5784],"CarrierBag":0,"Center":[4792,4784],"Confidence":0,"DownClothes":0,"Express":0,"FaceFlag":0,"FaceRect":[0,0,0,0],"FrameSequence":8742602,"Gender":0,"Glass":0,"HairStyle":0,"HasHat":0,"Helmet":0,"HumanRect":[0,0,0,0],"LowerBodyColor":[0,0,0,0],"MainColor":[0,0,0,0],"MessengerBag":0,"ObjectID":434,"ObjectType":"Human","Phone":0,"RelativeID":0,"SerialUUID":"","ShoulderBag":0,"Source":0.0,"Speed":0,"SpeedTypeInternal":0,"Umbrella":0,"UpClothes":0,"UpperBodyColor":[0,0,0,0],"UpperPattern":0},"PTS":44351752040.0,"Priority":0,"RuleID":1,"RuleId":1,"Source":-1.0,"Track":[],"UTC":1640879795,"UTCMS":461},"Index":0}]},"session":1499148432}\n', error: substring not found, Line: 385
Failed to read data: b' \x00\x00\x00DHIP\xb2\\xf1H\x08\x00\x00\x00{\x04\x00\x00\x00\x00\x00\x00{\x04\x00\x00\x00\x00\x00\x00{"id":8,"method":"client.notifyEventStream","params":{"SID":513,"eventList":[{"Action":"Start","Code":"CrossRegionDetection","Data":{"Action":"Appear","CfgRuleId":1,"Class":"Normal","CountInGroup":0,"DetectRegion":[[3102,2891],[0,1644],[0,8191],[4581,8191],[5428,4061],[4744,3334]],"EventID":10263,"EventSeq":66,"FrameSequence":8742602,"GroupID":66,"LocaleTime":"2021-12-30 15:56:43","Mark":0,"Name":"IVS-1","Object":{"Action":"Appear","Age":0,"Angle":0,"Bag":0,"BagType":0,"BoundingBox":[4496,3784,5088,5784],"CarrierBag":0,"Center":[4792,4784],"Confidence":0,"DownClothes":0,"Express":0,"FaceFlag":0,"FaceRect":[0,0,0,0],"FrameSequence":8742602,"Gender":0,"Glass":0,"HairStyle":0,"HasHat":0,"Helmet":0,"HumanRect":[0,0,0,0],"LowerBodyColor":[0,0,0,0],"MainColor":[0,0,0,0],"MessengerBag":0,"ObjectID":434,"ObjectType":"Human","Phone":0,"RelativeID":0,"SerialUUID":"","ShoulderBag":0,"Source":0.0,"Speed":0,"SpeedTypeInternal":0,"Umbrella":0,"UpClothes":0,"UpperBodyColor":[0,0,0,0],"UpperPattern":0},"PTS":44351752040.0,"Priority":0,"RuleID":1,"RuleId":1,"Source":-1.0,"Track":[],"UTC":1640879795,"UTCMS":461},"Index":0}]},"session":1223777458}\n', error: substring not found, Line: 385
and
This error originated from a custom integration.
Logger: custom_components.dahua
Source: custom_components/dahua/vto.py:105
Integration: Dahua (documentation, issues)
First occurred: 3:48:58 PM (6 occurrences)
Last logged: 3:56:43 PM
Failed to handle message, error: 'NoneType' object has no attribute 'get', Line: 97
Describe the bug
Smart Human Detection no longer works on the AD410 while it is still working in the Amcrest Smartphone App. At the same timestamp that a human is present the errors above are generated.
The text was updated successfully, but these errors were encountered: