Install Supervised/Supervisor on Raspberry Pi4 with Docker installation

Hi I installed Home Assistant through docker on Raspberry Pi4 since I use this Pi for other purposes.
But I have no idea how to install supervised/supervisor.
How to do it ?

thanks!

You can’t install the Supervisor separately after you install HA Container.

You need to install the HA Supervised version of HA.

1 Like

Well, you install the Supervised version if the following is true:

This method is considered advanced and should only be used if one is an expert in managing a Linux operating system, Docker and networking.

(from the official docs)

Otherwise, you either stick with Container and Docker images, or you flash the thing with Home Assistant OS and only use add-ons.

1 Like

Hi @rmenes
This video showed me how to install HA Supervised in a docker container on a Raspberry Pi 4
How to Install Home Assistant Supervised - OFFICIAL WAY

The steps where as follows;
Update your OS with the following two commands:

sudo apt-get update && sudo apt-get upgrade

Install needed Home Assistant Supervised dependencies
sudo apt-get install network-manager apparmor-utils jq -y

Reboot
sudo reboot

Get the official docker script for Raspberry Pi
curl -fsSL https://get.docker.com​ -o get-docker.sh

Start the script
sudo sh get-docker.sh

Give Pi user needed permissions
sudo usermod -aG docker pi

Get the HA installer script
sudo curl -Lo installer.sh https://raw.githubusercontent.com/home-assistant/supervised-installer/master/installer.sh

Start the HA installer script change the machine with any of these


sudo bash installer.sh --machine raspberrypi4
5 Likes

And after posting that reply, I’m going to ask the community to help me with this question;

  • Can I install the 64 bit version using the code
    sudo bash installer.sh --machine raspberrypi4-64
    ???
    ("-64" in the end)

Yes, if you have 64 bit OS

1 Like

Try my guide with bash scripts

https://krdesigns.com/articles/installation-home-assistant-with-supervisor-on-debian-10

2 Likes

If you use the RPi to host other containers, then you should consider to do it the IOTstack way. A lot of the hard work is covered by a menu and scripts, including backups, DropBox uploader, log2ram etc. And also Home Assistant is covered.
And then there is an active Discord channel to support you when you have issues.

1 Like

Looks great
I see no mention of 32 vs 64 bit OS installation, docker specific 64 bit installation, but the last install code references to raspberry pi 4 64 bit

Could you help me out here; how does that work?
Is the OS installation (the OS that runs on RPi4 that is) defying what version of HA i can run inside the docker container??!

My script is focusing on official Supervised version which required the latest Debian 10 buster and yes it will run on 64bit version Debian for RPI4

Does anyone figured out, how to fix rpi.gpio ?
Is there any way to update RPi.GPIO to 0.7.1a4 on core container ? That seems to fix the problem with gpio on debian (atleast on host).

thanks man. I will reinstall.

Thanks man, I will check it out. I thought supervised was a software component.

I use RPi for Plex Server and Retropie, it is running raspbian, to be honest the only container i used was home assistant. Apparently I made the wrong choice to use docker container, instead of just installing it directly to raspbian directly without docker containers. I will reinstall it.

Thanks all for the feedback. I will reinstall home assistant when I have patience :rofl:

Hello!
I trying to install HA Supervisor but I have a small issue :face_with_raised_eyebrow:
When I start the installation script, I receive the fallowing message:

pi@Silax-RaspberryPi:~/Desktop/test $ sudo bash installer.sh --machine raspberrypi4-64
[warn]
[warn] If you want more control over your own system, run
[warn] Home Assistant as a VM or run Home Assistant Core
[warn] via a Docker container.
[warn]
[warn] If you want to abort, hit ctrl+c within 10 seconds...
[warn]
[warn] ModemManager service is enabled. This might cause issue when using serial devices.
[info] Creating NetworkManager configuration
[warn] Changes are needed to the /etc/network/interfaces file
[info] If you have modified the network on the host manualy, those can now be overwritten
[info] If you do not overwrite this now you need to manually adjust it later
[info] Do you want to proceed with overwriting the /etc/network/interfaces file? [N/y]
y
[info] Replacing /etc/network/interfaces
[info] Restarting NetworkManager
PING version.home-assistant.io (104.26.4.238) 56(84) bytes of data.

--- version.home-assistant.io ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 0ms

[info] Waiting for version.home-assistant.io - network interface might be down...
PING version.home-assistant.io (172.67.68.90) 56(84) bytes of data.

--- version.home-assistant.io ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 0ms

[info] Waiting for version.home-assistant.io - network interface might be down...

It seems that I do not have internet access through the docker .

Do you have any advice how to fix this problem?

Thanks,
Silviu

Hi,
I’m using a raspberry pi 4 with pi os buster

I installed following most of the instruction in the video, How to Install Home Assistant Supervised - OFFICIAL WAY - YouTube , already had dockers installed with a greater version than requested, 20.10.9, updates & upgrades done

ran the commands:

sudo apt-get install network-manager apparmor-utils jq -y

sudo reboot

sudo curl -Lo installer.sh https://raw.githubusercontent.com/home-assistant/supervised-installer/master/installer.sh

sudo bash installer.sh --machine raspberrypi4

At the end of the installation it says to connect:
http://192.168.1.132:8123

And there’s nothing there to connect

Only the observer is listening to ports:
docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
fb9a411becb9 ghcr.io/home-assistant/armv7-hassio-multicast:2021.04.0 “/init” 21 minutes ago Up 21 minutes hassio_multicast
d33815e8b462 ghcr.io/home-assistant/armv7-hassio-observer:2021.06.0 “/init” 21 minutes ago Up 21 minutes 0.0.0.0:4357->80/tcp, :::4357->80/tcp hassio_observer
7fea187ba5aa ghcr.io/home-assistant/armv7-hassio-cli:2021.09.0 “/init /bin/bash -c …” 22 minutes ago Up 21 minutes hassio_cli
6d5f928ff4dc ghcr.io/home-assistant/armv7-hassio-audio:2021.07.0 “/init” 23 minutes ago Up 23 minutes hassio_audio
7b4bdae7f210 ghcr.io/home-assistant/armv7-hassio-dns:2021.06.0 “/init” 23 minutes ago Up 23 minutes hassio_dns
5c6ec67d686e homeassistant/armv7-hassio-supervisor “/init” 38 minutes ago Up 22 minutes hassio_supervisor

searching for listening ports, no port 8123 also:
netstat -lnt
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:6010 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:6011 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:4357 0.0.0.0:* LISTEN
tcp6 0 0 :::22 :::* LISTEN
tcp6 0 0 ::1:631 :::* LISTEN
tcp6 0 0 ::1:6010 :::* LISTEN
tcp6 0 0 ::1:6011 :::* LISTEN
tcp6 0 0 :::4357 :::* LISTEN

Only the observer port and page works.

Home Assistant observer
Supervisor: Connected

What am I missing?

Thanks in advance

First of all, format your post correct.
Second, don’t use (outdated) youtube video’s
Third , pi os is not supported, only debian
Fourth, did you install os-agent ?

Sorry about the format, it’s been a few years since my last post
It’s a raspberry pi4, I think it can it can handle home assistant and more, that’s why I didn’t want to install HA OS.
not yet, haven’t installed the agents
I’m comfortable with linux and networking, dockers not so much.
Any debian will do?
also read somewhere that home assistant and kodi don’t get along, is that true?

Thanks

Debian. Buster is only supported until beginning December (there was 4 months deprecation time), so better install Bullseye.
Without os-agent installed your supervised installation will not work.