Script that will parse email from Dahua EZIP & IPC camera and trigger mqtt alarm

MyDaHua

Getting the hang of it
Joined
Jul 10, 2020
Messages
91
Reaction score
37
Location
Poland
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

Screenshot_2021-12-22_20-19-55.png

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