have this auto created
action:
- service: input_text.set_value
target:
entity_id: input_text.todo_afvalwijzer
data:
value: >
{{trigger.calendar_event.description}}
- service: todo.add_item
target:
entity_id: todo.huishouden
data:
item: &item
>
Saver: {{trigger.calendar_event.description}}
description: &description
>
Opgelet: {{trigger.calendar_event.description}} aan de straat zetten.
due_date: &moment
>
{{trigger.calendar_event.start}}
todo item:
which is supposed to be deleted running this script:
reset_afval_buiten:
mode: restart
sequence:
- service: input_boolean.turn_on
target:
entity_id: input_boolean.afval_staat_voor
- condition: numeric_state
entity_id: todo.huishouden
above: 0
# - >
# {{states('todo.huishouden')|int(-1) != 0}}
- service: todo.remove_item
data:
item: >
Saver: {{states('input_text.todo_afvalwijzer')}}
target:
entity_id: todo.huishouden
and which indeed runs fine to the final remove_item action.
it then returns this cryptic error in the logs:
Logger: homeassistant.components.script.reset_afval_buiten
Bron: helpers/script.py:501
integratie: Script (documentatie, problemen)
Eerst voorgekomen: 7 mei 2024 om 23:26:57 (2 gebeurtenissen)
Laatst gelogd: 07:54:10
reset_afval_buiten: Error executing script. Unexpected error for call_service at pos 4: No existing item with uid/recurrence_id: db8a9fc2-0c8a-11ef-adc4-00ce39d11846/None
reset_afval_buiten: Error executing script. Unexpected error for call_service at pos 4: No existing item with uid/recurrence_id: d283922c-0cf7-11ef-adc4-00ce39d11846/None
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 501, in _async_step
await getattr(self, handler)()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 736, in _async_call_service_step
response_data = await self._async_run_long_action(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 699, in _async_run_long_action
return await long_task
^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2738, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2779, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 975, in entity_service_call
single_response = await _handle_entity_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1047, in _handle_entity_call
result = await task
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/todo/__init__.py", line 519, in _async_remove_todo_items
await entity.async_delete_todo_items(uids=uids)
File "/usr/src/homeassistant/homeassistant/components/local_todo/todo.py", line 177, in async_delete_todo_items
store.delete(uid)
File "/usr/local/lib/python3.12/site-packages/ical/store.py", line 230, in delete
raise self._exc(
ical.exceptions.TodoStoreError: No existing item with uid/recurrence_id: db8a9fc2-0c8a-11ef-adc4-00ce39d11846/None
so, I figured it would be wrong syntax or so, and tried to do the removal from within the services page:
so, still an error, and its the exact string in the name field.
I tried searching for the todo item, but in States it only finds this
I am not sure if the item should have been listed there? If so, that would explain the error, but it wouldn’t be possible given the fact I have the actual item in my todo list…
any hints on how to debug this would be appreciated