Note that per the above examples, “CrossRegionDetection” is normally used for human detection on the AD410, but this odd/undocumented IntelliFrame event occurs in tandem.
For what it’s worth, the CrossRegionDetection event provides a lot more information in the payload which may only be useful in the future if the AD410 firmware is updated to select other object types like vehicles besides just humans.
Event Code: CrossRegionDetection Payload: {'Code': 'CrossRegionDetection', 'action': 'Start', 'index': '0', 'data': {'Action': 'Appear', 'CfgRuleId': '1,', 'Class': 'Normal', 'CountInGroup': '0,', 'DetectRegion': '[', 'Direction': 'Enter', 'EventID': '10839,', 'EventSeq': '8,', 'FrameSequence': '23472680,', 'GroupID': '8,', 'Mark': '0,', 'Name': 'IVS-1', 'Object': '{', 'Age': '0,', 'Angle': '0,', 'Bag': '0,', 'BagType': '0,', 'BoundingBox': '[', 'CarrierBag': '0,', 'Center': '[', 'Confidence': '0,', 'DownClothes': '0,', 'Express': '0,', 'FaceFlag': '0,', 'FaceRect': '[', 'Gender': '0,', 'Glass': '0,', 'HairStyle': '0,', 'HasHat': '0,', 'Helmet': '0,', 'HumanRect': '[', 'LowerBodyColor': '[', 'MainColor': '[', 'MessengerBag': '0,', 'ObjectID': '4278,', 'ObjectType': 'Human', 'Phone': '0,', 'RelativeID': '0,', 'SerialUUID': '', 'ShoulderBag': '0,', 'Source': '-1.0,', 'Speed': '0,', 'SpeedTypeInternal': '0,', 'Umbrella': '0,', 'UpClothes': '0,', 'UpperBodyColor': '[', 'UpperPattern': '0', 'PTS': '46128302210.0,', 'Priority': '0,', 'RuleID': '1,', 'RuleId': '1,', 'Track': '[],', 'UTC': '1630248627,', 'UTCMS': '181'}}
Event Code: IntelliFrame Payload: {'Code': 'IntelliFrame', 'action': 'Pulse', 'index': '0', 'data': {'Action': 'Start'}}
The main problem with getting new options added to the core Amcrest Integration is that no more YAML configurations can be added. If/when “config flow” is added to this code to provide option selections via the UI, then new sensors like this can be fairly easily added.
Until then, parsing events and optionally creating binary sensors for them is what must be done.
(EDIT: Or you can try the custom Dahua Integration which has a plethora of selectable sensors)