Google Calendar automation - TTS

So it’s sounds very simple, but since I’m not used on working with Home Assistant and write code I’m not able to achieve what I want:

I want a TTS notification on my google nest hub for every event in my calendar, TTS notification should play 1 hour before the event starts.

This is my code, but it doesn’t seem to work:

alias: calendar test1
description: ""
trigger:
  - platform: calendar
    event: start
    offset: "-00:15:00"
    entity_id: calendar.gezin
condition:
  - condition: template
    value_template: "{{ trigger.calendar_event.summary }}"
action:
  - service: tts.google_translate_say
    data:
      entity_id: media_player.hub
      message: >-
        You have an upcoming event in 1 hour {{ trigger.calendar_event.summary
        }}
      language: nl
mode: parallel

If further info is needed, I would like to hear it.

Thanks to anybody who can help me out with this!

Have you tried removing the condition ?

Have you looked at traces to see what was run if anything, did it trigger, did the condition pass, was the TTS sent etc?

I did tried to remove the condition.

The strange thing is, when i’m in the automation overview I see that the trigger gives a blue notification “triggerd” so it does see my calendar events and it is trying to trigger, but I don’t see anything in the traces… Unless I trigger i manually.

Here the code I’m using now, so withouth a condition and also screenshot of the traces:

alias: calendar test1
description: ""
trigger:
  - platform: calendar
    event: start
    offset: "-00:15:00"
    entity_id: calendar.gezin
condition: []
action:
  - service: tts.google_translate_say
    data:
      entity_id: media_player.hub
      message: >-
        You have an upcoming event in 1 hour {{ trigger.calendar_event.summary
        }}
      language: nl
mode: parallel

When I trigger this code manually:

It does give me an error, but I have read somewhere it’s normal you get an error when you manually trigger it. Because it must come natural when an event is about to happen

When I wait for the event to trigger it I see the following:

But when I look in the traces you see the last trace is the one from my first screenshot:

So from what I can understand is that it’s sees my calendar event and tries to trigger it, but it does not trigger anything.

EDIT: also the same happens when I do use the condition, so it doesn’t make any difference at this moment.

Also,

When I use

 '{{ states.calendar.gezin.attributes.message }}'

instead of

'{{ trigger.calendar_event.summary }}' 

and then trigger it manually, it does say on the hub what I want it to say.

But again, when I schedule an event to test with, I get the same of my previous post. The blue trigger notification, but nothing in the traces…