does someone tried to make custom sentence in HA Assist for adding item to Shopping list compontent using shopping_list.add_item service? Basically we need just to call shopping_list.add_item service with argument X from Assis (Add X to shopping list).
I’ve tried also to overwrite existing HassShoppingListAddItem intent but whetever I do I just can’t pass “item” param to intent_script or responses: intents: custom configuration in config file.
I tried the same thing whilst creating a new intent, the doc states that only a few ootb intents have been incorporated …not shoppinglist
According the Assist documentation this should be possible but my Assist just dies immediately after I type in something that cannot be resolved, dies as in: if takes a few seconds for the first request and then comes back with “Sorry, I couldn’t understand that” and any request after is immediately followed with the same. Assist - Custom Sentences - Home Assistant (home-assistant.io)
What I did was create a yaml in config/custom_sentences/en
Deprecated but still there. And they are also available in shopping_list component code:
I was able to overwrite “HassShoppingListLastItems” with my sentence and it was responding with shopping list items. Only thing which I was not able to solve was to pass item param.
intents:
HassShoppingListLastItems:
data:
- sentences:
- "co jest na mojej liście zakupów"
and it returns whats on my shopping list so I was hoping that instead creating a new intent I could reuse one which is hardcoded in shopping_list component:
For the moment I have stopped, if I really have to provide a list of items then this is not what I will continue with. Especially since the request has to be ‘exact’. For me, adding ‘whatever string’ should be allowed
I was hoping to have some kind of possibility to use {{ something }} inside sentence phrase and pass this variable to slots: item: param (since this variable is passed to internal intent of shopping_list component). Maybe it can be done but I have no idea how.
Hey!! Have you guys managed to figure this out? I’ve test your method and so far works like a charm. I’ve used chatgpt to create a grocery list and added it to the list but it still misses a bunch of stuffs because my family is used to add things like (sons name + cookies).
My current solution was syncing Alexa to the home assistant shop list (integrated alexa to todoist app then used a webhook to sync all shoplists) So my family adds grocery’s through my echo show in the kitchen or in the living room and it updates my HA. Really happy because my zones automation for whenever I’m near the supermarket shows all items added via alexa, todoist or home assistant.
I’m just missing this {{ something }} template so they are able to use only HA to manage all list via companion app or through the home dashboards and only use the echos for whenever they are near one inside the house.
I’m hoping to have a button on my dashboard that I can press then say an item and have that added to a specific shopping list.
So for instance, press the button, say “milk” and milk is added to my grocery list.
I can add a button that starts Assist and I can say “add milk to my groceries list” which works but I want to shortcut it a bit so it is easy to just walk past and quickly add items.