Hi, I’ve been all over documentation and forums to crack this one, but I’m stuck.
In a script, I want to test if calendar events are happening tomorrow, and if they are, get google to TTS them in a certain format as part of an evening notification.
My problem is the else-statement. I want google to tell me if there is nothing planned for tomorrow if none of the above ifs are true. How can I structure or wrap the statements to get the described outcome?
Hi, did you ever figure this one out? I know how to show a message if the calendar is completely empty (between now and x number of hours) but I’m on here now to try to find out how to set filters for windows of time starting in the future such as tomorrow, etc. Do tell if you cracked it!
This is a script I made to notify me if I have events scheduled in the following morning (I set it to check for events between 7:45 am and 11:00 am). An automation calls the script the night before.
Oh wow, thanks for this. Scripts are the next frontier for me. I’ve made 600-800 line blueprints and also lots of automations in the automations.yaml but need to research how scripts work in Home Assistant more. I’m going to try to delve into what you just posted this weekend. Thanks again!
Scripts are basically the same as automations, but only the action part.
Actually it’s more the other way around, the action part of an automation is a script.