Problem: I have a third-party app that adds today’s date to all new tasks. This is what I want, except for when I add an item to my Shopping List. I therefore am trying to use Home Assistant to remove all due_date values from items in my list todo.shopping
Approach: I have the script below which happily loops through all the items and can modify the due_date, but having tried many options like Null, null, None, none, I cannot get the due_date removed. Any options are greatly appreciated.
alias: Clear due_date from Shopping List items
sequence:
- service: todo.get_items
metadata: {}
data:
status: needs_action
target:
entity_id: todo.shopping
response_variable: shopping_list_items
- repeat:
count: "{{ shopping_list_items['todo.shopping']['items'] | count }}"
sequence:
- service: todo.update_item
target:
entity_id: todo.shopping
data:
item: >-
{{
shopping_list_items['todo.shopping']['items'][repeat.index-1]['summary']
}}
due_date: "2024-01-01" <-- this is where I think I need help. How to I clear the due_date????
description: ""