I have a markdown output with which I check whether tomorrow is a working day and whether my alarm clock is set. If both apply, I give the set alarm time
This is not super easy at the moment, but i am thinking about this problem as an extension of calendar triggers.
My impression is the way to do this is:
(A) Have a calendar setup just dedicated to the event you want to check e.g. “Trash day” calendar
(B) Then have another separate calendar that can be used to trigger the check, e.g. an event at 7am that’s called “Trash day Trigger”
(C) Write an automation that fires on (B) then looks at the state of entity (A) and looks at the attribtues on the entity to determine if its tomorrow, then run the automation
I haven’t tried this, but this is the idea discussed in the livestream for the release this week when discussing calendar offsets.
There are also some examples in Calendar - Home Assistant of using calendar trigger. You may be able to just get away with an offset added to the trigger for an all day event.
You can use the automation triggers to capture the state and set them, e.g. using a binary sensor template that sets the state based on the calendar event trigger. I think trying to do everything in a single template is too difficult IMO.
Yes my work schedule is monday to friday. And I use the workday integration for the working days. But my lust isue was to add vocationsdaays from a calander.