bruxy70 / Garbage-Collection

🗑 Custom Home Assistant sensor for scheduling garbage collection (or other regularly re-occurring events - weekly on given days, semi-weekly or monthly)
MIT License
383 stars 90 forks source link

Skip Weekends / Only weekends #446

Closed karldonteljames closed 1 year ago

karldonteljames commented 1 year ago

Before you submit a new bug report, please check that

Write your question here

Good evening. I've been using this for a while to help my children track their chores and it works really well, so thank you so much for that!

My question is if is possible to have an option for every n-days, but skip weekends and conversley everyday but skip weekdays. (so child 3 does the chore both days at the weekend, and the weeks it is every other day, i.e if child 1 did it Friday, it would be the turn of child 2 the following Monday. - In this case we are talking about the dishwasher. 😄

Thanks in advance.

bruxy70 commented 1 year ago

Yes, this can be done, but you'd have to configure it for a manual update, and set-up an automation triggered by the update, iterate through all the calculated dates, check whether they fall on weekend, and move the dates if they do. Other thing to think about is, whether you want all the dates following this "correction" move to the original schedule, or start counting from this moved date. If the second, it might be easier starting from a blank frequency, and create the schedule by the automation (also on manual update). If you are not experienced with automations, that might be hard thought, this is quite an advanced technique (that makes this quite specific scenario possible though).

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had any activity in last 30 days. It will be closed in 5 days if no further activity occurs. Thank you for your contributions.