Sync your Alexa/Todoist shopping list to the Home Assistant shopping list!

As I get from Alexa Development page you can’t access custom list at all with integrations. So I think it will not be possible unless Amazon changes this.

But I have a problem with syncing Todoist -> HA. I’ve created the webhook automation, I have the app with the WebHook url in Todoist. But when I insert an item via Todoist or Alexa it doesn’t automatically update list in HA. If i call the webhook url manually it updates HA, so I think Todoist is not calling the webhook url. How can I do?

In the instructions for setting up a webhook, how far do you get?

I can succesfully complete all steps, and my app shows correctly in Todoist development page.

Unfortunately I can only think the Todoist IP is being blocked by your network.

Awesome !
thanks for this script work perfectly,

much wow, such great

Hey, this integration is working great for me too, thanks so much!

I have just one question, is there any way to get the shopping list card in hass to refresh when the changes are made from todoist? I can only see the changes after manually refreshing the card, but I keep this card open on one of my tablet kiosks in the entrance of our house, so it would be nice if it was always up to date.

Nothing built-in, but maybe Browser mod could work.

I ended up using the fully kiosk API to refresh page every time there’s an update. It works well enough.

Pulling my hair out.

I have alexa linked with todoist and working
Installed PYSCRIPT with HACS
Installed the integration via UI and made both options true
created the 2 .py file shopping_list_sync.py and write_file.py

Restarted HA several times but cant call pyscript.sync_shopping_list from the dev tools

Any thoughts on where I am going wrong.

I did notice the file is shopping_list_sync but the service is sync_shopping_list but neither work. Should it show up as I start to type in the dev tool.

Ok so I need to read more carefully.

I put the write_file.py in config/pyscript/pyscript_modules and not config/pyscript_modules

Now it works well.

@MaestroMetty Did you manage to solve the issue with the webhooks?

I have set it up but can’t get HA to respond (or maybe todoist is not sending)

I have “Hooks” set up on my fitbit which send web hooks and sending a request from this works so I have the HA end setup right.

Should I be doing anything with the test token?

I’m having an issue similar to @MaestroMetty, it seems that Todoist’s “Webhook callback” is not being fired when I add a new item there.
The syncronization from HA to Todoist is working fine but not from Todoist to HA.

I followed all steps of the firt post and I confirm that my app shows correctly in Todoist development page.
I also tried to manually call the webhook from curl and it works fine.

My HA version is “2021.10.3”.

@MaestroMetty , did you manage to solve your webhook issue?

@MrLemur, what could be missing?

Tks

How is HA accessed from the Internet? port forwarding or Nabu Casa?

Hi, did you solve your problem? I have the same problem. my webhook receives external command, script runs manually. but i think todoist is not calling my url.

Hello, i have this 2 problems in the LOG

Exception in <file.shopping_list_sync.sync_shopping_list> line 84: hass.data[“shopping_list”].async_load() ^ KeyError: ‘shopping_list’

  • [2958427136] Received invalid command: shopping_list/items
  • [2958427136] Received invalid command: shopping_list/items/add

port forwarding

Have you installed the shopping list integration?

On the app page on todoist, could you send a screenshot of the webhook section and censor the domain name?

now its working, thank you :slight_smile:

Hi.

Im struggling to get this loaded. i keep getting the error “failed to call service” when i try to call pyscript.sync_shopping_list.

i have double checked the file locations and every step here but cant see what i have missed. Any suggestions?

Thanks

Edit: Just spotted it, missed a quotation mark on the api key in the file! Leaving here in case it helps anyone else

1 Like