Troubleshooting Google Calendar Integration Issues

Hello everyone, I’m currently working on integrating my Google Calendar with Home Assistant and I’ve run into a bit of a snag. I followed the official documentation to set up the integration, and initially, everything seemed to be working smoothly. However, when I tried to add a new entity to one of my calendars or modify an existing one, I noticed some unexpected behavior. Specifically, the new entity I added didn’t show up under the Developer Tools → States page, and instead, I ended up with duplicate entries for my original calendar. This is quite puzzling and I’m hoping someone here can shed some light on what might be going wrong.

To give a bit more detail, here’s what my google_calendars.yaml file looked like before I made any changes:

yaml

  • cal_id: my_address@gmail.com
    entities:
    • device_id: private
      ignore_availability: true
      name: Private
      track: true

This setup was working perfectly fine, with the calendar entity appearing as calendar.private in the States page. I then decided to add another entity as described in the documentation. Here’s how I modified the file:

yaml

  • cal_id: my_address@gmail.com
    entities:
    • device_id: private
      ignore_availability: true
      name: Private
      track: true
    • device_id: test
      ignore_availability: true
      track: true
      search: test

After saving these changes and rebooting the system, I was hoping to see a new entity named calendar.test appear in the States page. Unfortunately, that wasn’t the case. Instead, I noticed that the original calendar entry had been duplicated, and the new entity I added was still missing. Here’s what the file looked like after the reboot:

yaml

  • cal_id: my_address@gmail.com
    entities:
    • device_id: private
      ignore_availability: true
      name: Private
      track: true
  • cal_id: my_address@gmail.com
    entities:
    • device_id: private
      ignore_availability: true
      name: Private
      track: true

This duplication is perplexing and I’m not sure why it’s happening. I’ve tried reloading HACS, removing the header-cards add-on, and even reinstalling the integration from scratch, but the issue persists. I’m starting to wonder if there’s something fundamental I’m missing in the configuration process. Could there be an issue with how the entities are being defined, or perhaps a conflict with another part of my setup?

I’m also curious to know if others have encountered similar issues when working with the Google Calendar integration in Home Assistant. Any advice or suggestions on how to resolve this duplication problem and successfully add new entities would be greatly appreciated. I’m eager to get this working properly so I can fully leverage the calendar integration in my smart home setup. Thanks in advance for your help!