TekOnline

πŸ“‚ How to Mount a Network Share (SMB/NFS) in Home Assistant OS

Here’s the correct syntax for each field.


πŸ”Ή 1. Name

This is just a label for Home Assistant.
It also becomes the folder name under /media or /backup.

πŸ‘‰ Example:

jserver

πŸ”Ή 2. Usage

Choose how you intend to use the share:

  • Backup β†’ will appear in /backup
  • Media β†’ will appear in /media
  • Share β†’ will appear in /share

πŸ‘‰ For camera recordings or music/video playback, pick Media.


πŸ”Ή 3. Server

This is the hostname or IP of your NAS/Windows machine.

πŸ‘‰ Examples:

j-server
192.168.1.100

πŸ”Ή 4. Protocol

Choose how to connect:

  • Samba/Windows (CIFS) β†’ for Windows shares and most NAS devices
  • NFS β†’ for NFS exports

πŸ‘‰ In most home setups, pick Samba/Windows (CIFS).


πŸ”Ή 5. Remote Share (⚠️ the tricky one!)

This is not a Windows-style path.
You must use forward slashes (/) instead of backslashes (\).
Also, you enter the share name exactly as it is exported, not the drive letter.

πŸ‘‰ Correct format:

Sharename[/Optional/Subfolder]

Examples:

  • If your NAS exports a share called Media Media
  • If the share is called Archive and you want a subfolder Archive/Media

❌ Wrong: e\Archive\Media (Windows style, won’t work)
βœ… Right: Archive/Media (Linux style)


πŸ”Ή 6. Username & Password

Enter the Samba (Windows) credentials that have access to the share.

πŸ‘‰ Example:

Username: user name you set when setting up the share
Password: password you set

βœ… Example Configuration (your case)

If your Windows machine j-server shares out a folder as Archive, and inside that is a subfolder Media, you’d fill it like this:

  • Name:
    jserver
  • Usage:
    Media
  • Server:
    j-server
    (or use 192.168.1.100)
  • Protocol:
    Samba/Windows (CIFS)
  • Remote Share:
    Archive/Media

πŸ”Ή Where it Appears in Home Assistant

After saving, HA will mount it automatically.

  • If you picked Media, the files appear in: /media/jserver
  • You can browse them in the Media Browser UI.
  • Services like camera.record can save directly there: service: camera.record data: entity_id: camera.front_door filename: "/media/jserver/front_door.mp4"

πŸ‘‰ Do you want me to also show you how to test the connection to make sure HA can actually reach j-server before mounting (so you don’t get silent failures)?


Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *