Skip to content

Latest commit

 

History

History
38 lines (24 loc) · 3.41 KB

info.md

File metadata and controls

38 lines (24 loc) · 3.41 KB

hacs_badge Holidays Maintenance

Buy me a coffee

{% if prerelease %}

NB!: This is a Beta version

{% endif %}

Holidays

The holidays componnent is a Home Assistant helper that creates calendar entities with a list of public holidays in a country, based on the Python Holidays library. It's primary purpose is to work with garbage_collection helper to automatically move entities with manual_update automation blueprints. But it can also be used independently to show next public holiday in given country (or multiple countries).

Parameters

Parameter Required Description
Country Yes Country holidays - the country code (see holidays for the list of valid country codes).
Example: US
Observed No Observed - when holidays are celebrated on dates that are not the actual event's anniversary date (see holidays ).
Subdivision No State/Province/District... (see holidays ).
Pop named holidays No Ignore holidays (select from the list of holiday names) Example: "Columbus Day", "Veterans Day"

State and Attributes

state

The State contains the number of days to the next country holiday. It is 0 if today is a public holiday.

Attributes

Attribute Description
next_date The date of holiday
holidays List of used country (last year, this year and next year). This is used by the garbage_collection blueprints to offset collections if they fall on a public holiday (or if holiday was earlier on in the week)

Check the repository for installation instructions.