-
|
Music Assistant (MA) will play music that is located in your Home Assistant /media directory, including local files that are actually within Home Assistant, or Files in a Network location. It's easy to get MA to play music from a Network Location, perhaps on a NAS or a Network drive, by mounting that network location using SMB. MA will then "see" the music and you'll be able to play it. Doing this is a three step process 1) Create a mount command in configuration.yaml and then 2) mount it via an automation. Modify the following example to suit your environment. 3) Configure MA via the Integration to use this network location Notes:
Check configuration.yaml for the following line - if it doesn't exist then insert it Place this code in configuration.yaml to mount the share: Put this automation code in automations.yaml (create automations.yaml if it doesn't exist) After adding the above code, restart Home Assistant and you should be able to see the If you're able to see your music as above, you can now configure MA via its Integration configuration dialogue |
Beta Was this translation helpful? Give feedback.
Replies: 27 comments 68 replies
-
|
yes. works nicely indeed.
3rd, I made the the directory in the /media folder by hand, and a factual folder. Thought it to be more efficient than doing so in the shell_command, that now only has to take care of the mounting.
|
Beta Was this translation helpful? Give feedback.
-
|
This is great so thanks. I also have Spotify as a source and when I view my local media it is then duplicated by Spotify entries. Is this a feature? If so can it be filtered out? I wondered if the icons in the top right might do that but clicking on them appears to not do anything even thought they are clickable? |
Beta Was this translation helpful? Give feedback.
-
|
Hello, when I go in music assistant as follow: left pannel : multimedia / music assistant I ran out of idea.... Help !!! Here is my configuration: System Health
Home Assistant Community Store
Home Assistant Cloud
Home Assistant Supervisor
Dashboards
Recorder
|
Beta Was this translation helpful? Give feedback.
-
|
Dank U Marcel. same behaviour with Microsoft Edge Version 103.0.1264.37 (Official version) (64 bits) and Chrome Version 103.0.5060.66 (official Build) (64 bits) in both http and https via nabu casa. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
You are right, there is an error with the recycle file It is a synology DS920+ |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
Little problem here. I think Marcel suggested you could use this method to mount the files from multiple network locations. Darned if I can work out how to do so. |
Beta Was this translation helpful? Give feedback.
-
|
Well thanks OzGav for the suggestion. I thought I'd tried that before but I tried again: For mounting Network mediashell_command: I duplicated the automation code for nas2 and it all works. Just couldn't get the syntax right before. Now I can load my whole music collection, all 2000 albums, into MA. Hopefully the library is stored somewhere so I don't have to reload it every time I start HA. |
Beta Was this translation helpful? Give feedback.
-
Hi, I tried the mount command but received the following message.... mount: /media/Music/Rox_Music: cannot mount //192.168.1.80/music read-only. I checked permissions both on the NAS and local Hoe Assistant host and should be OK? Has anyone had this issue... any thoughts? |
Beta Was this translation helpful? Give feedback.
-
|
Any Help, I'm pulling my hair out. I have an SSD plugged into my router. I have tried everything above with network share addresses and ftp addresses and can't get it to work. |
Beta Was this translation helpful? Give feedback.
-
|
@No-Idea-76 To verify, your next steps in order are: Copy/paste here your mount command that lives in configuration.yaml - note you must use the tp-share's ip address and not the name tp-share in the mount command and you have to use / and not \ . Assuming your tp-share router has an ip address 192.168.1.1 your mount command should look like this (replace your username/password and correct ip address of course): Note!!! There is a space between Next, copy/paste here your automation that lives in automations.yaml. Assuming you used my exact example above, it will look like this: Next, please verify you have this command in configuration.yaml as this tells HA to use the above automation Next, after restarting your HA you should be able to browse the tp-share/g/music directory from within Home Assistant using "Media" from the left column of Home Assistant. Chose Local media first, then you should see your Music share - this is what mine looks like. What do you see? Finally, if you can see your music under Media then it will work in Music Assistant by enabling filesystem provider in the MA integration configuration as follows: |
Beta Was this translation helpful? Give feedback.
-
|
@No-Idea-76 - if HA can access it for Samba backup then it will also work for music - can you go into the configuration for Samba backup and click the three dots to select "Edit in YAML" - what do you have under |
Beta Was this translation helpful? Give feedback.
-
|
I have
|
Beta Was this translation helpful? Give feedback.
-
|
That's basically what you have in the mount command - Are there any errors in the logs - after restarting HA or when you try to click on music in the media browser? |
Beta Was this translation helpful? Give feedback.
-
|
I can see an issue with what you're doing. Did you notice it's trying to mount Double check the mount command as it needs to be |
Beta Was this translation helpful? Give feedback.
-
|
I am not sure this will actually solve the issue since I assume you would need to implement all the file stuff, but could https://pysmb.readthedocs.io/en/latest/ be helpful? It seems that the HA maintainers refuse to even entertain this feature, so it might be your only hope. Cool addon though! |
Beta Was this translation helpful? Give feedback.
-
|
I've gotten this set up as well, but as I allow nfs access to the QNAP NAS, and limit the access on IP, I don't use username/password, and my shell command looks like this instead: It seems to work fine, it's the same access I've setup for my plex :-) (I would prefer doing it through plex, but this is a great intermediate soludion) |
Beta Was this translation helpful? Give feedback.
-
|
Home Assistant updates and NAS updates |
Beta Was this translation helpful? Give feedback.
-
|
I'm seeing something really weird now, if I try to mount the NAS with NFS through the 'Terminal & SSH' addon, it fails with a permission denied. If I try to mount it through the community addon 'SSH & Web terminal' it works. This is really weird, no updates on the NAS, but of course updates in HA... |
Beta Was this translation helpful? Give feedback.
-
|
This is why running in a container is better as you can network mount the shared drive and then simply use -v to map the outside:/inside within the build config |
Beta Was this translation helpful? Give feedback.
-
|
@vk2him |
Beta Was this translation helpful? Give feedback.
-
|
Hi, I have spent a lot of time trying to get this to work with my Synology NAS, home assistant media give me an error of "Invalid JSON in response" in the media sidebar any clues anyone? |
Beta Was this translation helpful? Give feedback.
-
|
Guys I have hours in trying to get this mount to work. I have tried everything I can think of any ideas? |
Beta Was this translation helpful? Give feedback.
-
|
Sorry, here is more info; automation below
Config below For mounting SMB Network mediashell_command: |
Beta Was this translation helpful? Give feedback.
-
|
Is it not possible to replace the username and password with !secret reference? |
Beta Was this translation helpful? Give feedback.
-
|
It is more about the shell command, where you add your external drives.
…On Tue, 26 Sept 2023, 22:56 OzGav, ***@***.***> wrote:
Are you talking about MA version 2 where those details are contained
within the internal settings? If so then not sure why you would want to and
the answer is no.
If you are referring to the old MA version 1 then that is no longer
supported.
—
Reply to this email directly, view it on GitHub
<#452 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOTSVZQNEYSKECDMSAZ45RTX4M6P3ANCNFSM5ZGKCQIA>
.
You are receiving this because you commented.Message ID:
<music-assistant/hass-music-assistant/repo-discussions/452/comments/7116942
@github.com>
|
Beta Was this translation helpful? Give feedback.

































Not required with MA2 as the mount is done by the server for you. Just add the details in the settings