Hi,
I am very new to Home Assistant and YAML so I need help and ChatGPT didn’t help. xD
I have a boolean helper named “Sleep”
When I turn off “Sleep” I want to start an automation which lets my Home Assistant Voice read out my appointmets for today from my Google Calendar.
I think in the “easy” automation tool it’s not possible to do this so can someone help with a quick YAML script?
This is do-able in the graphic Automation Editor, but the notification step will require some templating.
You will need to use the calendar.get_events action. There is an explanation of the action as well example of using the response at the bottom of the following page:
Hi, thanks for your help.
It kinda works now. It reads out the appointments and speaks with me.
But another problem came up.
It doesn’t form a real sentence but some data jibberish which contains what I want to know.
Is the “gibberish” just it reading out the datetime string?
If you let us know how you want it to relay the time information, we can probably help you finesse the template to get the correct output. For example, do you want hours as 24hr or 12hr with AM/PM?
Yes, sounds like it.
But not like
“Appointments for today: football at 3PM”
but like
“Appointments for today: …” and then year, month, date and time but all in single digits with some additional zeros and the word football in between.
And my goal is for it to read the appointments for today with their starting time in an easy to understand sentence.
Ah, my bad. The AM/PM part is not really needed. I am from Germany and we use the 24 hour system.
I will try it out tomorrow.
Thanks for your help so far!