*SOLVED* Check whether vacation is entered in the calendar

First things first - please format your code correctly.

Secondly, what exactly do you want the automation to work on? Is it vacation days you have booked off work, public holidays, or both?

Third, what do you want to do with this automation? You have posted an automation without a trigger or an action. You need to tell us what you want to achieve.

Finally, if you go to the Developer tools and search for calendar.urlaub, what does it show when it’s a holiday?