Calendar - Google Calendar not all entries showing

Hi All,

I have the calendar in the side bar and I have setup api connectivity to my google calendar.

When I go into calendar on HA I see a list on the left under “My Calendars” which shows Contacts, Garbage Collection (from Bruxy’s Garbage addin), Holidays in Australia and [email protected] all ticked. In the calendar space I see Birthdays, public holidays, garbarge collection days but only 2 of my many monthly appointments.

So I dont understand why 2 are showing only. I thought it must be because I have them in one calendar and the rest in another on google. Having looked into google everything points to a single [email protected] address (my personal email address is attached to settings in gmail) which is why I assume why I get the tick box in my email address on the left column in HA.

I place a test meeting in google calendar from my pc and it shows up on my phone. I place a test meeting in google calendar on my phone and it shows up on my pc but neither show up on my HA google calendar.

Has anyone seen this or does any errors stand out that I am missing…

thanks

From thé docs:

max_results

(integer)(Optional)

Max number of entries to retrieve

Default value:

5

Thanks Francis,

I can see what your saying and see it in the docs. However due to my inexperience I cannot get the config file to compile. So I guess Im not writing my config correctly.

google:
  client_id: 23456789abcdefgh-apps.googleusercontent.com
  client_secret: shhhhhh123456
  
  max_results: 30

does this look incorrect.

peter

This should go into the google_calendars.yaml

I have the same missing entry problem. Tried adding max_results: 30 to google_calendars.yaml as suggested and got the following error on reboot:

Calendar Invalid Data: extra keys not allowed @ data['entities'][0]['max_entries']

When I look at google_calendars.yaml I find that a second set of calendars has been created identical to the first but without the max_entries line.

Interestingly the “Holidays in the United Kingdom” calendar has far more than five entries, visible months ahead. It’s my personal calendar that only has five, although recurring entries in my personal calendar appear every week/month indefinitely.

A bit confusing.

After a bit of trial and error… max_results: xx should only be added to the cal_id of your personal calendar in google_calendars.yaml. If you add it to a Google-generated cal_id (like Holidays in the United Kingdom) it throws the error.


Is there a way to enlarge the calendar window? Otherwise, is there a way to exclude the calendar icon from the supervisor side panel?

1 Like

I had this problem - the refresh button top right hides the edit dashboard menu so there’s nothing you can do.

However… When I went to the Lovelace page in Configuration I found that the calendar dashboard did not appear there. I created a new dashboard and put the calendar card on it and now editing magically becomes possible - you can get a nice big display by putting it in panel mode.

The downside is that you then have two calendars… To hide the one you don’t want, get into editing mode by clicking and holding the “Home Assistant” at the top of the side panel.

hi, after upgrade to latest version i have problem with google callendar:

Logger: homeassistant.util.package
Source: util/package.py:95
First occurred: 13:15:29 (1 occurrences)
Last logged: 13:15:29

Unable to install package httplib2==0.10.3: ERROR: Could not find a version that satisfies the requirement httplib2==0.10.3 ERROR: No matching distribution found for httplib2==0.10.3

installed newest version:
pip3 freeze | grep ht
google-auth-httplib2==0.0.4
httplib2==0.18.1

any idea? on HA 2021.1.4 doesnt work
after back to version before (2020.x.x) all works

OK, SOLVED:

must be installed on virtual environment :

sudo -u homeassistant -H -s
source /srv/homeassistant/bin/activate
pip3 install httplib2==0.10.3

I am also missing calendar entries in the display. These are from a shared calendar that I “own”. Most of these, but not all, are repeating events and for the June 2021 view they only show on May 30 and May 31. No other events for that calendar show in the view or in future months. Past months only show a single occurrence as well.

What’s interesting is that the calendar of note turned to On this evening at 4pm with the correct event in the attribute but still nothing shows. Checking/unchecking doesn’t seem to do anything nor does the refresh button.

This one bit me too.

Anyone who knows why the default maxSize is only 5 while the default for the Google API is 250?

Next, the API implements pagination, so why isn’t Home Assistant paging through all events or at least log a warning when a non-empty nextPageToken is returned? I cannot imagine anyone wants to randomly and quietly skip events. Is it a matter of priorities or is anyone aware of reasons why this should not be done?

I had the same issue and fixed it with francis’ suggestion.

cal_id: -------------------
  entities:
  - device_id: my_waste
    ignore_availability: true
    name: my-waste
    track: true
    max_results: 99999

this made it go from 3 entries to all the entries in my google calenar. Just to be clear this calendar I had an issue with was a garbage collection calendar I added to my google calendar, it shows up in google calendar under “other calendar”. I edited that calendars section on the google_calendars.yaml file.

That’ll work in most cases. Note that according to the Google documentation, you can’t fetch more than 2500 events, as the HA Google calendar integration does not fetch subsequent pages.

I’ve logged issue #54158 for this.

I’ve created PR #54231 that addresses this issue.

This issue is resolved in release 2021.9. Now the Google Calendar integration always fetches all appointments.
If you still have max_results in your configuration, then remove it as it is obsolete and deprecated.