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:
HassShoppingListAddItem
but I couldât pass item param in this intent too.
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.