Google Calendar - Notifications based on Event with wildcard naming?

Hi All,
Now that IFTTT has jumped the shark, I’m looking to have Home Assistant notify me when certain events happen in my Google Calendar. These events have a common prefix.

I have set up Google Calendar in Home Assistant, works like a charm, pulls in events, can add them via Home Assistant etc.

What I’m after is a way to wildcard the condition in an automation, so that if I set up event with the prefix ‘Birthday - *’, eg Birthday - Joe Bloggs’ as an all day event, I can get notified of the calendar event.

I can get notifications for events that EXACTLY match the ‘message’ that I feed it. I’d prefer to not set up a new automation for every friend and family birthday if I can avoid it…

Then the icing on the cake would be to have the notification dynamically display the event title (eg ‘Birthday - Joe Bloggs’).

Please let me know if I’ve missed something super obvious :smiley:

Thanks in advance.

In your Google Calendar you create a “sub-calendar” that you can name “Birthdays”.
Then in your Google Callendar you add all the birthdays as an all-day event and select calendar “Birthdays”. So, the birthdays of Tom, Dick, Harry and Mary all have the sub-calendar “Birthdays”.
The “sub-calendar” “Birthdays” will be an Entity in HA that you can use for Automations.

alias: Birthday Calendar Notifications
description: ""
trigger:
  - platform: calendar
    event: start
    entity_id: calendar.google_example
condition:
  - "{{ trigger.calendar_event.summary is search('Birthday -') }}"
action:
  - service: notify.example
    data:
      message: "{{ trigger.calendar_event.summary }}"

[quote=“Didgeridrew, post:3, topic:583893”]
alias: Birthday Calendar Notifications
[/quote] etc

Thanks, that’s perfect and did the trick for me :smiley:

Thanks, I wanted to avoid migrating all events from one calendar into another. Events exist in a shared calendar and it would be challenging to convince the other contributors to add things elsewhere.