screenshot of Home Assistant Demo (https://demo.home-assistant.io/#/lovelace/0)

How to install Home Assistant on Portainer

René Reifenrath
3 min readDec 19, 2021

Description

In this tutorial, I use a raspberry pi to show you how to install Home Assistant on Portainer. You don’t need a raspberry pi, other hardware also works.

Requirements

This tutorial requires you to have Portainer already installed. For instructions on how to do that look into the official documentation.

Step By Step Guide

1. Find the right docker image

There are several docker images for Home Assistant optimized for a specific system. I am using a raspberry pi 3 so I use this image:

You can find an overview of all the docker images and other installation options here.

2. Add a new container

Go to your Portainer Containers and add a new container.

3. Basic settings

Give your container a name and paste the image name you selected on docker hub.

4. Volumes

Bind these two volumes to link the config files to a host folder and bind the local time for synchronization.

I use ‘/home/pi/homeassistant/config’ as my config directory you can use whatever you like.

5. Network

Change the network mode to ‘host’.

6. Restart policy

Change the restart policy to ‘unless stopped’.

7. Runtime & Resources

Go to ‘Runtime & Resources’ and enable the privileged mode

8. Deploy the container

Click ‘deploy the container’ and wait for the deployment to finish.

This can take a couple of minutes.

9. Open Home Assistant

The default port for Home Assistant is 8123. So you just have to go to the host IP address + port in your browser.

e.g. 192.123.123.123:8123

10. Enjoy

Now you will be asked to create an account and then Home Assistant should automatically detect all the smart home devices in your local network.

On the configurations page you can select ‘Devices & Services’ to set up new automatically detected services and devices and add new integrations.

Also when you want to use Home Assistant on your phone you can install the Companion App for Android or iOS. You can also find the app on F-Droid, Play Store and App Store.

Thanks for reading. Leave a comment when you have some feedback. If you liked it consider buying me coffee.

Sources

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Written by René Reifenrath

I am a software developer from germany. Blogging about programming and tech related topics. I ❤️ open source and privacy.

No responses yet

Write a response