How to Install Home Assistant on Your Synology NAS with Docker

Last updated on February 7th, 2023 at 01:46 pm

Home Assistant is an open-source home automation platform that allows you to control smart devices and automate tasks in your home. It provides a centralized interface for controlling and monitoring devices, services, and smart home automation features. It integrates with a wide range of devices and services and supports many different platforms and operating systems.

Home Assistant is designed to be easily extendable and customizable, allowing users to add new integrations and automate tasks in their home with a simple, user-friendly interface. It supports features such as automating lights, climate control, security systems, and media playback, among others. It also provides real-time monitoring and notifications, and has a built-in history logging feature that allows users to view past events. Additionally, it offers a powerful and flexible automation engine, making it easy to automate complex tasks in your home with just a few clicks. Home Assistant can be run on a variety of hardware, including single-board computers such as Raspberry Pi, as well as on virtual machines and servers.

Code Source: GitHub

Skip to Docker Run Code / Skip to Compose & Portainer Code

Running Home Assistant inside of a Docker Container has it’s limitations, you will not have access to the Supervisor, add-ons and backups. You will still be able to install add-ons manually and perform backups manually. You can find more information here https://www.home-assistant.io/installation

Compare Installation Methods

Let’s crack on and get this installed. Follow the steps below.

Install Docker

Before we start, please ensure you have Docker installed. This can be installed through the Synology Package Center.

Create the Docker Folder

We now need to create the Home Assistant Docker folder. Head into File Station and open the Docker folder. Select Create, choose Create folder and name it homeassistant. (see demonstration)

Create the Scheduled Task

We will now head into Control Panel > Task Scheduler > Create > Scheduled Task and click User-defined script. (see demonstration)

Configure the Scheduled Task

In the window that appears, insert the following:

In the General tab, In the Task field, enter Home Assistant. From the User list, select root. Uncheck the Enabled option.

In the Schedule tab, Select Run on the following date (make sure It’s today’s date). Now select Do not repeat.

In the Task Settings tab, under Notification, You can choose to turn this on, otherwise skip this. Now copy-paste the following code into the Run command area. Now click OK.

docker run -d --name=homeassistant \
-p 8123:8123 \
-e TZ=Europe/London \
-v /volume1/docker/homeassistant:/config \
--restart always \
homeassistant/home-assistant

Important – Please make sure you change the time zone to match yours.

Accept the warning prompt

When the below warning appears, press OK.

Run the Scheduled Task

You will now see your list of tasks. Select Home Assistant, now press Run

When asked to run, press Yes.

Home Assistant is Installed

The installation process has now finished. Give it a few seconds to appear in your Docker list.

Open your browser, and enter the link to your new container http://synologyip:8123.

You will now see the screen below. Fill in your details and press CREATE ACCOUNT.

On this screen, choose the name of your Installation, for the location, either press detect, or scroll to find your location manually, now press NEXT.

Home Assistant will now ask for you to share some data, tick or leave as it is and press NEXT.

Now press FINISH.

Welcome to Home Assistant. You can find more information on getting started, using the following link https://www.home-assistant.io/getting-started/

Docker Compose and Portainer

If you would prefer to install with Docker Compose or Portainer, use the following code. You can also view a demonstration here.

version: '3.3'
services:
    home-assistant:
        container_name: homeassistant
        ports:
            - '8123:8123'
        environment:
            - TZ=Europe/London
        volumes:
            - '/volume1/docker/homeassistant:/config'
        restart: always
        image: homeassistant/home-assistant

More Guides:

Actual AdGuard airsonic Audiobookshelf autobrr Bitcoin Calibre-Web ChatpadAI Cleanarr Composerize Crypto DailyTxT Dashy deemix Deluge Emby EmulatorJS Ethereum Euterpe FileBot FilePizza FileZilla Flame Focalboard FreshRSS Grafana Grocy Heimdall Homarr Home Assistant Homebridge Jackett Jellyfin Jellyseerr Joplin Kavita Komga LanguageTool LibreOffice Lidarr Mealie MediaGoblin Medusa Memegen Minecraft Minecraft Bedrock MQTT MusicBrainz MyMediaForAlexa Navidrome Node-RED NZBGet NZBHydra Ombi Overseerr PaperlessNGX Pashword Password Cards Petio Pi-Hole Picard Plex Portainer PostgreSQL Prowlarr PUID & PGID pwndrop Radarr Radicale Readarr ruTorrent SABnzbd SearX Seed Phrase Shiori Sonarr SpeedTest Stash Storm Tailscale TasmoAdmin Tautulli Theia Trilium TubeSync Unpackerr Uptime Kuma Vaultwarden Watchtower WebPDF Whisparr Wordle YouTubeDL


Leave a Comment

Scroll to Top