Hey hey
Im building a telegram message to notify me about upcoming tasks for today.
Therefore I use the new calendar.list_events.
But Ive got problems formatting its output inside my telegram mesage.
The automation looks as follows:
alias: AAAA Kalender GanztagesereignisseTest
description: ""
trigger: []
condition: []
action:
- service: calendar.list_events
data:
duration:
hours: 24
minutes: 0
seconds: 0
target:
entity_id: calendar.bestellen
response_variable: calendartasks
- service: notify.telegramflorian
data:
message: >-
Your agenda for today: <p> {% for event in calendartasks.events %}
{{event.summary }} <br> {% endfor %} </p>
mode: parallel
max: 10
Ofcourse I need to adjust the duration time and add a trigger - but this is only for testing.
The output looks like this:
Your agenda for today: <p> test1 <br> test2 <br> </p>
So how to format my telegram notification to make it look like this:
Your agenda for today:
test1
test2