I have my work schedule in my Nextcloud calendar, so I was hoping to create an automation that activates my alarm clock automation based on whether or not I have work that day.
Being a USian retail worker, “holidays” and any algorithm you can attach to them are basically meaningless, so the WorkDay sensor component isn’t really going to help me. Aside from that, my schedule changes from week to week based on various situations that arise. I make these changes in my calendar on Nextcloud.
So the problem I’m up against is that the Caldav component creates binary sensors that turn on at the moment that an event starts, and off when the event stops. If I have to be at work at 9am, I would like for Home Assistant to see that, and set my alarm for 7am. (Or just turn the alarm on because I like to wake up around that time regardless of what time I have to go to work.)
In essence, is there a way for HA to tell if a certain event is going to occur on that day, as opposed to whether or not an event is currently happening? I’m really trying to avoid creating multiple events in my calendar.
I haven’t used it, but I believe the attribute offset_reached is what you need, although I think to use that you have to change the title of your calendar entry.
An alternative is to make your workdays all day events, but that would mean that you lose the time when you have to be at work.
I really hope the CalDav integration gets a lot of improvements.
I would like a sensor that reports all upcoming birthdays in the next 2 weeks (that would be 20160 minutes), but it does not work.