Create automations based on the calendar

I would like to create an automation in the style of: when the “Workday” event starts and not “weekend” or “holiday” or “vacation”: turn on the lights for 1 hour.

but I don’t understand how to do it

I am using local calendar

What have you tried? What isn’t working the way you want?

There are examples of how to trigger based on a calendar event in the docs in the Calendars: Automations Recipes.