Skip to content

Music Assistant has support for playing to media player entities in Home Assistant.

This is the last of the three Home Assistant pieces; it needs the Home Assistant Plugin. See how the pieces fit together if you are not sure which you need.

CAUTION

This player provider relies on the upstream HA integrations which have not necessarily been written or optimised for music playback. Therefore, if there is any way to use a MA provider you need to do so. Problems with HA providers will be addressed as resources allow.

  • All media player entities that are available in HA, for which there is no dedicated MA provider, will be available in MA
  • All media player types that can be grouped in HA can be grouped in MA via the Player List or HA action

Before the Player Provider can be added the Plugin must be installed. The following image shows what a successful installation looks like

screenshot

  • In Music Assistant, go to Settings → Player Providers, click Add a player provider and select Home Assistant Media Players
  • In the provider settings, select which players are desired to be utilised. These can be changed at any time.

CAUTION

Features are most likely limited with these players. Always prefer a native player provider, if it exists in MA, as that is optimised

Home Assistant Media Players use the standard Individual Player Settings, including the settings shared by most protocols. One of those differs here:

Flow mode streams audio as a continuous flow rather than individual tracks, which avoids gaps between tracks. For HA media players flow mode is always used and there is no setting to turn it off, because the wide variation in HA player capabilities makes it the most reliable playback method.

Newer ESPHome based players such as the Voice PE are configured from the capabilities they report, so several of the settings above are set for you and do not appear. The output codec is fixed to what the device asks for, the HTTP profile is fixed to Profile 2, metadata injection is switched off, and the sample rates come from the device rather than the list above. Output channel mode and the low latency WAV setting are still available.

If the player you imported also has a native Music Assistant provider, a notice appears at the top of its settings. Using the native provider is strongly recommended over the generic Home Assistant one, as it gives better control and playback.

  • This player provider is not enabled by default and must be added via MA settings however before it is available you must setup the Home Assistant Plug-in Provider
  • Only players that support play_media can be used, other players will be filtered out
  • MA players will be filtered out
  • Synchronisation between this player type and any others is not possible
  • In order to support a greater number of players, different streaming profiles are available. If the player doesn’t work, stops mid stream or has other playback issues then change the player setting HTTP Profile used for sending audio and try each option until the player works
  • There are regular reports of issues with the HA integrations VLC Telnet and MPD. If possible, avoid the use of players supplied by those integrations

This website uses privacy-first analytics to help us improve the site. You can view all data in our public dashboard.