Did you put the automation for IFTTT Webhooks in your automations.yaml (or wherever your automations are). Make sure that is exactly as I have in my above code. It has to match the format exactly. If you use IFTTT for other webhooks and have “data_template: entity_id” not “data_template: name” it wont work. I dont use IFTTT for anything else so I didnt attempt to solve using data of multiple types.
Nice, I’m glad adding items works, I’ve only had a quick glance at the shopping list docs:
Would just calling the Service shopping_list.complete_item service not remove the item?
Also is IFTTT easy enough to set up to do this? I may give this a try myself at some point.
EDIT: Oh I see you’re trying to make it so NodeRED is able to remove items from the Alexa shopping list, that my turn out to be a little more tricky, I can’t think of an easy way right now.
If you need to use ifttt service calls with entity id’s, as well as as this - you can create simple webhook calls for each once you have integrated ifttt:
I’m confused about how to set up Alexa and IFTT
I presume I need to add IFTTT to Alexa?
What triggers the IFTTT in Alexa when I say Add [item] to shopping list?
Hi dbrunt, the way it works is that IFTTT is doing the magic. Within IFTTT, you create a trigger that says: “If a new item is added to my Alexa shopping list [requires to link your IFTTT account with Amazon Alexa, native Alexa object in IFTTT], then add this item to Home Assistant [webhook in IFTTT]”.
I’ve followed the instructions from SMRThome and it works like a charm. However, my lovelace shopping card is not automatically refreshed. I’ve searched for several solutions and only found a way to achieve this using browser_mod.lovelace_reload, which requires the installation of the community integration of browser_mod. Isn’t there a native way to call a service within the automation, to force the shopping card to refresh when the shopping list is updated? Thx for your help.
Thanks for this discussion, I now have my Alexa Shopping List copying over to my Home Assistant shopping list. Has anyone managed to get it working in the other direction? As in when you update Home Assistant’s shopping list it updates Alexa?
@mlw05 I ended up going with the todolist plugin (Amazon Alexa support only) and it works surprisingly well! It allows me (and my wife) to add items via voice prompts as well as directly typing them in on the HA dashboard. You can cross off items by either asking Alexa to remove XYZ from the shopping list or deleting it off the card. I even built in some custom scripts to have it text the shopping list to either my wife or my cell phone when executed.
Hello,
I didn’t find a way to sync from HA to Alexa, so instead, I decided to clear the Alexa shopping list every week, just after a reminder is set.
If that could be useful to anyone, I do it as follows:
I call the service media_player.play_media on my Alexa dot, with the following data
{
"media_content_type": "custom",
"media_content_id": "clear the shopping list"
}
Then put a 5s wait node, and call the same service again with