Google Calendar - Received invalid token data

I have been trying to add Google Calendar Integration and obviously I have messed up.
Whenever I try to add this Integration I get the message " Received invalid token data. ".

It looks like I did something wrong. The Integration does NOT appear in the list of my existing integrations and therefore I can not delete it.

What can I do ?

Hello.

I had the same problem. In my case I have configured Google Calendars before in my configuration.yaml.

I decided to remove this entry and configure the integration in the UI. When installing integration I got error message “Recieved invalid token data”.

I resolved my problem by removing the stored credentials for google in .storage folder.

Be careful and make sure you have backups :slight_smile:

Thanks so much !!! Where can I find the storage folder ? I looked for it but (I am a novice) can not find it.
Is there a simple way to install Google Calendar as it appears pretty complicated to me ?

Thanks so much for your kind help !!!

I had the same problem as you did. I was able to find the answer toward the bottom of this page: https://github.com/home-assistant/core/issues/70241 . What I had to do is go to the overflow menu on the integrations page (the three dots at the top right side) and you will see your incorrect info for google calendar. I deleted mine (I had two) and when I went to add the Google Calendar integration again, it worked. Hope this helps.

19 Likes

Thanks !!! That did the job.
I am on a trip and will try to add the integration again when I am back home.
If you allow me, I will ask for your help if I get stuck again because adding this integration is not easy .

1 Like

Sure, I’ll try to help as I can. I’m still trying to get my head around how to activate Google Calendar entries since the changes in Home Assistant.

I understand. It may take a few days before I try to add the Google Calendar integration again. I will keep you posted.

Follow the instructions in Application Credentials - Home Assistant but instead of adding a credential, delete the existing credential, then start over. Your oauth client id or client secret is incorrect.

Ignore the advice above about deleting tokens from storage folders, that is not relevant anymore.

1 Like

It is obvious that I am missing something and admittedly I am lost. This is what I have, which seems to confirm that I have the API enabled.

I appreciate all the help I can get !!!

I am really stuck. I am trying to follow these instructions but when I get to enable the API, I am supposed to click on ‘Go to credentials’, but I don’t see this anywhere.

Where should I go ?

I am pleased to inform that, after trial & error, I succesfully added Google Calendar to HA. I will now have to learn how to use it. Thanks to all those that gave me advise.

Shortly, follow this linkedpage : Application Credentials - Home Assistant