Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Music Assistant #96

Closed
BeardedTinker opened this issue Nov 29, 2022 · 5 comments
Closed

Music Assistant #96

BeardedTinker opened this issue Nov 29, 2022 · 5 comments
Assignees
Labels
Enhancement New feature or request

Comments

@BeardedTinker
Copy link
Owner

Let's look at all of the code necessary to run Music Assistant and connect it to Synology NAS share where media files are.

You need to have SAMBA share that can be from Home Assistant up and running.
I've set it with read-write permission, although, read only should be sufficient.

Music Assistant had previously problems with #recycle folder, so I removed it just in case, although it should work without an issue.

Shell Command

Following command is used to create folder in Home Assistant (/media/musicnas) and also connect to it.
Change IP address to match address of your Samba share - don't forget to also change name of folder where media files are (in my case /music), and also username and password to match your setup.

shell_command:
  mount_music_folder: "mkdir -p /media/musicnas;mount -t cifs -o vers=3.0,noserverino,username=demo_user,password=demo_password,domain=WORKGROUP //192.168.1.35/music /media/musicnas"

Automation

Each time Home Assistant starts, this automation will trigger and it will create and connect to Samba share by using above shell command.

#####
# Automation to trigger Synology NAS Samba mount for Music
#
#####

alias: Mount Synology Music Folder
id: 3b6c7f69-7406-4531-9493-f08e2de71630

description: Mounts Samba share for use with Music Assistant 

trigger:
- platform: homeassistant
  event: start

condition: []

action:
- service: shell_command.mount_music_folder
  data: {}

In Home Assistant, after installing Music Assistant and restarting your setup, during configuration, you need to enable this functionality and specify the folder name. In my case it's:
image

For other services:

  • If you have Spotify (non free version) use username and password to connect to it
  • YouTube Music requires email address and cookie of that user
  • TuneIn can be used with free service by entering your username
@BeardedTinker BeardedTinker added the Enhancement New feature or request label Nov 29, 2022
@BeardedTinker BeardedTinker self-assigned this Nov 29, 2022
BeardedTinker added a commit that referenced this issue Dec 2, 2022
@BeardedTinker
Copy link
Owner Author

Music Assistant is broken with 2023.3 release of Home Assistant:
https://github.com/music-assistant/hass-music-assistant/issues/1083
And it will NOT be fixed. Instead there should be new release, when available.
Keeping MA installed for now

@gryzli133
Copy link

do you know when is the next release planned?

@BeardedTinker
Copy link
Owner Author

do you know when is the next release planned?

Unfortunately, no. New version 2.0 has been unofficially announced, but no timeline has been give for it so far.
Also, it will not be HACS Integration anymore, but AddOn. This should stop issues with upgrades of Home Assistant.

I'm running latest HA and it's not working of course - during beta tried to open ticket, but there was already one where author said they will not patch it but will release new version soon.

Although I have NO information, my guess is that this will not be out in next few weeks.

@BeardedTinker
Copy link
Owner Author

Removed MA (halfway) until AddOn in released

@NH68
Copy link

NH68 commented Apr 29, 2024

Hi I have loved your video. Have one question.

I have a PC and NAS on the network both of which have a music folder each. I am able to load those without any issue. I have one 6TB hard disk also connected to the PC where the music folder in that (D:Music) is shared on the network I have enabled the folder permissions. The folder is shared as D Music - as seen in the folder permission window.

In the new Music Assistant now you just have to enter the IP address of the machine, the share, the username and password and the subfolder. What do I write the share name and sub folder name in this case. I have tried all possible combinations (D Music, D/Music, D and Music....). I get a message "mount bad usage".

Can you guide me on the right syntax here please?

Many thanks!

NH

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants