YouTube


The YouTube integrationIntegrations connect and integrate Home Assistant with your devices, services, and more.
[Learn more]
allows you to connect YouTube channels to Home Assistant. For every channel you add, it will create sensors for:

  • Subscriber count
  • The latest uploaded video

Prerequisites

To be able to configure the integrationIntegrations connect and integrate Home Assistant with your devices, services, and more.
[Learn more]
, you need to have a YouTube channel. To learn how to create one, refer to the YouTube documentation.

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

Scenario 1: You already have credentials

In this case, all you need to do is enable the API:

  1. Go the Google Developers Console YouTube Data API v3 .
  2. Confirm the project and Enable the API.
  3. Continue with the steps described in the Configuration section.

Scenario 2: You do not have credentials set up yet

In this case, you need to generate a client secret first:

Configuration

To add the YouTube integration to your Home Assistant instance, use this My button:

The integration setup will next give you instructions to enter the Application Credentials (OAuth Client ID and Client Secret) and authorize Home Assistant to connect to YouTube.