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:
- Views count
- Subscriber count
- Video 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:
- Go the Google Developers Console YouTube Data API v3 .
- Confirm the project and Enable the API.
- 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 service 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.
Removing the integration
This integration follows standard integration removal, no extra steps are required.
To remove an integration instance from Home Assistant
- Go to Settings > Devices & services and select the integration card.
- From the list of devices, select the integration instance you want to remove.
- Next to the entry, select the three dots menu. Then, select Delete.
