Hi hope someone can help, ive managed created an automation to announce on my Nest Display & then display an image ive created when i receive an email with Subject Upcoming Grid Event, from the body of the email how can I also automatically extract the date & time (format in email “2026-08-16 from 20:00 to 21:00” im in the UK) from the email & generate a Google Calendar Event with a 30 minute reminder time! Ive also already connect HA to Google Calendar, thanks in advance.
alias: Axle Notify on Grid Event Email
description: ""
triggers:
- event_type: imap_content
trigger: event
conditions:
- condition: template
value_template: "{{ 'Upcoming Grid Event' in trigger.event.data.subject }}"
actions:
- target:
entity_id: media_player.downstairs_display
data:
message: Attention. An upcoming grid event email has been received.
entity_id: media_player.downstairs_display
action: tts.google_translate_say
- delay:
hours: 0
minutes: 0
seconds: 7
milliseconds: 0
- action: media_player.play_media
metadata: {}
data:
media:
media_content_id: media-source://media_source/local/Gemini_Axle2.jpg
media_content_type: image/jpeg
metadata:
title: Gemini_Axle2.jpg
thumbnail: null
media_class: image
children_media_class: null
navigateIds:
- {}
- media_content_type: app
media_content_id: media-source://media_source
browse_entity_id: media_player.downstairs_display
target:
device_id: 9ff3c01361de6d223cbbce23cf3a2a38
- action: media_player.play_media
metadata: {}
target:
device_id: 04fb64f98292d6b1baa7cd954d61c26c
data:
media:
media_content_id: media-source://media_source/local/Gemini_Axle2.jpg
media_content_type: image/jpeg
metadata:
title: Gemini_Axle2.jpg
thumbnail: null
media_class: image
children_media_class: null
navigateIds:
- {}
- media_content_type: app
media_content_id: media-source://media_source
browse_entity_id: media_player.bedroom_display_2
mode: single
type or paste code here