Skip to content

Home Assistant Service to retrieve YouTube video metadata based on Title

License

Notifications You must be signed in to change notification settings

hokiebrian/youtube_details

Repository files navigation

YouTube Video Details for Home Assistant

release_badge release_date License hacs_badge

Installation

This provides a sensor that shows details of a YouTube Video by Title. This can be used to show details for a currently playing YouTube Video on a media player where you only have the Title available (such as AppleTV).

Install Custom Components

  1. Make sure that Home Assistant Community Store (HACS) is setup.
  2. Go to integrations in HACS
  3. Click the 3 dots in the top right corner and choose Custom repositories
  4. Paste the following into the repository input field https://github.com/hokiebrian/youtube_details and choose category of Integration
  5. Click add and restart HA to let the integration load
  6. Go to settings and choose Devices & Services
  7. Click Add Integration and search for YouTube Video Search
  8. Configure the integration by copying your YouTube API Key when prompted

Usage

Use an automation that is triggered by a Title change on YouTube Media, call the service youtube_search.search_video and fill in the mandatory field video_title. The service will update sensor.youtube_search with the video ID in the state field and all of the video attributes as attributes.

About

Home Assistant Service to retrieve YouTube video metadata based on Title

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages