If I click on “ADD ENTRY” It takes me to a webpage that says:
"Access blocked: This app’s request is invalid
[email protected]
You can’t sign in because this app sent an invalid request. You can try again later, or contact the developer about this issue.
If you are a developer of this app, see error details.
Error 400: redirect_uri_mismatch"
I would like to also add Birthdays… but now sure how. Originally these items were configured in configuration.yaml. Home Assistant imported them into the integration. However, not sure how to add “Birthdays” which I can see on the Google Calendar website.
You did not setup your API credentials correctly. The error says exactly which part you missed: adding the correct Authorized Redirect URI.
Also, does your API credentials include access to your contacts? I would assume that is needed to see/read the birthdays calendar, as that is where the information comes from. (Assuming this is Google’s autogenerated birthdays calendar, and not one you’ve made manually.)
Thank you so much for responding. The Client ID I’m currently using already has read/write/edit access to all my calendars that I see associated with my Google account, all except for birthdays. I am not sure where to specify the correct Authorized Redirect URI. I also don’t see where I include access to my contacts for my Client ID that I’m currently using in Home Assistant.
If you could kindly point me where to define the correct Authorized Redirect URI on the google console, please let me know.
So I checked how birthdays work in the Google Calendar API. Turns out they are not actually a separate calendar, they actually reside in the user’s primary calendar but as a special event type. So you will never be able to get such a calendar into HASS unless the developers of the Google Calendar integration implements specific support for this event type.
This is done in the Google Developer Console, when you create your API credentials. This may or may not always have been necessary, it is quite likely that the instructions have changed over time as integrations have evolved. While I have created Google API credentials before I didn’t do so specifically for HASS until yesterday when the official Google Drive backup integration was launched.
But again, this won’t help you get a birthdays calendar into HASS, as that simply isn’t possible currently.
Man, I wish I hadn’t deleted my existing credentials and removed my existing working Google Calendar Integration. I just added new credentials and even added the correct redirect URI. However, now when I try to add the Google Calendar Integration, it shows the same redirect URI error message and doesnt let me add the Google Calendar integration. I don’t know what to do now.
Okay I finally was able to get this working. As you mentioned, birthdays are still not included. However, at least now when i click on the external link, it doesnt give me a redirect uri error.
Interestingly, I have a related but opposite issue. Now that these are integrated into the main calendar, they are showing as all day events that block HA from seeing anything else.
Do you see the Birthday calendar provided by Google in addition to all the other ones? I don’t think that’s possible. I set it up perfectly this time; and still got all the same calendars, except for Birthdays (the auto-generated Birthdays) on Google Calendar website below:
To remove all your Google calendar events from HA’s calendar , go to:
Settings/Devices & Services
Click the 3 dots at the top/right corner of the screen under Devices & Services
Select: Application credentials
You will see the credentials for your Google Calendar, click on the 3 dots for this item and select: Delete