Hi,
I try to reach what the title says, but i cant.
My automation is calendar event based, and i would to like to send a notification dynamically.
The message is working, but i coudnt figure out how to format my message as a time until, when my event is.
The summary of the event is working and the start date is also, but if i want to format like this, then i get “None” as a result from the last part of the message.
Something with the synthax but after one year of usage i still dont know, where and when i need to put " or ’ ![]()
This is the relevant part of the automation:
actions:
- action: notify.send_message
metadata: {}
target:
entity_id: notify.pixel_10_pro
data:
message: >+
{{ trigger.calendar_event.summary }}
{{ (time_until(as_datetime(states(trigger.calendar_event.start)))) }}
múlva!
Thanks in advance!
BR,
Zsolt