Skip to content
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

Amcrest AD410 - Smart Human Detection not triggering with 0.9.44 release #243

Open
ingrove opened this issue Dec 8, 2022 · 6 comments
Open

Comments

@ingrove
Copy link

ingrove commented Dec 8, 2022

After upgrading from 0.9.43 to 0.9.44, Smart Human Detection is no longer being triggered. It appears that Cross Region Detection is triggering instead. Running HA 2022.12.0, Supervisor 2022.11.2, Frontend 20221207.0-latest.

@ryang3d
Copy link

ryang3d commented Dec 10, 2022

Same issue here. Downgrading to 0.9.43 helps though

@Fran6u
Copy link

Fran6u commented Dec 11, 2022

Same issue here since the update..

@chowhi123
Copy link

Same here

@GaryOkie
Copy link

GaryOkie commented Dec 16, 2022

The AD410 has never implemented SMART Motion Detection (SMD) capability. From day 1, it has issued IVS CrossRegionDetection for Human detection events. In newer Dahua cameras, these are selectable - SMD versus IVS, but not the doorbell.

Maybe Rroller's code previously tried to simplify things in the config UI with the binary sensors so that it equated SMD to CrossRegionDetection for any form of Human Detection - and this was backed out to avoid conflict with Dahua?

You can just select the "Cross Region Detection" sensor in the UI instead.

For clarification, here is a snippet of the relevant AD410 event payload when it trips for Human Detection...

event_type: dahua_event_received
data:
  camera: FrontDoorbell
  event: CrossRegionDetection
  payload:
    Code: CrossRegionDetection
    action: Start
    index: "0"
    data:
      Action: Appear
      EventID: 10059
      Name: IVS-1
        ObjectID: 3774
        ObjectType: Human

An alternative, is you can set up your automation to trigger on this specific event, as so:

  - platform: event
    event_type: dahua_event_received 
    id: Human Detected
    event_data:
      event: CrossRegionDetection
      payload:
        action: Start
        data:
          ObjectType: Human

@coolhand72
Copy link

I am also having this same issue with my fleet of Amcrest Cameras. I suppose re-writing everything is an option to use Cross Region Detection instead of Smart Human Detection. But before I go to all the trouble, could I please receive clarification that this is the official fix? Or will the integration be restored to its previous functionality?

@GaryOkie
Copy link

My take is this was a breaking change that fixed other reported conflicts. See the notes in the most recent commit here: c73afbf

I can't give you any official clarification other than what can be read here.

If you enable cross region detection sensor in the UI, isn't just changing (or adding) the associated binary sensor in your automations all the "re-writing" that needs to be done?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants