Hello,
I have few old Dahua EZIP cameras that does not support official API or any other integration so I have no other chance to integrate them only with emails.
Camera record on local FTP and I do not have or use any other sw .
I tried imap_email_content in HA and it is working but it is very slow and buggy; I can see emails standing in inbox and HS found and process them after 2-5 min or sometime never
My son put together a script python that will process emails received in Postfix and publish instant an MQTT event if camera send motion alarm email.
With small modifications this will work for any camera that can send email when it detect motion.
The script can be found on github - click
Another script that don't need Postfix - click

edit:
added processing email alarm from IPC camera
another script that don't need Postfix
I have few old Dahua EZIP cameras that does not support official API or any other integration so I have no other chance to integrate them only with emails.
Camera record on local FTP and I do not have or use any other sw .
I tried imap_email_content in HA and it is working but it is very slow and buggy; I can see emails standing in inbox and HS found and process them after 2-5 min or sometime never

My son put together a script python that will process emails received in Postfix and publish instant an MQTT event if camera send motion alarm email.
With small modifications this will work for any camera that can send email when it detect motion.
The script can be found on github - click
Another script that don't need Postfix - click

edit:
added processing email alarm from IPC camera
another script that don't need Postfix
Last edited: