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?