Skip to content

Commit 75d1800

Browse files
committed
Add examples of calling the reset service
1 parent 7ea68d5 commit 75d1800

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,26 @@ Call the `maint.reset_last_completed` service to mark a task complete. Target a
5151
entity or pass `entry_id` and `task_id`, and optionally include `last_completed` to backdate the
5252
completion (defaults to today).
5353

54+
Example targeting the Maint binary sensor created for a task:
55+
56+
```yaml
57+
service: maint.reset_last_completed
58+
target:
59+
entity_id: binary_sensor.maint_kitchen_filter
60+
data:
61+
last_completed: "2024-07-15"
62+
```
63+
64+
Example targeting the task directly when you have its `entry_id` and `task_id` (no entity needed):
65+
66+
```yaml
67+
service: maint.reset_last_completed
68+
data:
69+
entry_id: f6e5d4c3b2a1
70+
task_id: 1234567890ab
71+
last_completed: "2024-07-15"
72+
```
73+
5474
## What's next
5575

5676
- Publish Maint to the HACS default registry so it can be installed without adding a custom

0 commit comments

Comments
 (0)