Combine Workday Sensor with (Local) Calendar

It would be great to be able to use a calendar as additional source for the workday sensor for holidays.

Currently I have to specify holidays like this in the configuration file.

    add_holidays:
      - "2022-12-27"
      - "2022-12-28"
      - "2022-12-29"
      - "2022-12-30"
      - "2023-01-02"
      - "2023-01-03"
      - "2023-01-04"
      - "2023-01-05"
      - "2023-01-06"

Instead I would like to add the vacation days as events to the local calendar and the workday sensor should be Off as long as an event is active.

I’m in the exact same spot as you, but no luck getting it to work.