Google Shopping List to HA

Hey HA friends! :wave:

I think there was something similar already created when I just looked it briefly, but I wanted to explore it further and created my first addon to HA.

So basically, I’m a Google fan and I use google assistant in my home for some stuff, one that I use often is to add items to my shopping list. But with HA and have automated notification for when I am in the store etc to grab the list of stuff that I need to buy, and to share with family, I needed something that keep takes the items from my google and sync it with my HA setup.

So I created a simple addon that syncs (one way) from shopping list to the HA shopping list! :tada:


:sparkles: What It Does

  • :brain: Reads your Google Keep shopping list (the one Google Assistant writes to)
  • :white_check_mark: Grabs any unchecked items
  • :inbox_tray: Adds them to Home Assistant’s native shopping_list
  • :white_check_mark: Marks them as checked in Keep so you don’t get duplicates

Runs every few minutes in the background and just works.


:closed_lock_with_key: What You Need

  • Your Google email + password
    (used securely via gkeepapi, no OAuth or app password — just like the official Keep Android app)
    ** This is more tricky, because you need a “master_password” you can read more how you can get one in the README of the project
  • A working Home Assistant setup
  • A long-lived access token from HA (for calling the shopping list API)

:rocket: How to Use

  1. Install the addon via your Home Assistant addon page. Add the repository: GitHub - joshlopes/monomagic: Bucket for all my magic
  2. Select the Google Keep Sync addon and Install (This will build the docker image)
  3. Once installed configure your email, password, HA URL, and HA token in the addon config UI
  4. Start the addon
  5. Done. It syncs every 5 minutes by default (you can change that too)

No .env, no hacking, no Google Workspace required — works with your regular Gmail and Google Assistant – But you will need this “master_password” which is a bit annoying to get it, but also not that complex!


:toolbox: Under the Hood

  • Powered by gkeepapi (Python)
  • Uses Docker, comes with Dockerfile
  • Simple, readable, and easy to tweak

Again apologies if I re-invented the wheel but needed this for a while – are you using something similar? Let me know please as it might be even better than this and I am happy to replace my setup by anything that is easier than the above :point_up:

If you liked or have few suggestions, let me know and I can make this even better for everyone :slight_smile:

:cat: GitHub - joshlopes/monomagic: Bucket for all my magic

EDIT: Screenshot of it running

Cheers!

2 Likes

Do you know of a way where you can just tell Google Assistant to add stuff to your HA shopping list? I don’t use any sort of shopping list with Google, so don’t need a sync. HA has worked great for us so far.

I think you can tell Google to talk to “Home Assistant” app and then call the assistant in Home Assistant to add stuff to your shopping list. But this will work only with devices where you can install home assistant and is kinda boring having to talk to two assistants to add stuff.

On google as soon as you say “Add stuff to my shopping list” It will ask you to create one if doesn’t exist, as long as it’s name stars with “Shopping” , then this addon will work for you :slight_smile:

Is kinda easy and a no brainer, I think the only issue is having to grab that master password.