Music Assistant Introduces Global Search and YouTube Music Support

Disclosure: This post contains affiliate links. If you click through and make a purchase, I will earn a commission, at no additional cost to you. Read my full disclosure here.

When I first introduced you to Music Assistant, it was clear that this tool had significant potential. However, it wasn't quite ready for mainstream use. The latest release has significantly enhanced its capabilities, introducing a much-anticipated global search feature and adding YouTube Music to its list of supported services. This update also includes essential bug fixes, performance improvements, and user interface enhancements.

Contents

What is Music Assistant?

Music Assistant is an open-source application with strong ties to Home Assistant that allows users to manage and play music from various streaming services within a unified interface. By leveraging Home Assistant's automation capabilities, Music Assistant enables seamless control of music playback across different devices and platforms, creating a cohesive and customizable home audio experience. Initially supporting major services like Spotify and Tidal, Music Assistant has been continuously updated to include more features and integrations, making it an indispensable tool for home automation enthusiasts.

Music Assistant's primary appeal lies in its ability to bring multiple music sources into one place, allowing for a simplified and streamlined user experience. With features such as playlist management, multi-room audio, and now global search, users can easily access and control their music libraries. The integration with Home Assistant also means that users can create complex automation routines that incorporate music playback, enhancing both convenience and enjoyment in their daily lives.

YouTube Music Integration with Music Assistant

YouTube Music, while not as popular or feature-rich as Spotify, has a dedicated user base that has eagerly awaited its integration with Music Assistant. The main challenge in achieving this integration has been the lack of an official API from YouTube Music. If such an API existed, YouTube Music would likely have been included in Music Assistant from the start. However, integrating YouTube Music is not as simple as entering your username and password.

To integrate YouTube Music, you must use Chrome's network tools to find your login cookie. This process involves several steps, but MarvinSchenkel on GitHub has provided a detailed guide on the project's discussion board. We can only hope that Google will eventually make their service more accessible by providing an official API.

The screenshot displays the settings interface for enabling YouTube Music on Music Assistant. At the top, there is a checkbox labelled “Enable YouTube Music provider.” Below it, there are two input fields: one labelled “Username for YouTube Music” and the other labelled “Log-in Cookie for YouTube Music,” with an eye icon next to it, typically used to toggle the visibility of the input text. The interface has a dark theme with white text and borders for the input fields.
Adding YouTube Music to Music Assistant requires more than just a username and password

Step-by-Step Guide to Integrating YouTube Music

  1. Open Chrome's Developer Tools: Press Ctrl+Shift+I (Windows) or Cmd+Opt+I (Mac) to open Developer Tools in Chrome.
  2. Navigate to the Network Tab: Click on the 'Network' tab.
  3. Log into YouTube Music: Go to YouTube Music and log in with your credentials.
  4. Find the Login Cookie: Look for requests that include your login information. The cookie will be in the headers of these requests.
  5. Copy the Cookie: Once found, copy the login cookie.
  6. Integrate with Music Assistant: Follow MarvinSchenkel's guide to input the cookie into Music Assistant.

The addition of YouTube Music is a significant improvement, but the introduction of global search is arguably the most exciting new feature for most. Previously, users were limited to playing only the tracks they had liked in the Spotify app. Their library was their universe, and the broader Spotify library was inaccessible. This has now changed with the global search feature. Users can search for any artist, album, or track available on Spotify, significantly expanding their music access.

A screenshot of the Music Assistant interface is shown. At the top, there's a search bar with the text “Type here to search…” and the word “squeeze” entered. Below the search bar, filter buttons labelled “Top result,” “Artists,” “Albums,” “Tracks,” and “Playlists” are displayed. The search results show five items, each represented by a rectangular card with an image and a title. The first result is a photo of two older men titled “Squeeze.” The second result, titled “Squeezie,” features a man in a long coat standing beside a large white poodle. The third result, “Squeeze Up / Teishan & Rod Fame,” shows an image of a man and a woman dressed in sporty attire. The fourth result is “The Main Squeeze,” depicting a photo of a band with several members. The fifth result, “Squeezer,” features an image of three people, two women in revealing outfits and a man in casual clothes. At the bottom, there is a music player bar showing the song “Cool For Cats” by Squeeze, from the album “Cool For Cats.” The playtime indicates the song is at 2:00 out of a total 3:39. The player controls, volume, queue, and speaker options are visible on the right side of the bar.

Conclusion

The latest update to Music Assistant marks a significant milestone in its development. With the integration of YouTube Music and the introduction of global search, Music Assistant has become a more versatile and powerful tool for music lovers. These improvements, along with the usual bug fixes and performance enhancements, make it an essential addition to any Home Assistant setup.

For more detailed instructions and updates, you can visit the official GitHub page and join the discussions to stay informed about the latest developments.

A portrait photo oif Liam Alexander Colman, the author, creator, and owner of Home Assistant Guide wearing a suit.

About Liam Alexander Colman

is an experienced Home Assistant user who has been utilizing the platform for a variety of projects over an extended period. His journey began with a Raspberry Pi, which quickly grew to three Raspberry Pis and eventually a full-fledged server. Liam's current operating system of choice is Unraid, with Home Assistant comfortably running in a Docker container.
With a deep understanding of the intricacies of Home Assistant, Liam has an impressive setup, consisting of various Zigbee devices, and seamless integrations with existing products such as his Android TV box. For those interested in learning more about Liam's experience with Home Assistant, he shares his insights on how he first started using the platform and his subsequent journey.

Leave a comment

Share to...