HomeAssistant

Open source home automation

In this tutorial i will show you how to install HomeAsistant using Portainer

If you don't have the Docker Engine and Portainer apps installed on your NAS, install them using this guide Docker Engine and Portainer. If you have them already installed, proceed further.

If you already have them from a previous container installation, proceed to Step 3. If not, follow this guide to launch a web terminal and run the command :

id

You can also use putty or any other SSH client. In this case, ssh service must run on your NAS

Find your current time zone on this website, as example for Brussels is:

TZ=Europe/Brussels

Open Portainer using the icon from TOS desktop ( if Portainer is already installed and enabled), or enable Portainer from App Center and open it from there by typing in your web browser http://yournasip:19000.

Note. If you open the Portainer via the TOS desktop icon, you can face an error message during deployments of big images. If you want to access portainer only for Stack update (without repulling the image) then you can do it via the TOS desktop icon.

After you login on Portainer, go to Home, then click on your Local Environment

Go to Stacks and click on Add stack

On the name type homeassistant, select Web editor and paste the code below.

Make sure you replace the PUID and PGID with the values for your user found on Step 2
Make sure you replace the TZ value with the value for your specific zone found on Step 3

Config files will be stored at /Volume1/DockerAppsData/HomeAssistant

device: section is optional, only if you want to make a device connected to your NAS visible by homeassistant.
In the example below i choosed my USB to serial adapter /dev/ttyUSB0

restart: you can choose from always, unless-stopped, or on-failure[:number of retries]

version: "3.9"
services:
  homeassistant:
    image: lscr.io/linuxserver/homeassistant:latest
    container_name: homeassistant
    network_mode: host
    environment:
      - PUID=0
      - PGID=0
      - TZ=Europe/Brussels
    volumes:
      - /Volume1/DockerAppsData/HomeAssistant:/config
    ports:
      - 8123:8123
    devices:
      - /dev/ttyUSB0:/dev/ttyUSB0
    restart: on-failure:5

After you adapt the needed values, scroll down and click on Deploy the stack. The button will change to Deployment in progress.

If no errors occur, you will get a message that deployment was successful and the homeassistant stack will appear on the list. Click on it.

If everything was OK, the container will show as running.

Navigate to http://yournasip:8123 to open the homeassistant interface

Go through the setup steps, some devices will be detected and installation is completed.

outkastm

Share
Published by
outkastm

Recent Posts

Seafile

A new way to organize your files About: https://www.seafile.com/en/home In this tutorial, i will show…

1 month ago

Wizarr

Automatic user invitation and management system for Plex, Jellyfin, Emby, Audiobookshelf, Romm, Komga and Kavita.…

1 month ago

VueTorrent

The sleekest looking WebUI for qBittorrent About : https://github.com/VueTorrent/VueTorrent Applicable models: x.64 series, ARMv8 series, ARMv8.2 seriesApplicable TOS6: 6.0.420…

2 months ago

Nginx Proxy Manager

Expose your services easily and securely About: https://nginxproxymanager.com In this tutorial, i will show you…

2 months ago

Vaultwarden

Unofficial Bitwarden compatible server About : https://github.com/dani-garcia/vaultwarden Applicable models: x.64 seriesApplicable TOS6: 6.0.420 or later versions Required packages: Caddy App…

2 months ago

Watchtower

Automatically update containerized app About: https://github.com/containrrr/watchtower In this tutorial, i will show you how to…

2 months ago