Getting event title and time/date from Google calendar

Hi
I’ve made a simple automation using the new calendar offset that sends a notification to my echo show, telling I have an event.
This runs at 3pm everyday and tells me of events up to 10pm the following day.
How can I make it so it gives me the name & time of the event?
I assume some sort of template but I have no idea how to even start.

Thanks

alias: Calendar Reminders
description: ''
trigger:
  - platform: calendar
    event: start
    offset: '-31:0:0'
    entity_id: calendar.xxxxxxx_com
    id: Get_Calendar_Event
  - platform: time
    at: '15:00:00'
condition: []
action:
  - service: notify.alexa_media_dave_s_echo_show
    data:
      message: Hey Dave. You have a calendar event!
      data:
        type: tts
mode: single
action:
  - service: notify.alexa_media_dave_s_echo_show
    data:
      message: >
        Hey Dave. You have a calendar event! {{ state_attr('calendar.<YourCalendar>', 'message') }}
      data:
        type: tts

Thanks… I’ll take a look :+1:

Did you guys get this to work…
I’m trying something similar… but I want to get the description from the event

I’ve got some events that trigger this automation in this configuration

alias: Test - Calendar Events
description: ""
trigger:
  - platform: calendar
    event: start
    offset: "0:0:0"
    entity_id: calendar.homeassistant
condition: []
action:
  - service: notify.alexa_media_all_echos
    data:
      message: Your event has fired
      target: media_player.all_echos
      data:
        type: announce
mode: single

But what I really want is this…

alias: Test - Calendar Events
description: ""
trigger:
  - platform: calendar
    event: start
    offset: "0:0:0"
    entity_id: calendar.homeassistant
condition: []
action:
  - service: notify.alexa_media_all_echos
    data:
      message: "{{ state_attr('calendar.homeassistant', 'description') }}"
      target: media_player.all_echos
      data:
        type: announce
mode: single

Where description is the events description field from my calendar

This works for me, I assume you could add another line for description.

service: notify.alexa_media_dave_s_echo_show
data:
  message: >-
    Hey Dave. You have a calendar event,
    {{state_attr('calendar.mycalendar', 'message') }} at
    {{state_attr('calendar.mycalendar', 'start_time') }}
  data:
    type: tts

1 Like

Ha… yeah it worked for me too… the problem I was having was that I was scheduling the events too close together… such that the system… didn’t have time to “digest” the changes.

Glad I found your post!

THX

-Aaron

Just used a version of this code to sort out my Bin Schedule notification for Google Calendar.
I have a calendar with all the Bin schedules from my local council

Sends a push notification to all phone.

service: notify.notify
data:
  message: Put the {{state_attr('calendar.home_bin_collection', 'message') }} out
  title: Bin Schedule

thanks for your help