A Home Assistant custom integration for adding items to your Home Assistant Shopping List from a Google Keep list. The integration relies on gkeepapi for the synchronization. This is meant to be used with Google Assistant to easily add items to the Home Assistant Shopping List.
- A Google email and password to retrieve the note. Using an app password is recommended.
- Use your tool of choice to open the directory for your HA configuration (where you find configuration.yaml).
- If you do not have a
custom_components
directory there, you need to create it. - In the
custom_components
directory, create a new folder calledgkeep_list_sync
. - Copy the contents of the main branch
custom_components/gkeep_list_sync/
tocustom_components/gkeep_list_sync/
in your Home Assistant folder - Restart Home Assistant.
- In the Home Assistant Configuration, add the new integration by searching for its name.
When creating a new service, you will be presented with three fields to fill in:
- username (required)
- password (optional)
- master token (optional)
You will need to fill out either a password or master token as a way of authenticating to your Google account via gkeepapi
. App passwords are highly recommended, but if you encounter authentication errors, see the Authentication Options wiki page for other methods.
The integration adds one service per entry, they can be called by any automation or script to synchronize the Google Keep List with Home Assistant Shopping List.
Each service will go through the following steps:
- Read all unchecked items from the specified Google Keep list. Checked items are ignored.
- Add each item to the Home Assistant Shopping List integration.
- Delete the item from the Google Keep list. This prevents double-adding an item if the service is called again.
@fcastilloec For creating this project and publishing it for us to use @lhy For the docker container to reliably get a master token over on ha-google-home