Mapping to a NAS for Media Content

I’m trying to create a connection to a share on my NAS which contains MP3 files.

I created a shell_command in my configuration:

mount_soundfx: mkdir -p /media/soundfx;mount -t nfs4 192.168.1.140:/mnt/user/Media/familyMedia/soundFx /media/soundFx

Then I created an automation:

alias: Mount SoundFx
description: ""
trigger:
  - platform: homeassistant
    event: start
condition: []
action:
  - service: shell_command.mount_soundfx
    data: {}
mode: single

As a result of this configuration, I now see the folder soundfx under the folder media which is in the root of the host system. When I go to the Media link in the HA UI sidebar, I can also see the soundfx folder under My Media. I can also add media using the “Manage” button from within the Media browser, but when I upload something it copies it to the actual folder that was created in the shell command and there doesn’t seem to be a connection to the actual NAS folder.

Any ideas on how to make this work?

I set up this

shell_command:
mount_media: mount -v -t cifs -o vers=1.0,noserverino,username=,pass=,domain=WORKGROUP,sec=ntlm //ip no/folder name

not sure if this is any help. Can’t help with the automation.

Correct me if I’m wrong, but isn’t that for Samba?

yeah, works we my synology nas so thought it may have helped.