home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.73k stars 29.98k forks source link

Every week the google_mail integration disconnects with 1 repair, Authentication Expired, Link Google Account, This step requires you to visit an external website to be completed. #115560

Closed gth001 closed 5 months ago

gth001 commented 5 months ago

The problem

Every week I have to re-grant permission to home assistant to my GMail account, then it works for another week, then disconnects. I only notice because I stop getting emails from Home Assistant.

How do I keep it permanently connected?

What version of Home Assistant Core has the issue?

core-2024.4.2

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

google_mail

Link to integration documentation on our website

https://www.home-assistant.io/integrations/google_mail/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 5 months ago

Hey there @tkdrob, mind taking a look at this issue as it has been labeled with an integration (google_mail) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `google_mail` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign google_mail` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


google_mail documentation google_mail source (message by IssueLinks)

tkdrob commented 5 months ago

We use GitHub to track issues with integrations. This is not an issue with the integration. User support should be requested in the community forum instead.

From first look, it looks like you did not follow step 10 in the instructions. Either you had this set up for a very long time in this manner or you skipped over it. If I recall correctly, that step was added later on but it has been there for quite some time. Perhaps you had one of the other integrations enabled and so you never saw that part?

gth001 commented 5 months ago

Thank you very much, it seems I did skip step 10 as you guessed https://www.home-assistant.io/integrations/google_mail .

Select OAuth consent screen again and 
under Publishing status, select Publish app.
Otherwise your credentials will expire every 7 days.

I was talking to some people with the same issue, so I will pass on the tip to them too.