Hello Everyone! Excited to share my first blueprint, I hope you all find it as useful as I do.
You can also visit the Github Repository for this blueprint.
To-do List Chore Notifications
Description
Create Actionable Notifications from a Home Assistant To-do List!
This blueprint does not use Wait triggers, so that means that all notification actions will still work even after Home Assistant is restarted!
Notifications are sent every day at the time you specify in Notification Time.
They are sent to every device you specify in Devices to Notify.
It will generate 1 notification for each passed due item, with the ability to mark the item as completed right from the notification!
When a Task is Marked Complete (from the notification):
- The notifications will be cleared from all devices it was sent to!
This way, if a task is marked as done no one has a notification telling them to complete it. - Through the When chore is completed. actions you can specify any actions you would like to happen after a task is marked as done.
View Some Example Use Cases Here or further down in this post.
F.A.Q
1. What to-do / task tracking integrations work with this Blueprint?
Any integration that makes use of Home Assistants To-do entities should work with this blueprint.
Integrations I have tested myself are:
- Home Assistants built in Local To-do integration.
- Google Tasks
- Google Tasks has the advantage of being able to create recurring tasks that will automatically “uncheck” themselves and update their due date after they are marked done.
2. What notify services work with this Blueprint?
This blueprint was designed to work with the notification services provided by the Home Assistant Companion App.
It works for both Android and IOS.
3. IOS Notifications aren’t showing the “Mark Done!” notification action, whats wrong?
Apple devices running IOS do not show the notification actions automatically. On IOS you must tap and hold on the notification then the “Mark Done!” action will be displayed.
Simply tapping on the notification, or swipping it away will not mark the task as done.
This is a limitation of IOS, and there is no way to change this functionality.
Tip
If this is an issue I recommend putting a note in the task name or description, on each to-do list item, to remind you to tap and hold on the notification in order to mark it as done.
When Chore is Completed - Custom Actions After Task is Marked Done
Important
These actions will only run if the task was marked done through the notification!
If the task is marked done directly through the Home Assistant To-do list screen, or from the integration screen these actions will not run.
Example Use Cases:
Tip
A variable named todo_item is created when a task/chore is marked complete, this can be used within your custom actions along with Home Assistants Chose
action and Template Condition to specify different actions for each task/chore.
1. Use a Counter Helper to Keep Track of an Item in Stock
If you have a task/chore that requires having something in stock, such as Air filters or Chlorine Tablets, you can create a Home Assistant Counter Helper
to keep track of how much you have in stock.
Then when your “Replace Air Conditioner Tablets” task/chore is marked complete on your to-do list, you can call the counter.decrement service
for that Counter Helper to automatically update how much is left in stock.
Yaml put into the “When chore is completed” blueprint input.
choose:
- conditions:
- condition: template
value_template: "{{ todo_item == 'Replace Air Conditioner Tablets' }}"
alias: "Make sure name is: Replace Air Conditioner Tablets"
sequence:
- service: counter.decrement
target:
entity_id: counter.ac_tablets_in_stock
data: {}
The important part is the template condition’s value_template where we compare the todo_item variable, which is the task/chore that was just marked done, with the name of the chore we want to perform that specific action for:
value_template: "{{ todo_item == 'Replace Air Conditioner Tablets' }}"