Is it possible to adjust automation to avoid public holidays?

Hello,

I have this automation to open the curtain during week days:

alias: Abrir Estores Quarto Nascer Sol
description: ""
trigger:
  - platform: time
    at: "09:30:00"
condition:
  - condition: time
    weekday:
      - mon
      - tue
      - wed
      - thu
      - fri
action:
  - device_id: xxxxxxxxx
    domain: cover
    entity_id: xxxxxxxxxx
    type: set_position
    position: 100
mode: single

Question is, I don’t want that to work in case of public holidays (in Portugal), since I may be sleeping :slight_smile: Is there a way to do that?

Workday - Home Assistant (home-assistant.io)

1 Like

Best bet would be to install a calendar integration and have additional condition based on the entries in the calendar.

1 Like

Thank you both!

I use it the other way round …i.e. only holidays and use an imported calendar for that, workday is not good enough for me