Hi everyone,
I am NEW in Smart Home… sorry for my Question maybe its so Easy to Solve…
I’m facing a frustrating problem with my Home Assistant and Google Calendar integration.
I want Alexa (via Alexa Media Player) to announce daily, weekly, and yearly Google Calendar events for me and my wife.
My setup
- Home Assistant OS, latest version, on a home server
- Google Calendar integration set up via the official docs (OAuth, etc.)
- Alexa Media Player integration works, TTS works
- Both my Google account and my wife’s are integrated and appear in Home Assistant
- All Google calendars show up in
google_calendars.yaml
and as entities in Developer Tools (for example,calendar.myname_gmail_com
andcalendar.mywifename_gmail_com
)
What works
- All calendar events, no matter how I create them (via Google Calendar app on my phone, web interface, or even the Home Assistant calendar UI), immediately show up in the Home Assistant calendar dashboard (card) and are visible in the “states” view in Developer Tools.
- Both calendar entities are always available and show upcoming events in the UI.
What does not work
- The
entries
attribute of my calendar entities is always an empty list ([]
), even when there are clearly visible upcoming events. - As a result, my automations/scripts for Alexa announcements always say “no events found” (even if there are events today or in the future).
- The actual calendar dashboard in Home Assistant shows the correct events, so the integration basically works—just not for automations.
What I’ve already tried
- Full Home Assistant restarts (many times), waited 10+ minutes each time
- Removed and re-added Google Calendar integration
- Deleted
google_calendars.yaml
(let Home Assistant regenerate it) - Checked all Google Calendar permissions (full access for the account that Home Assistant uses)
- No special filters set in
google_calendars.yaml
, just basic setup withtrack: true
- The entity names in my automations are correct and match what’s in Developer Tools
- Tested with both all-day and time-specific events, created from different devices and methods
- Tried with both my calendar and my wife’s calendar, and with multiple test events
Template test
Even with upcoming events visible in the UI, this template always outputs nothing in Developer Tools → Templates:
jinja
{% set kalender = state_attr('calendar.myname_gmail_com', 'entries') or [] %}
{% for termin in kalender %}
{{ termin.summary }} on {{ termin.start_time }}
{% endfor %}
(The same for my wife’s calendar entity.)
Automations example
Here’s a (simplified) example of what I want to use:
yaml
- alias: Alexa says daily events at 08:00
trigger:
- platform: time
at: "08:00:00"
action:
- variables:
events: >
{% set kalender = state_attr('calendar.myname_gmail_com', 'entries') or [] %}
{% if kalender | length == 0 %}
No events today.
{% else %}
{% set text = 'Today\'s events: ' %}
{% for event in kalender %}
{% set text = text + event.summary + ' at ' + (event.start_time or '') %}
{% if not loop.last %} {% set text = text + ', ' %} {% endif %}
{% endfor %}
{{ text }}
{% endif %}
- service: notify.alexa_media
data:
target:
- media_player.alexa
message: "{{ events }}"
data:
type: tts
Extra details
- It doesn’t matter if I create an event on my phone, Google web, or Home Assistant UI—it always shows up in the calendar dashboard, but never in the
entries
attribute. - So all events are visible in the Home Assistant calendar frontend and entity state, but the Alexa TTS automations never “see” them via the calendar entity’s
entries
attribute.
My main question:
Why is the entries
attribute always empty, even though events are visible everywhere else?
Is this a bug, a known issue, or am I missing something obvious in my setup?
Thanks so much in advance! If you need screenshots, logs, or my YAML, just let me know.
1 post - 1 participant