Connect an iPhone to Home Assistant's Samba share
By Isaac Griffiths, developer of SMBDrop ·
Home Assistant's Samba share app (it used to be called an add-on) shares Home Assistant's folders over SMB. People mostly use it to edit configuration files, but it's also a way to put files into the media folder from an iPhone, for a slideshow on a dashboard or for a media player. This guide sets it up and connects from iPhone, with a word on whether you should use it for photo backups.
Disclosure: I make SMBDrop, which can send to this share. The setup below works with the Files app too. Option names are from the Samba share app's documentation as of November 2026.
Step 1: Install the Samba share app
- In Home Assistant, open Settings → Apps (on older versions, Settings → Add-ons) and open the app store.
- Find Samba share and install it.
Step 2: Configure it
Open the app's Configuration tab before starting it.
- Username and Password: set your own. These are only for the Samba share, separate from your Home Assistant login. The default username is
homeassistant. - Enabled shares: the defaults are
config,media,share,backup,ssl,local_appsandapp_configs(the last two wereaddonsandaddon_configs). Turn off any you don't need. If you only want to send files from the phone,mediaandshareare enough. - Allow hosts: the networks allowed to connect. By default it covers the private ranges used on home networks (
10.0.0.0/8,172.16.0.0/12,192.168.0.0/16and the IPv6 local ranges). - Apple compatibility mode: on by default. It turns on Samba options that help Apple devices. Leave it on unless your storage is exFAT, which the docs say it can cause problems with.
- Compatibility mode: off by default. It enables old SMB protocols for clients that can't use modern ones. An iPhone doesn't need it, and it lowers security, so leave it off.
Save, then start the app and check its Log tab for errors.
Step 3: Connect from the iPhone
- Find Home Assistant's IP address under Settings → System → Network.
- In Files, open Browse → ⋯ → Connect to Server and enter
smb://and that address, for examplesmb://192.168.1.20. - Choose Registered User and use the Samba username and password from step 2.
- You'll see the enabled shares. Open
mediaand save a test file.
Using it over Tailscale
If you reach Home Assistant through the Tailscale app, note that Tailscale addresses start with 100. and fall in 100.64.0.0/10, which isn't in the default Allow hosts list. Add 100.64.0.0/10 to the list if you want to connect over Tailscale, then restart the app. Don't open port 445 on your router. Sending to your NAS over Tailscale covers the iPhone side.
Should Home Assistant hold your photo backups?
For a few files for a dashboard, yes. As the main home for your iPhone library, I wouldn't, for two reasons:
- Disk space. Home Assistant's own database, logs and backups live on the same disk as
mediaandshare. Filling it with videos can leave Home Assistant without room to run or update. Check free space under Settings → System → Storage. Home Assistant can also use network storage for media, which keeps big files off its own disk. - Backups. Home Assistant's backups can include the
mediaandsharefolders. A photo library there makes every backup much larger, unless you leave those folders out.
If you want a small, cheap photo target and already have a spare Pi, a separate Samba setup is simpler. See the Raspberry Pi Samba guide.
Sending with SMBDrop
- In SMBDrop, add a share with Home Assistant's IP address and the Samba username and password.
- Tap Find Shares and pick
mediaorshare, optionally browse to a subfolder, run Test Connection and save. - Send photos or files.
It sends the original files and never overwrites one already there. It doesn't know about Home Assistant's media browser; it just puts files in the folder.
Troubleshooting
Connection refused or times out
Check the app is running and its log is clean, and that the iPhone's address is inside Allow hosts. A VPN or guest Wi-Fi puts the phone outside your home range. See "Operation timed out" on iPhone.
Signed in, but a share is missing
It isn't in Enabled shares. Add it and restart the app.
Read only on the iPhone
Make sure Apple compatibility mode is on, then eject and reconnect. If a computer can write and the iPhone still can't, see the read-only share guide.
FAQ
How do I access Home Assistant files from my iPhone?
Install the Samba share app, set a username and password, start it, then in the Files app use Connect to Server with smb:// and Home Assistant's IP address, signing in as a Registered User.
Do I need Compatibility mode for an iPhone?
No. Compatibility mode enables old SMB protocols that the iPhone doesn't use, and it lowers security. Leave it off and keep Apple compatibility mode on.
Why can't I connect to Home Assistant's Samba share over Tailscale?
Tailscale addresses are in 100.64.0.0/10, which isn't in the app's default Allow hosts list. Add that range to Allow hosts and restart the app.
Is it a good idea to back up iPhone photos to Home Assistant?
Only for small amounts. Photos share the disk with Home Assistant's database and backups, and can make backups much larger. A NAS or a separate Samba server is a better home for a photo library.
More guides
- Use a Raspberry Pi as an iPhone photo backup target (Samba)
- How to send iPhone photos to your NAS over Tailscale, without opening ports
- iPhone Files app says the SMB share is read only: how to fix it
- ZimaOS and CasaOS: send iPhone photos to an SMB share
- Set up an OpenMediaVault SMB share for iPhone photos
