-
Notifications
You must be signed in to change notification settings - Fork 68
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
Human and Motion Alerts are not working #258
Comments
Try checking whether the IP address has changed, do you have it static via mac address? Each time mine has failed, I've deleted and re-added it back in. I don't know if there is a way to get the IP address of the unit via the dahua plugin or out of config but it would be helpful to be able to change it on the fly. |
IP has not changed. It has a dhcp reservation in my firewall. Motion alerts still come through to home assistant and I can still stream video in home assistant, its just the person detection that isn't working in HA, but they still work in the amcrest app. |
I've noticed the same issue with my doorbell events. Literally every other part of the integration continues to work fine, just human detection has stopped triggering. |
Same issue here. Human alerts is particularly key for me. The integration is working fine, including basic motion detection. Just not the binary sensors for human and vehicle detection. Home Assistant 2023.3.1 Running from ODroid N2 |
For anyone reporting AD410 Human/Motion/Button detection not working and not seeing any "dahua_event_received" events - did you update your firmware recently? The newest version (20221201) that is only available from the Amcrest download site has broken event handling. If you installed this, go back to that site and install the previous version (20210220). |
Door Bell Motion Alarm and Cross Region Detection seem to fire properly. Smart Motion Human never fires but I can set up a trigger on dahua_event_received with
And get a trigger for a person. |
I think this is a duplicate of my issue #276. Something must not be parsed correctly as the camera is certainly sending the event.
CrossLine is making to HA just fine though:
I'm on Dahua 2.80xxxx something. Looking in https://github.com/rroller/dahua/blob/main/custom_components/dahua/__init__.py on lines ~485 I suspect something is getting clobbered. |
@rroller any solution for this? |
Sorry. Short on time. I'll try looking soon. |
I'm seeing something similar to this. I configure the event trigger with the right data like so:
But the automation triggers for other events, Name is disregarded. I will check the code, in case the matching is not done properly. It is relatively tricky to match arbitrary YAML against a (likely) arbitrary event payload. Not sure what approach would work best, except perhaps verifying linearly that each key-value matches the input YAML (respecting depth). |
So, I may have found a workaround for some people out there. My issue was that I was only receiving 'VideoMotion' events and not 'SmartMotionHuman' or 'SmartMotionVehicle'. I presume that the 'attachcode' for 'SmartMotionHuman' may not actually be called this when attempting to subscribe to it. Instead of specifying individual names for the events to subscribe to, I changed this to 'All' and now I seem to be receiving the events correctly. Code location to change: See the change below: Original: A full restart of HA was required as well, otherwise the .py files weren't reloaded correctly. Hopefully this helps some others and could potentially be added as an 'All' option in the UI when configuring a device. |
@rroller Any idea on the filtering for specific events? And how to use the event data in a message? (ex. include specific attributes or elements from it) |
Still hitting this issue and it makes it impossible to filter high traffic VideoMotion events. |
I am using an Amcredt AD410 with the Dahua integration.
Home Assistant 2023.1.7
Supervisor 2023.01.1
OS 9.5
Running as a VM on esxi, if that matters.
Starting on feb 1, i am no longer getting motion events from my camera. My human detection broke before that, but i cant confirm the date in my HA logs. I went back to January 15th and have no Human Detected events since then. Everything works fine in the Amcrest app. I even turned on notifications again to make sure and ive gotten multiple human and motion notifications from the Amcrest app today.
The camera works in HA, though. I see live video and that works fine.
I tried to delete the integration and reinstall it, but that didnt fix any of the detection issues and actually broke the camera feed. I restored from a backup i took overnight and the camera came back, but no detection events.
Edited to add - i also tried listening for dahua_event_received events, but as i saw activity and received notifications in the Amcrest app, i saw no events come across on the HA side.
The text was updated successfully, but these errors were encountered: