Repository navigation
feat(chores): custom "every N days" recurrence (#1038) - #1042
Merged
tempus2016 merged 2 commits intoOct 7, 2026
Merged
Conversation
Recurring chores can now repeat every 2-365 days. The interval is stored in the existing recurrence field as every_<N>_days (every_2_days is the N=2 case), so availability, the anchor date, calendar projection, the calendar card and reports all read one value with no new field or extra sensor payload. The admin panel adds an "Every N days (custom)" option with a "Repeat every (days)" number field; the chore list shows "Every N days". The WS add/update schemas reject an out-of-range interval. New strings translated into every locale.
tempus2016
deleted the
feat/1038-custom-recurring-interval-every-n-days
branch
October 7, 2026 18:10
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1038
Recurring chores can now repeat every 2–365 days — towels every 3 days, plants every 5, a deep clean every 10.
How to use
Admin panel → Chores → edit a chore → Schedule mode: Recurring → Recurrence: Every N days (custom) → set Repeat every (days). Optionally set the recurrence start date to pin which days it falls on; leave it blank and the chore re-opens N days after the last completion.
How it works
recurrencefield asevery_<N>_days(every_2_daysis just N=2), so there is no new field, no migration, and no extra sensor attribute payload. Imports, exports and templates carry it as they are.recurrence_interval_days/recurrence_period_daysinconst.py) drives the availability window, anchor alignment, calendar projection and the reports. The calendar card has a matching JS helper.every 5 days.taskmate/add_chore/update_chorereject an out-of-range interval (every_1_days,every_400_days); the panel refuses it with a toast before it gets that far.Testing
tests/test_every_n_days.py(17 tests): parser bounds, WS validator, availability window, anchor alignment, future anchor, calendar projection, projection report, and the no-anchor fallback. Full suite: 3034 passed; ruff, ESLint, translation parity and data-file checks all pass.every_5_days, the list row reads "Every 5 days", and reopening the editor shows the custom option with 5. Test chore removed afterwards. The Python side was not run live on ha-dev (other sessions were using the shared checkout); it is covered by the unit tests.