Hi, I’m trying to create a sensor indicating if a given date is considered workday or holiday.
I would like to do this for two differen contries, Italy and US.
I created two binary sensors for both countries as below
…
Giorni lavorativi Italia
- platform: workday
country: IT
name: “Giorni lavorativi Italia”
workdays: [mon, tue, wed, thu, fri]
excludes: [sat, sun, holiday]
add_holidays:- 2021-12-24
- 2021-12-31
remove_holidays: - 2021-01-06
- 2021-06-02
- 2021-11-01
Giorni lavorativi USA
- platform: workday
country: US
name: “Giorni lavorativi USA”
workdays: [mon, tue, wed, thu, fri]
excludes: [sat, sun, holiday]
add_holidays:- 2021-01-18
- 2021-02-15
- 2021-04-02
- 2021-05-31
- 2021-07-05
- 2021-09-06
- 2021-11-25
- 2021-12-24
remove_holidays:
…
I tried many ways to connect this sensor to input.date entity but non success. Anyone who has the same need or already accomplished this task?
Thank you for your help