Hello everyone and Merry Christmas!
Due to the current situation, I have a question for you all.
I use an automation to warm up my car before I drive to work. I use “As soon as I get up” as a trigger, conditions are queried.
If it’s a weekend, vacation or “Urlaub” (vacation) in the calendar, then the car should NOT warm up, because I stay at home after getting up.
I use the Workday sensor, which captures weekends and public holidays, and the Google Calendar integration. The word “vacation” is in the calendar all day, but I noticed that if another entry is ABOVE the entry “vacation”, then only the first entry, the first event, the first message is queried and no longer what is below it.
As a result, my car wanted to warm up this morning, as today is a normal working day in Hesse and the calendar did not stop the automation.
In this case, “Urlaub” was not the first event, but the 4th, as an ongoing event started beforehand and is still ongoing.
Example:
Only “1 Toastbrot” is recognized in the template editor:
The condition is:
I would like to know how I can query all events from the calendar, and if one of them contains the word “Urlaub”, it should set the template to “false” and stop the automation.
According to chatgpt, Google Calendar does not output events. But I’m sure you cracks have an idea.
I would be delighted, because I would like to use this calendar entry for automations. If “Vacation” and “Away” then “Fort Knox” or something like that. Thank you!