Time Off Tracker

So we’ve had a bit of hiccups with one of our au pairs and we’ve decided to implement some kind of a tracker for vacation days. It’s not perfect and it could do much more! but it’s just a begining. The project consists of conditional cards, bunch of helpers, script and notifications :slight_smile:

project_TimeOff

Once a person taps the button, a new menu shows up to profide details around the vacation - some reasoning (max 255 characters), start and end dates, there is also visible current remaining balance which cannot go under 0.

Time_Off_ Mobile
The balance gets updated upon approval and a notification is sent once the request has been approved.

some things I would love to have in here:

maybe some extra configuration around the time off, like proration (for example based on duration - so if I want to have balance of 10 days and it prorates over one year, the days should be available incrementally every month exacly 10/12 of my balance every month).

Second thing I want to add here (maybe later on) - once the Time Off is approved it should create an event for the chosen dates in the shared calendar so it would be visible on the dashboard as well.

Rejections will send a notification as well, and crossing the treshold of the balance will also automatically reject the request.

I thought I would share this little idea of mine :slight_smile: If there will be some interest I can share the backend of this :slight_smile:

1 Like

So here’s the update :slight_smile:

  • Time Off request dashboard ith conditional card is done!
  • The notifications are little bit more descriptive
  • I had a lot of hiccups on the back end, but! Imanaged to create a dictionary to store user_id - device mapping of the requesters, so when an approval or rejection is set, it sends appropriate message to the original Time Off Requester
  • I’ve added myself a “command center” dahsboard if you wish, where I can display last submitted form, calendar with the upcomming Time Offs, have a history of entries, and manage the helpers for the dictionary as well as the Balance
  • I also managed to add the piece of automation that enters the Time Off request into the chosen calendars

Here’s how it looks like:

Currently the project consists of:

  • 2 automations: Handle Time Off Approval and Handle Time Off Rejection
  • 1 script: Submit Tme Off Request
  • 2 dashboards: Time Off and Time Off Admin
  • 11 helpers: 3 for 3 household users and 8 for various details (End, Start Dates, Durations, Balance, some boolean for the conditional card and a button for submission
  • 3 custom sensors: one for handling remaining balance, one for the original requester device mapping and one to present currently mapped devices on the Admin dashboard

I haven’t decided yet if I will share the code on git, but if there will be a request for it I will

Still to do (but not sure if I should go the distance :smiley: since it’s for tracking just one person’s time off requests??):

  • Prorations of the time off