Many thanks for the research Phil! Component support for the advanced intelligent eventCodes would indeed be very useful. I will do my best to help you test them.
I would think subscribing to events would be preferable to polling in any case. I really hope you do get a chance to look into this further. If it helps, there is code that exists now that I am pretty sure is using the subscribe method.
@johnnyletrois leveraged code that was found on ipcamtalk forum to link it to HA via MQTT (instead of BlueIris). Another HA user, @Sawey leveraged Johnny3’s code to create an HA Dahua-event component.
I tried to make it work with HASSIO but could not manage to get pyCurl to install. So here I am, enjoying your enhanced Amcrest component and hoping that a few more enhancements can really make it universal for both Dahua and Amcrest.