I’m using a couple workday binary sensors, and I can’t get the ‘Add Holidays’ feature to work. This is my configuration to determine if tomorrow is a workday:
This has been copied directly from the examples in the Workday page. Tomorrow (11/25) is set to be a holiday, but it doesn’t show up. In my dashboard and Developer Tools, it shows as ‘on’, and in Developer Tools, I don’t even see the holidays added in ‘State Attributes’
I’m fairly new to Home Assistant, and haven’t quite gotten the hang of YAML yet, but from what I can see, it should be working. Can someone help me figure out what is going wrong here?
I even recopied the code from the example, using the exact code (changing only the date and name), and restarted the server but it still doesn’t work properly.
I believe I did, but I’ll check again. According to the example I copied, it shouldn’t be necessary (Plus, I don’t k now how to tell exactly which days that includes, so I would prefer to leave it out so it doesn’t include a date that I do have to work)
Edit: I just added ‘holiday’ to the excludes and restarted, but it only shows ‘sat’ and ‘sun’ in the developer tools. I’m going to add an offset and restart again so I can see if it is registering tomorrow as a holiday.
I added ‘holiday’ to the exclude list, and it does register tomorrow as a holiday, but it does not register Friday as a holiday, so it’s still not reading the ‘add_holidays’ values.
It looks like that sensor is just real wonky. After looking around, I found this thread detailing similar problems with the sensor that ended in multiple people recommending to just set up a similar sensor manually, with explanations of how to do so.
The first example in the docs shows that including holidays in exclude is for the base holidays, not custom holidays. And, anyway, neither config seemed to work for the OP.
It seems to be working, but if I understand, it would have a problem if I worked non-standard days (e.g. other than M-F) as I couldn’t set the holidays once I set the workdays or excludes.