Installing Home Assistant Supervised on a Raspberry Pi using Debian 12

A couple of months ago total Supervised users were 14% from memory and has now dropped to 10.7%. They wanted to deprecate Supervised last year and by adding more obstacles, like this unnecessary flagging of Docker containers, they push even more people towards using OS.

It’s waste of energy pushing back on anything Supervised related I feel. As soon as the user base is small enough, it will become “too difficult for them manage / too much workload for such a small user base”. The plan was to get rid of it, it’s just a matter of time until that happens, unfortunately.

3 Likes

… which has pushed me to start to look elsewhere. Additionally it gets difficult to accept the tune which lately often emerges to criticism and/or suggestions.

4 Likes

Unfortunately, that’s not a new thing. Always very reactive and almost never conciliatory.

4 Likes

I don’t know where these numbers are coming from and if they’re reliable enough. For example I have a supervised install and I have toggled off the options to send analytical usage etc. (may be I should revert that :grinning: ). Others with simpler installs may not bother with these settings.
Anyways, I didn’t know that an installation method which is still officially supported is now called “Frankenstall” for whatever reasons. The project may very well stop supporting this method, as it tried in the past, and be done with that, instead of trying to indirectly push people away of it.
Within this frame a simple on-off message “that the installation is not fully supported” etc. would suffice, instead of a permanent big yellow notification which implies a broken situation in an otherwise perfectly good-working system.

3 Likes

Hi Tamsy,
I can not respond to you anymore in “our private” messages.

After section 3

dpkg -i homeassistant-supervised.deb

i got the error: “package architecture (arm64) does not match system (armhf)”
and

uname -m

give: armv71
i suppose i have 32bit raspberry pi os, so i had to change the

wget https://github.com/home-assistant/os-agent/releases/download/1.2.2/os-agent_1.2.2_linux_aarch64.deb

to:

wget https://github.com/home-assistant/os-agent/releases/download/1.2.2/os-agent_1.2.2_linux_armv7.deb

and

dpkg -i os-agent_1.2.2_linux_aarch64.deb

to:

dpkg -i os-agent_1.2.2_linux_armv7.deb

and the installation continued normally

Yeah i have the same issue. Did you find a fix for it?

This is working for me, except the Official Raspberry Pi 7" touchscreen works at boot for a first 12-13 seconds, then goes blank. It starts off showing the boot output with the timestamps, which is what I see on the HDMI.

Is this expected behavior? Is there a way to get it to work? Do I need to install vcgencmd?

Thanks.

Hello juan89,

Could you please tell me how does it work ?
I didn’t find any information to explain.

Thank you.

Hi there! Once you have flashed Debian on the MicroSD card. Remove it from the computer and insert it again. You will see a “RASPIFIRM” drive. Open it and then look for a file named “sysconf.txt”. In this file, you will add the following line at the end:

root_authorized_key: your_generated_rsa_public_key

To generate your RSA public key:

  1. Open puttygen.exe (you can download it here)
  2. Click the “Generate” button
  3. After the public key is generated, copy the content inside the text box that says “Public key for pasting info OpenSSH authorized_keys file” and that is what you will paste in the “sysconf.txt”
    ( Do NOT close puttygen yet)

It should look like:

root_authorized_key: ssh-rsa AAAAB3NzaC1yc2EAAAADA.......... rsa-key-20211107

Save it, and you can remove the MicroSD now and plug it onto the Raspberry.

Before closing the puttygen, click the “Save private key” button and save your PPK file on a location of your preference.

Now finally, to connect to your Raspberry, you need to know its IP address. You can find it on your router web management or by using Nmap to scan your network.

Open putty.exe, enter the IP address, and to load your PPK file, go to “Connection” → “SSH” → “Auth”, there you will see an option to load your previously saved Private key file.

You can now connect using root, and no password will be asked since you are using public key authentication.

Hi Juan,

Thanks for your explanation. I have tested “the same way” but I just put the public key.
I will try in the next days and I keep you in touch.

Thanks.

I am a newbie, everything works excluded the GPIO. Does someone work the GPIO? How is the procedure?
This is a big problem for me, how can I solve it?

Not the smartest idea to manage your RPI solely as the root user (which is what juan89’ instructions are about). It is generally recommended to not log in as root… and if you do, keep your root sessions short and system administration works only.

Just follow exactly the instructions from the OP and pay special attention to paragraph 1.5).

This way you will avoid running CLI-sessions automatically as “root” but instead you’ll run them as the unprivileged user you have defined by the adduser-command before thus protecting your installation from mistakenly potential destructive cli-commands.

@juan89 , @Tamsy,

Thank you for your explanation.

Juan, I just tried to follow your instruction : it works fine, thank you.

BUT, even if I can reach my rpi by ssh, it doesn’t explain why I can’t see anything on my screen.
(After SD flashing, I can see the first screen of my rpi and the color screen two… After I have some lines which go down very fast and I lost the connection to my screen. I can connect by ssh but I don’t know the user to use: I tried “root” and “root” for the password).

As I can’t find any help on this point, if someone can give me some support …

Thank you.

If you have followed Juan’s instructions you should already have been logged-in (as root) automatically since a key-exchange has happened in the background between the ssh server on the RPI and the connecting device (which should have the referring public key stored with the ssh client (i.e. Putty). Therefore there will be no login-prompt anymore.

You can check as what user you are connected to the ssh server by using the cli-command:
whoami

1 Like

Yes I have no problem with that. I just want to understand why I can’t have access on my laptop screen (which is linked with my Rpi) => I didn’t have this problem with my old Debian 10 / RaspianOS installation. If I put my Raspian SD Card, I have no problem.

But, I can also confirm that after creating new user, I can connect to my rpi via ssh… (but still without the screen).

@kanga_who thanks for providing this install instructions :slight_smile:

I have installed Home Assistant with the help of your script/the commands in Supervised mode.

Right now I cannot find the configuration.yaml file. I have searched with the find command the whole pi SD card but it is not existing.
In which location is the configuration.yaml or do I have to generate it manually somehow?

Best regards
matl

You should find it in /usr/share/hassio/homeassistant

1 Like

Hi,
I’m trying to install the os-agent, but can’t find the arm64.deb package.
Where can I download it?
Thx!

arm64.deb = aarch64.deb

Both are arm 64 bit.