The new to-do list feature looks promising, but there are still a few things needed before it will work for some of the use cases I want to use it for. My first idea was to replace another app I am using for daily routines, for instance things I need to check or do every or almost every evening, but with the added power of being able to add items to the list based on conditions (day of week, state of charge of the EV etc.).
My approach is to have an automation that runs at a certain time of the day that adds items in a to-do list, conditionally or unconditionally, depending on which item.
The problem: I must make sure to manually (or automatically) tick off each individual item in the list, or there will be duplicates created the next day. There seems to be neither any service for completely clearing a list nor a service to add an item only if it would not create a duplicate (based on the title). My suggestion is to add support for both of these:
- Service to clear todo list, e.g.,
todo.clear_list
ortodo.remove_all_items
- Boolean option for service
todo.add_item
to “Only add if an item with this title does not exist” or similar.
I could of course call todo.remove_item
for all items in the list before adding new ones, but that means I need to duplicate all the titles, which makes the automation harder to maintain.