Installation
Note
Ensure the MA server is up and running properly with music and player providers added before trying to link it to HA via the integration
Installation of the HA Integration
As of HA 2024.12 the Integration to connect Music Assistant to Home Assistant is available in HA core.
- The MA server will normally be discovered automatically by HA and is installed by clicking on CONFIGURE.
- If for some reason you need to add the integration manually then go to HA SETTINGS >> DEVICES & SERVICES >> INTEGRATIONS and click the big
+ ADD INTEGRATION
button. Search for Music Assistant and click to add it. You will need to add the server IP and port (usually 8095). Search for the relevant line in the server logs. For example,Starting server on 172.30.32.1:8095
. - Click SUBMIT and the Music Assistant integration is ready for use.
Migrating from the HACS Integration to the HA Integration
Note
Not all of the functionality of the custom HACS component is available in core as yet. The items below marked with a 📦 require the HACS Integration. If your use case requires those items then install the HACS Integration
Migration can be done by:
- Uninstalling the existing HACS Integration by navigating to HA SETTINGS >> DEVICES & SERVICES >> INTEGRATIONS >> MUSIC ASSISTANT and selecting Delete from the â‹® menu
- Uninstalling the custom integration from HACS by navigating to HACS, searching for Music Assistant and selecting ✖ Remove from the ⋮ menu
- Restarting Home Assistant
- Installing the HA Integration as described at the start of this section
- Adjusting the MA actions in scripts and automations by replacing
mass.
withmusic_assistant.
Note
There was a problem with the 2024.12.0 version of the Integration as it relates to the repair. If you have a persistent repair notification or if you ignored the notification and want to remove it from the ignored list then install the 2024.12.1 version of the HACS Integration using ALL of the steps below and then go through the steps above to remove it
Installation of the Deprecated HACS Integration 📦
- Make sure that you have the Home Assistant Community Store installed.
- Within HACS, search for
Music Assistant
and click the entry in the search results. - Click the big (blue) button at the bottom for
Download
. - Click the button again and in the dialog make sure
Show beta versions
is selected if you want to use those versions. - Download the desired version
- Restart Home Assistant.
- The MA server will normally be discovered automatically by HA and is installed by clicking on CONFIGURE.
- If for some reason you need to add the integration manually then go to HA SETTINGS >> DEVICES & SERVICES >> INTEGRATIONS and click the big
+ ADD INTEGRATION
button. Search for Music Assistant and click to add it. You will need to add the server IP and port (usually 8095). Look for the relevant line in the server logs. For example,Starting server on 172.30.32.1:8095
. - Click SUBMIT and the Music Assistant integration is ready for use.
Note
Regardless of how it is installed the HA integration will create new media_player entities for those player types which are supported natively by MA. To see the names of those players go to HA SETTINGS >> DEVICES & SERVICES >> INTEGRATIONS >> MUSIC ASSISTANT
and view the entities. It is these players that need to be targeted in automations and scripts
Installation of the Home Assistant Player Provider
Once the HA Integration is installed it is possible to stream to HA media player entities. In order to do that the HA Player Provider needs to be installed. However, first the Home Assistant Plug-in provider needs to be installed.
- Navigate to MA SETTINGS>>PROVIDERS and add the plug-in provider
- If using the Music Assistant add-on (i.e. HAOS), you wont need any server details, it should auto connect to the local HA instance
- If using the docker version of the MA server, you will be required to enter the URL to your HA instance and then authenticate
Next install the Home Assistant Player Provider
- You need the HA plug-in first before you can use/install this provider
- In the provider settings, you can select which players you want to utilise
- You can only use players that support "play_media", other players will be filtered out
- MA players will also be filtered out
Note
Features are most likely limited with these players. Always prefer a native player provider if it exists in MA as that is optimised
Actions
HA Integration
The HA integration adds three actions for use in scripts and automations.
HACS Integration📦
The HACS integration adds six actions for use in scripts and automations.
- mass.play_media📦
- mass.play_annnouncement📦
- mass.transfer_queue 📦
- mass.search 📦
- mass.get_library 📦
- mass.get_queue 📦