More than one IMAP email

I am already using the imap platform for my personal email and I am using automations with great success, but now I want to setup one more mail and I dont seem to understand what is going on.

Here is the error:

Platform imap not ready yet. Retrying in 150 seconds.

That is my sensors.yaml:

- platform: imap
  server: imap.gmail.com
  port: 993
  username: [email protected]
  password: Iwonttellyoumypass
  folder: Inbox

- platform: imap
  server: imap.gmail.com
  port: 993
  username: [email protected]
  password: Iwonttellyoumypass
  folder: Inbox

What is wrong with my configuration? Or maybe it is something else?

OK, I got it. When I setup my new gmail account, google sent me an email asking for permission for “less secure apps”. Of course I agreed and turned on the feature to let HA read my emails, but it looke like it is bugged so it didnt actually enable the access.

For anyone reading this the solution is:
Go to your account settings (click your avatar on top right corner at your gmail and then click my account)
Then go to Sign-in & security and click Apps with account access.
Turn on Allow less secure apps.

com

1 Like