You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -45,17 +45,63 @@ A powerful Home Assistant custom component for managing recurring tasks with aut
45
45
46
46
### 🆕 Task Creation
47
47
48
-
To create a new task:
48
+
To create a new task:
49
49
50
50
1. Navigate to `Settings > Devices & Services`
51
51
2. Click `Add Integration`
52
52
3. Search for **Task Tracker**
53
53
4. Fill in the task details:
54
54
-**Name** - Display name for your task
55
-
-**Task Interval** - How often the task repeats (combined with interval unit)
56
-
-**Task Interval Unit** - Day, week, month or year
55
+
-**Repeat Mode** - How the due date is recalculated (see [Repeat Modes](#-repeat-modes) below)
57
56
58
-

57
+
<table>
58
+
<tr>
59
+
<td><imgsrc="assets/1a_create.png"alt="Enter name and select mode"/><br/><b>Enter name and select mode</b></td>
60
+
<td><imgsrc="assets/1b_create.png"alt="Repeat After Completion"/><br/><b>Repeat After Completion</b></td>
61
+
</tr>
62
+
<tr>
63
+
<td><imgsrc="assets/1c_create.png"alt="Repeat on a Fixed Schedule"/><br/><b>Repeat on a Fixed Schedule</b></td>
64
+
<td><imgsrc="assets/1d_create.png"alt="Repeat Every N Weeks on a Weekday"/><br/><b>Example for Repeat After Completion:<br/>Repeat Every N Weeks on a Weekday</b></td>
65
+
</tr>
66
+
</table>
67
+
68
+
Depending on the chosen repeat mode, you will be guided through one or more additional steps to configure the schedule details (see [Repeat Modes](#-repeat-modes)).
69
+
70
+
---
71
+
72
+
## 🔄 Repeat Modes
73
+
74
+
Task Tracker supports two repeat modes, selected during task creation and changeable at any time via the task options.
75
+
76
+
### Repeat after completion
77
+
78
+
The next due date is calculated **relative to when the task was last completed**. For example, if a task has a 7-day interval and you complete it on a Wednesday, the next due date will be the following Wednesday — regardless of the original schedule.
79
+
80
+
**Schedule configuration:** Choose a numeric interval and a unit (Day / Week / Month / Year).
81
+
82
+
| Field | Description |
83
+
|-------|-------------|
84
+
|**Task Interval**| How many units between completions |
85
+
|**Task Interval Unit**| Day, Week, Month, or Year |
86
+
87
+
### Repeat every (fixed schedule)
88
+
89
+
The task repeats on a **fixed calendar schedule**, independent of when it was completed. Completing early or late does not shift the next due date.
90
+
91
+
**Schedule types:**
92
+
93
+
| Schedule Type | Description | Example |
94
+
|---------------|-------------|---------|
95
+
|**Every Nth weekday**| Every *N* weeks on a chosen day of the week | Every week on Monday; Every 2 weeks on Friday |
96
+
|**Every Nth day of the month**| A fixed day number each month | Every 15th of the month |
97
+
|**Every Nth weekday of the month**| A specific occurrence of a weekday each month | Every 2nd Tuesday; Every last Friday |
98
+
|**N days before month end**| A fixed number of days before the last day of the month | 3 days before month end |
99
+
100
+
#### Mark as done behaviour for fixed schedules
101
+
102
+
- When a task is **due** (or overdue): marking it done records the most recent past occurrence as the completion date.
103
+
- When a task is **due soon**: marking it done records the next upcoming occurrence, so no occurrence is accidentally skipped.
104
+
- When a task is **done**: marking it done has no effect.
59
105
60
106
---
61
107
@@ -69,18 +115,49 @@ Access task settings through the cog icon ⚙️ on the integration page.
The card shows the schedule in a human-readable form that reflects the repeat mode:
178
+
179
+
- **Repeat after completion** — displays the interval, e.g. *Every 3 days*, *Every 2 weeks*
180
+
- **Repeat every (fixed schedule)** — displays the calendar schedule, e.g. *Every week on Monday*, *Every 15th*, *Every 2nd Tuesday*, *3 days before month end*
181
+
100
182
#### Card States
101
183
102
184
<table>
@@ -126,7 +208,7 @@ The panel shows all tasks in one place with live state filtering:
126
208
| **Done** | Tasks completed within their current interval |
127
209
| **Inactive** | Tasks with the *Active* option turned off |
128
210
129
-
Each task card displays the same information as the Lovelace card (status, interval, last done date, due date, days until due / overdue by) and includes a ✓ button to mark the task as done immediately.
211
+
Each task card displays the same information as the Lovelace card (status, schedule, last done date, due date, days until due / overdue by) and includes a ✓ button to mark the task as done immediately.
130
212
131
213
#### Disabling the sidebar panel
132
214
@@ -158,7 +240,12 @@ Task Tracker provides the following services in the `task_tracker` domain:
158
240
159
241
#### `task_tracker.mark_as_done`
160
242
161
-
Marks a task as completed by setting the last done date to today and recalculating the next due date.
243
+
Marks a task as completed by setting the last done date to:
244
+
- today, for mode "repeat after completion"
245
+
- the date of the previous occurrence (might be today), for mode "repeat every (fixed schedule)" when in state DUE
246
+
- the date of the next occurrence, for mode "repeat every (fixed schedule)" when in state DUE_SOON
0 commit comments