Adding your media to Home Assistant
Home Assistant includes a built-in media browser that lets you browse and play your local media files. This feature is available in all Home Assistant installation types.
On Home Assistant Operating SystemHome Assistant OS, the Home Assistant Operating System, is an embedded, minimalistic, operating system designed to run the Home Assistant ecosystem on single board computers (like the Raspberry Pi) or Virtual Machines. It includes Home Assistant Core, the Home Assistant Supervisor, and supports apps. Home Assistant Supervisor keeps it up to date, removing the need for you to manage an operating system. Home Assistant Operating System is the recommended installation type for most users., the media folder is automatically created and ready to use. On Home Assistant ContainerHome Assistant Container is a standalone container-based installation of Home Assistant Core. Any OCI compatible runtime can be used, but the documentation focus is on Docker. [Learn more], you need to mount a volume to /media when starting your container.
Accessing the media browser
The media browser is available on both Home Assistant Operating SystemHome Assistant OS, the Home Assistant Operating System, is an embedded, minimalistic, operating system designed to run the Home Assistant ecosystem on single board computers (like the Raspberry Pi) or Virtual Machines. It includes Home Assistant Core, the Home Assistant Supervisor, and supports apps. Home Assistant Supervisor keeps it up to date, removing the need for you to manage an operating system. Home Assistant Operating System is the recommended installation type for most users. and Home Assistant ContainerHome Assistant Container is a standalone container-based installation of Home Assistant Core. Any OCI compatible runtime can be used, but the documentation focus is on Docker. [Learn more] installations.
- In the sidebar (left side of your Home Assistant interface), go to Media > My media.
- From here, you can browse all media files in your
/mediafolder and any custom media directories you’ve configured.
Adding media using the media browser on Home Assistant OS
You can add media files using the built-in media browser. This method is ideal for uploading a few files at a time. This method does not let you create folders.
- Go to Media > My media.
- In the top-right corner, select
Manage. - Select Upload and choose files from your device.
- If you uploaded the wrong file, select the file and choose Delete.
Removing media using the media browser on Home Assistant OS
You can remove media files using the built-in media browser. This method is ideal for deleting a few files at a time. This method does not let you delete folders.
- Go to Media > My media.
- In the top-right corner, select
Manage. - Select one or more files and choose Delete.
Adding media using network file sharing on Home Assistant OS
If you are running Home Assistant Operating SystemHome Assistant OS, the Home Assistant Operating System, is an embedded, minimalistic, operating system designed to run the Home Assistant ecosystem on single board computers (like the Raspberry Pi) or Virtual Machines. It includes Home Assistant Core, the Home Assistant Supervisor, and supports apps. Home Assistant Supervisor keeps it up to date, removing the need for you to manage an operating system. Home Assistant Operating System is the recommended installation type for most users., you can use the Samba app for bulk file transfers. This method is ideal for transferring large files or many files at once using your computer’s file explorer (File Explorer, macOS Finder, or Linux file manager).
- To install and use the Samba app, follow the instructions on installing and using the Samba app.
- After setup, you can copy or move media files onto your device using drag and drop in your file explorer.
- You can also create folders to organize your media.
Other apps, such as SSH, also provide access to the media folders.
Adding media on Home Assistant Container
Prerequisites
- Home Assistant Container installation type.
- Before you can add media files on Home Assistant Container, you need to set up a local media folder by mounting a volume to the
/mediadirectory when starting your container. This must be done at container startup time.
To add media on Home Assistant Container
After you have mounted the volume, you can add media files directly to the folder on your host machine. This gives you direct file system access to add media files and create folders to organize them.
Your media will show up in the Home Assistant media browser automatically. You can manage your files in the following ways:
- Use the built-in media browser (as described above).
- Use direct file system access on your host machine.