is_day_of_week

Passes when it is one of the given days of the week.

Required arguments

Key(s)DescriptionType
day \| daysDay names (friday) or numbers from 1 (Monday) to 7 (Sunday). A single value (day) or a list (days).STRING_LIST

Example

conditions:
  - id: is_day_of_week
    args:
      day:
        - "saturday"
        - "sunday"