home-assistant.io/source/_integrations/google_drive.markdown
2025-02-05 13:46:37 +01:00

2.4 KiB

title, description, ha_category, ha_iot_class, ha_release, ha_config_flow, ha_domain, ha_codeowners, ha_integration_type, ha_quality_scale, google_dev_console_link, api, api_link, related
title description ha_category ha_iot_class ha_release ha_config_flow ha_domain ha_codeowners ha_integration_type ha_quality_scale google_dev_console_link api api_link related
Google Drive Instructions on how to use Google Drive in Home Assistant.
Backup
Cloud Polling 2025.2 true google_drive
@tronikos
service platinum https://console.developers.google.com/start/api?id=drive Google Drive API https://console.developers.google.com/start/api?id=drive
docs title
/common-tasks/general/#backups Creating backups in Home Assistant
url title
https://drive.google.com Google Drive
url title
https://console.developers.google.com/start/api?id=drive Google Developer Console

This {% term integration %} allows you to connect your Google Drive with Home Assistant Backups. When you set up this integration, your Google Drive will have a new folder called Home Assistant where all the backups will be stored. You can rename this folder to whatever you like in Google Drive at any point in time. If you delete the folder, it will automatically be re-created as long as you have the {% term integration %} enabled.

Prerequisites

You need to configure developer credentials to allow Home Assistant to access your Google Account. These credentials are the same as the ones for Google Sheets, Nest, YouTube, and Google Mail. These are not the same as Device Auth credentials previously recommended for Google Calendar.

{% include integrations/google_client_secret.md %}

{% include integrations/config_flow.md %}

{% include integrations/google_oauth.md %}

Removing the integration

{% include integrations/remove_device_service.md %}

  • If you remove the integration, the Home Assistant folder in Google Drive is not automatically deleted. You have to manually delete it in Google Drive.

Known limitations

  • The integration can only access files that it creates in the Home Assistant folder. It cannot access or modify any other files in your Google Drive.

Troubleshooting

If you have an error with your credentials, you can delete them in the Application Credentials user interface.