I’d like to have a boolean switch when an event is occurring with text in the title. E.g.
10/16/24-Est. for Karl
I’d like it to turn on when Est is found in that title. I’ve got that figured out this template, but can’t quite wrap my head around handling the situation with multiple overlapping events .
{{ 'Est' in state_attr('calendar.personal_calender', 'message') }}
I’ve been searching and can’t quite figure this one out.
Thanks!
EDIT - To clarify my objective, I would like to be able to use this to trigger automations, and so that I can view the state simply if a type of event is occurring. It won’t always be with a boolean, but that seemed like a simple goal.
One thing I have learned helping other users on here is that someone will find a use for every possible approach… everyone has their own preferences how they want data sorted, processed, or displayed.
One caveat, there is no point in using such a short time pattern to query for calendar events. The calendars pull events to update every 15 minutes, shorter patterns are just wasting compute resources.
Now my phone will go silent when certain types of calendar events occur, and it will turn back on after they finish. An annoyance when doing field sales calls.
Here’s one of the automatons I built off the help from Didgeridrew. It turns on a couple of input_booleans that show up on conditional cards on shared dashboards to remind the family whether or not it’s recycling week.