Rock5 - Home Assistant support

For those who want that the rock5 gets supported by Home Assistant, please vote on the following page:

4 Likes

Voted.
BTW, homeassistant supervised works like a charm on armbian - tested by myself

1 Like

Voting will not get support.

Upstreaming device support will get hass support.

Hass only add device support for those devices which are fully supported in upstream kernel.

Good luck.

2 Likes

I have Home Assistant running on Rock5b on Debian in Docker since a couple of days.Still a few issues but running very smooth. However, native support for R5b would be great too, so voted as well.

2 Likes

I try but no luck. maybe you can write how you install Home assistant on Rock5B ?

How To Install Home Assistant on ROCK 5B (Core On Debian)

Pre-installation Steps

Step 1:  Download & Write Image:
    Download the official Debian system image from: https://github.com/radxa/debos-radxa/releases/download/20230201-0944/rock-5b-debian-bullseye-xfce4-arm64-20230201-1418-gpt.img.xz
    Download the flash tool, etcher, from: https://www.balena.io/etcher#download-etcher
    Flash Image to μSD card.
    Insert μSD Card into the socket on the board.
    Power on ROCK 5B by adapter with type C port.

Step 2: Becoming Root:
    `$ sudo su -`

Step 3: Updating your System:
    `$ apt-get update`
    `$ apt-get upgrade -y`
    `$ apt-get dist-upgrade -y`

Step 3: Install Dependency’s:
    `$ apt-get install \
        apparmor \
        jq \
        wget \
        curl \
        udisks2 \
        libglib2.0-bin \
        network-manager \
        dbus \
        lsb-release \
        systemd-journal-remote \
        ca-certificates \
        gnupg \
        apt-utils -y`

Step 1: Install The Docker Engine:

`$ sudo mkdir -p /etc/apt/keyrings`

`$ curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg`

`$ echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null`

Update the apt package index:
    `$ sudo apt-get update`

Install Docker Engine, containerd, and Docker Compose:
    `$ sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin`

Verify that the Docker Engine installation is successful by running the hello-world image:
    `$ sudo docker run hello-world`

    If Docker is working correctly the following message will be displayed:

Hello from Docker! This message shows that your installation appears to be working correctly.

Step 2: Install Home Assistant:

`$ sudo docker run -d --name homeassistant --privileged --restart=unless-stopped -e TZ=UTC -v /homeassistant/config:/config --network=host ghcr.io/home-assistant/home-assistant:stable`

Find IP-Address:
    `$ ip addr`

After it has finished running you should be able to access Home Assistant from any browser:
    http://your.ip.address.here:8123
1 Like

Hi Eduard, I followed the steps you wrote as a test because my own install of HA Supervised is running Ok on rock 5B but keeps complaining about Apparmor and Cgroup errors and I cannot solve them.
The steps you wrote are great and install HA very swiftly but that is the “basic” version of HA, not HA supervised. For supervised you need Apparmor to run or else HA complains about it even though it’s not breaking the application (for now). Your installation steps also install Apparmor indeed but it doesn’t run either, nor can it be started manually as far as I can tell.
The installed Cgroup version in this Debian install appears to be group2 but HA Supervised uses Cgroup1 and also complains about it so both issues I had previously remain the same after your installation. My knowledge of and experience with Linux is rather limited, I’m afraid. Any suggestions on how to solve the Apparmor and Cgroup issues? Thanks a lot!

Hi. The same problem, i’m working on it to resolve …

1 Like

you also can build it as a python env

or you just compile all