[new Addon] ProtonMail bridge

Hi !

This is my first contribution to Home Assistant, and I hope it will be useful to some of you. I created an addon to integrate the ProtonMail bridge in Home Assistant.

For those having a ProtonMail account, it is impossible to send an email using the SMTP integration directly. Instead we have to install the ProntonMail bridge and use it as a SMTP server.

This is the reason why I created this addon. I recently moved from Gmail to ProtonMail and I did not want my email notifications to go to my old Gmail address.

Warning, this is the first version and it’s working, but it can be hard to authenticate especially if you have the two factor authentication enabled. In this case, write in the configuration the current 2nd factor code and restart the addon. If the authentication is failing, then update the 2nd factor code in the configuraiton and restart the addon. Eventually the authentication will work.

I am working on an improved version, to better manage the authentication.

Here is the repository:

6 Likes

Hi. Thank you for creating this addon. I use ProtonMail as well including for my own domain so I was wondering how to send messages through it.

I have a couple of questions around the bridge software. Do I need to manually install ProtonMail Bridge on the same server as HomeAssistant? How does the plugin know where to look for PM Bridge?

I think I figured it out on my own. I noticed a PM Bridge success log in event in my ProtonMail logs. I went back to this add-on and saw that it generated the password in the Logs tab. I used that in the configuration. This means your add-on installs PM Bridge along with it. That makes sense. Great work!

Hi @xen, I’m loving this add-on for sending notifications or alerts. Is there a way to configure it for use with the IMAP integration? I would love for HA to be able to react to my Proton address receiving emails.

2 Likes

Would this work for syncing Proton Calendar or is it just set up to sync mail?

1 Like

Under the hood it is using Protonmail Bridge, which I believe can only be used to send or receive emails. So I think this addon could not be updated to receive calendar events.

1 Like

I’m looking for the same thing. Can this be used with the HA Imap integration for scraping mails?

1 Like

Can this be used to access the calendar as well?

Bridge is only for Email still. I am hoping with Proton working with Standard Notes they might start doing more in the Self Hosting space now.

Can this be used to access the inbox, or is it only outgoing? I’m trying to set up Mail and Package Tracking, but my notifications come into my Proton account. I was going create a forwarding rule to send them to Gmail, but it would be awesome if I didn’t have to do that.

I have the same intention. Have you tried this yet?

Update: Read me says - You can use this add-on to send notifications on Home Assistant using your ProtonMail account. You cannot use this addon to read your e-mails from your ProtonMail account.

I just installed and configured this add-on for Proton Mail notifications in HA.
I finally got everything figured out (the recipient email threw me though/still not 100% it’s right)>
Anyway, all errors have ceased so I think it’s right. Now, I am not getting any notifications that I’m receiving emails in HA. What could cause that? I am using my sender email as the sender and recipient is the one in config.yaml file.
Any ideas?

So… I’m not quite a noob, but I cannot seem to find the password that protonmail bridge is supposed to generate for me? The logs don’t show anything about a password anywhere… but also I can only seem to find the logs within the add on, while the documentation says we should be checking the logs of the supervisor? Can’t figure out how to do that, any help appreciated!

Is this add-on still working? I tried installing it, used my Protonmail username, password and MFA code, but it keeps sating “Cannot connect - Please check errors above”, but there’s nothing above or informative.

Go to Settings => System => Logs.
At the top right is a dropdown that lets you change the scope of your logs, change it to Supervisor and you’ll see the logs you’re asking about.