Can I create a custom sentence to add items to a specific list without having to say the name of that list? I'm using OurGroceries and would like to override the default "add to shopping list" sentence.
This is what I have now but I get the error:
File "/usr/local/lib/python3.12/site-packages/hassil/recognize.py", line 1107, in match_expression
raise MissingListError(f"Missing slot list {{{list_ref.list_name}}}")
hassil.recognize.MissingListError: Missing slot list {item}
EDIT: did it with an automation:
alias: Lisää ostoslistalle
description: Automation to add items to a predetermined todo-list.
triggers:
- command:
- lisää {item} ostoslistalle
- lisää {item} kauppalistalle
- kaupasta {item}
trigger: conversation
conditions: []
actions:
- action: todo.add_item
metadata: {}
data:
item: "{{ trigger.slots.item }}"
target:
entity_id: todo.shopping_list
- set_conversation_response: "{{ trigger.slots.item }} lisätty."
mode: single