Created
July 24, 2024 08:02
-
-
Save peyanski/37174dffa580b265eafa9389444e8b2b to your computer and use it in GitHub Desktop.
home assistant script for mealie calendar sent as persistent notification
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias: Mealie Calendar | |
sequence: | |
- service: calendar.get_events | |
target: | |
entity_id: | |
- calendar.mealie_breakfast | |
- calendar.mealie_lunch | |
- calendar.mealie_dinner | |
- calendar.mealie_side | |
data: | |
duration: | |
hours: 24 | |
response_variable: agenda | |
service: notify.persistent_notification | |
data: | |
title: Daily agenda for {{ now().date() }} | |
message: >- | |
Your Breakfast calendar for today: | |
{% for event in agenda["calendar.mealie_breakfast"]["events"] %} | |
{{ event.start}}: {{ event.summary }}<br> | |
{% endfor %} | |
Your Lunch calendar for today: | |
{% for event in agenda["calendar.mealie_lunch"]["events"] %} | |
{{ event.start}}: {{ event.summary }}<br> | |
{% endfor %} | |
Your Dinner calendar for today: | |
{% for event in agenda["calendar.mealie_dinner"]["events"] %} | |
{{ event.start}}: {{ event.summary }}<br> | |
{% endfor %} | |
Your Side calendar for today: | |
{% for event in agenda["calendar.mealie_side"]["events"] %} | |
{{ event.start}}: {{ event.summary }}<br> | |
{% endfor %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment