Add calendar link to Workday integration for PTO (and other time off) #1755
-
Integration nameWorkday Link to integration documentation on our websitehttps://www.home-assistant.io/integrations/workday Describe the enhancementI think it would be very nice if the Workday integration could be pointed to another calendar entity that's used for listing any PTO/Vacation time, and then decide based on the presence of events on that calendar if the workday sensor should be on or off. Right now for any automations that use the workday sensor but I want to also factor in time off days, that's extra conditional scaffolding that's needed there. It would be nice if the sensor itself could factor in these events! Thank you! Use casesI have an automation currently that turns up my furnace heat a short bit before my alarm goes off so I get out of bed to a warm house, but that warming happens later on weekends or days off when I don't have to get up as early. Rather than having to add another condition to that (and other) automations to check if the workday sensor is on AND my PTO calendar is on, I could just rely on the workday sensor that is already aware of my PTO days. Anything else?No response |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
|
🏷️ I've automatically added the |
Beta Was this translation helpful? Give feedback.
-
|
Integrations in HA work best when they stay focused on a single, well-defined source of data. Workday is meant to expose holiday and workday rules, nothing more. Pulling in user-specific calendars mixes two very different domains and makes the integration harder to maintain and reason about. If you wants to combine Workday with PTO, vacation calendars or anything else, that’s exactly what helpers and template sensors are for. They let you merge data from multiple entities without overloading an integration that should stay simple, predictable and have one responsibility. |
Beta Was this translation helpful? Give feedback.
-
|
Hmm, OK, so since I also have a calendar that includes relevant holidays, sounds like I should just remove this integration entirely and roll my own template to include everything I need. Thanks for the tip! |
Beta Was this translation helpful? Give feedback.
Integrations in HA work best when they stay focused on a single, well-defined source of data. Workday is meant to expose holiday and workday rules, nothing more. Pulling in user-specific calendars mixes two very different domains and makes the integration harder to maintain and reason about.
If you wants to combine Workday with PTO, vacation calendars or anything else, that’s exactly what helpers and template sensors are for. They let you merge data from multiple entities without overloading an integration that should stay simple, predictable and have one responsibility.