#calendar automation

1 messages · Page 1 of 1 (latest)

wary turtle
#

I have a automation setup for a notification to my phone and my wifes phone each time some is scheduled in the local calendar is there a way just to have it say the event summary then the time and not like the time and military time I think its giving me {{ trigger.calendar_event.summary }} @ {{ trigger.calendar_event.start }} unless i am overthinking this I don't need the 17:00:00 to show I just need the 5:00 to show for 5PM so Id like it to say Event Test @ 2026-2-18 05:00 hope I explained it well enough ... I am assuming the event.start would need something else or maybe there is no way to shorten it...

quick goblet
#

You need to cast it to datetime and then set the format you want the time to be printed in
Something like {{(trigger.calendar_event.start |as_datetime |as_local).strftime('%Y-%-m-%-d %-I:%M %p'}}

wary turtle
#

after providing this to me I got it all working thanks @quick goblet