Hi. In configuration.yaml I have several calendars as binary sensors working great, BUT having to introduce the complete date including year (‘YYYY-MM-DD’) in the “add holidays” values:
I wonder who to create a “perpetual” calendar that works with month and day “add_holidays” values but WITHOUT YEAR VALUE, so works regardless of the year number.
For example, Christmas day is an example of value that has the same month and day regardless the year number, so really there is no need to change each year the year value in the ‘add_holidays’:
Any ideas???
Like the holidays generated by HA’s built-in Workday sensor, the Holidays custom integration is based on the Python Holidays library… there is no easy way to add custom holidays. If you need holidays that are not included in the Python library for you locale, your options are to use one of the calendar integrations or to use something like the template binary sensor I presented above.
The new workday sensor makes this even worse. At least in YAML, we could copy and paste the dates and move on. The new interface is painfully obnoxious in maintaining unique holidays each year. Having and option to make a holiday perpetual would be awesome!
And at the same time, having the ability to IGNORE some holidays perpetually would also be awesome. Not all holidays on the default holiday list are observed as non-workdays. There needs to be a better interface to toggle holidays on/off the list and also add unique holidays to the list.
At the moment, the current configuration is more useless than useful until we can have better control over the holiday list this integration uses.