Jump to content

Armbian with preinstalled Home Assistant supervised


Recommended Posts

2048px-Home_Assistant_Logo.svg.png

Download Armbian with HA
Then boot the image, wait few minutes and login via http://ip_address_of_armbian_running_ha:8123 (official onboarding manual)

 

Home Assistant Supervised is, more or less, a full blown Home assistant.

 

image.png


Main difference between HA OS and Armbian with HA is that underlying OS here is clean Armbian Debian Bookworm and there is custom dedicated buildroot OS that is provided for a few single board computers, primarily for Raspberry Pi. We provide HA on a small selection of single board computers, but in theory, its possible to run this on (almost) all that are possible to build.
 

Quote

Changes to Armbian OS are minimal as HA is running under Docker.


I am running HA on Odroid N2+ and it works without any problems. I have z-wave network with sensors and switches, air humidifier, Android TV, Android phones, dishwasher, ... Things works flawlessly, much better then few years back when I started with home automation for a first time, with OpenHab. This time it was setup from scratch and in a matter of days, most of devices are in function, playing with automation.

 

Tested on:

 

Provided for but untested (images you find on board downloads locations, seek them here https://www.armbian.com/download/😞

Spoiler
Bananapicm4io
Bananapim2s
Bananapim5
Bigtreetech-cb1
Khadas-edge2
Khadas-vim1
Khadas-vim2
Khadas-vim3
Khadas-vim3l
Lafrite
Lepotato
Nanopi-r6s
Odroidn2l
Onecloud
Orangepi4-lts
Orangepi5
Orangepi5-plus
Renegade
Rockpi-e
Rockpro64
Rpi4b
Rpi5b
Sk-am62b
Sk-am64b
Sk-tda4vm
Tinkerboard
Tritium-h5
Uefi-arm64

 


 

 

DIY

Spoiler

How was this assembled?
 

- you need a build framework which assembles Armbian (Debian variant is the only supported by HA) https://github.com/armbian/build (can be compiled in GitHub free runners too)

- Docker extension: https://github.com/armbian/os/blob/main/userpatches/extensions/docker-ce.sh (dependency for ha extension)

- Home Assistant extension: https://github.com/armbian/os/blob/main/userpatches/extensions/ha.sh 


Contribute

Spoiler

How can you contribute and improve this experience?
 

- improve extension cosmetically

- and try to extend installation to Ubuntu (or Debian)

- improve upstream code and make it more generic

 

Images, which are build from this list, are dropped to dedicated repository release https://github.com/armbian/distribution/releases (there will be other applications in the future) and those images are automatically displayed at the board download pages.

 

In case you will test the build, drop a note below, for working and not working. Home Assistant build extension works, but can be further improved and tweaked https://github.com/armbian/os/blob/main/userpatches/extensions/ha.sh and also upstream code https://github.com/home-assistant/supervised-installer has many places for improvements.

 

Support:

Link to comment
Share on other sites

  • Igor pinned this topic

Hello Igor,

i`m beginner and need help with install on the orange pi zero 2+ h5

i`m write Armbian with HA on the SD, put them in the orange pi and zeroo with 6.1.63,

with 6.6.11 balenaEtcher after checking it gives an error

Edited by Nalexat
new ver.test
Link to comment
Share on other sites

On 1/24/2024 at 8:45 PM, Nalexat said:

orange pi zero 2+ h5

 

Sorry, this hardware is not supported. Putting HA on not supported hardware or just make that hardware usable and stable can be extremely costly. Armbian project helps you greatly to minimise efforts needed for this in first place, but we can't resolve all problems in hardware support (which should be in the domain of people who sold you hardware) or HomeAssistant. This installation was made for expert users of Home Assistant and we made it easier by providing ready to run images. If you can't DIY, IMO its best to get a Raspberry Pi or Odroid N2 (which is tested).

Link to comment
Share on other sites

  • Igor featured this topic

I am ready to test the build on Orange Pajero 3 4GB. Unfortunately, I couldn't find the finished assembly. I also have difficulty building on my own when adding custom scripts ha.sh and docker-ce.sh

Explicitly in the instructions https://docs.armbian.com/Developer-Guide_User-Configurations/ I have not found an answer on how to use custom scripts.
I will be grateful for any help.

Link to comment
Share on other sites

On 1/28/2024 at 11:10 PM, dusikasss said:

I am ready to test the build on Orange Pajero 3 4GB. Unfortunately, I couldn't find the finished assembly.

 

We have no plans or budget to support this hardware. Finished assembly will be provided only for small selection of boards, most likely we will provide this for platinum support section only. Purpose of the topic is promoting Armbian build framework. If something can be done on board X, we can't help to make it on board Y. Without investing tens or hundreds thousands of dollars. This is your problem. Board provider problem. Not ours. Build framework can do this, but if board is not maintained ... it might not just work.

Link to comment
Share on other sites

23 minutes ago, Alexx said:

Can i use one og these img's or are only for other hardware?

 

I don't know. It was tested on Odroid N2 and Nanopi M4. If you seek for plug and play solution and you don't want to support open source development, buy a Raspberry Pi, Odroid N2, ... 

 

27 minutes ago, Alexx said:

Now i am using the  Armbian 23.8.1


I am afraid, that is not the case. https://docs.armbian.com/User-Guide_Getting-Started/#how-to-check-download-authenticity.

Link to comment
Share on other sites

3 hours ago, Alexx said:

Linux 6.1.27-ophub

That is not an Armbian build.  Ophub is a fork of Armbian that continues to use the Armbian name without permission.  They do not participate in Armbian development, nor do they participate in these forums.  You need to contact them for support of their builds.

Link to comment
Share on other sites

Hi @Nalexat. You may try this H5 image:
https://github.com/armbian/community/releases/download/24.5.0-trunk.19/Armbian_community_24.5.0-trunk.19_Orangepizeroplus2-h5_bookworm_current_6.6.16_minimal.img.xz
You need to decompress this image before you write to SD card.
If its boots up. Then you can use this guide creatively:


Replace first line, must be
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)" 
What I know Armbian was working well on my Orange Pi PC2 which is H5 (with HA Supervised)

Edited by Argo Sõõru
Link to comment
Share on other sites

Today I went and update OS packages on my Odroid N2 running Armbian HA instance. Logs:
 

Spoiler
root@odroidn2:/home/igorp# apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  containerd.io docker-ce docker-ce-cli docker-compose-plugin libc-bin libc-l10n libc6 libcryptsetup12 libgnutls30 libnetplan0 libpam-systemd
  libsystemd-shared libsystemd0 libudev1 locales netplan.io systemd systemd-journal-remote systemd-resolved systemd-sysv tar tzdata udev usbutils
  usrmerge
25 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 76,3 MB of archives.
After this operation, 8532 kB of additional disk space will be used.
Do you want to continue? [Y/n] 
Get:1 http://deb.debian.org/debian bookworm/main arm64 tar arm64 1.34+dfsg-1.2+deb12u1 [818 kB]
Get:2 https://download.docker.com/linux/debian bookworm/stable arm64 containerd.io arm64 1.6.28-1 [21,3 MB]
Get:3 http://deb.debian.org/debian bookworm/main arm64 libc6 arm64 2.36-9+deb12u4 [2322 kB]
Get:4 http://deb.debian.org/debian bookworm/main arm64 libc-bin arm64 2.36-9+deb12u4 [530 kB]
Get:5 http://deb.debian.org/debian bookworm/main arm64 systemd-sysv arm64 252.22-1~deb12u1 [41,9 kB]
Get:6 http://deb.debian.org/debian bookworm/main arm64 libpam-systemd arm64 252.22-1~deb12u1 [208 kB]
Get:7 http://deb.debian.org/debian bookworm/main arm64 systemd-journal-remote arm64 252.22-1~deb12u1 [92,2 kB]
Get:8 http://deb.debian.org/debian bookworm/main arm64 systemd-resolved arm64 252.22-1~deb12u1 [279 kB]
Get:9 http://deb.debian.org/debian bookworm/main arm64 systemd arm64 252.22-1~deb12u1 [2829 kB]
Get:10 https://download.docker.com/linux/debian bookworm/stable arm64 docker-ce-cli arm64 5:25.0.3-1~debian.12~bookworm [12,4 MB]
Get:11 https://download.docker.com/linux/debian bookworm/stable arm64 docker-ce arm64 5:25.0.3-1~debian.12~bookworm [14,8 MB]
Get:12 http://deb.debian.org/debian bookworm/main arm64 libsystemd-shared arm64 252.22-1~deb12u1 [1508 kB]
Get:13 http://deb.debian.org/debian bookworm/main arm64 libcryptsetup12 arm64 2:2.6.1-4~deb12u2 [205 kB]
Get:14 http://deb.debian.org/debian bookworm/main arm64 libsystemd0 arm64 252.22-1~deb12u1 [308 kB]
Get:15 http://deb.debian.org/debian bookworm/main arm64 libgnutls30 arm64 3.7.9-2+deb12u2 [1313 kB]                                                   
Get:16 https://download.docker.com/linux/debian bookworm/stable arm64 docker-compose-plugin arm64 2.24.5-1~debian.12~bookworm [10,4 MB]               
Get:17 http://deb.debian.org/debian bookworm/main arm64 udev arm64 252.22-1~deb12u1 [1602 kB]                                                         
Get:18 http://deb.debian.org/debian bookworm/main arm64 libudev1 arm64 252.22-1~deb12u1 [102 kB]                                                      
Get:19 http://deb.debian.org/debian bookworm/main arm64 usrmerge all 37~deb12u1 [13,3 kB]                                                             
Get:20 http://deb.debian.org/debian bookworm/main arm64 tzdata all 2024a-0+deb12u1 [297 kB]                                                           
Get:21 http://deb.debian.org/debian bookworm/main arm64 libc-l10n all 2.36-9+deb12u4 [674 kB]                                                         
Get:22 http://deb.debian.org/debian bookworm/main arm64 locales all 2.36-9+deb12u4 [3902 kB]                                                          
Get:23 http://deb.debian.org/debian bookworm/main arm64 netplan.io arm64 0.106-2+deb12u1 [101 kB]                                                     
Get:24 http://deb.debian.org/debian bookworm/main arm64 libnetplan0 arm64 0.106-2+deb12u1 [86,3 kB]                                                   
Get:25 http://deb.debian.org/debian bookworm/main arm64 usbutils arm64 1:014-1+deb12u1 [70,2 kB]                                                      
Fetched 76,3 MB in 9s (8658 kB/s)                                                                                                                     
Preconfiguring packages ...
(Reading database ... 29889 files and directories currently installed.)
Preparing to unpack .../tar_1.34+dfsg-1.2+deb12u1_arm64.deb ...
Unpacking tar (1.34+dfsg-1.2+deb12u1) over (1.34+dfsg-1.2) ...
Setting up tar (1.34+dfsg-1.2+deb12u1) ...
(Reading database ... 29889 files and directories currently installed.)
Preparing to unpack .../libc6_2.36-9+deb12u4_arm64.deb ...
Unpacking libc6:arm64 (2.36-9+deb12u4) over (2.36-9+deb12u3) ...
Setting up libc6:arm64 (2.36-9+deb12u4) ...
(Reading database ... 29889 files and directories currently installed.)
Preparing to unpack .../libc-bin_2.36-9+deb12u4_arm64.deb ...
Unpacking libc-bin (2.36-9+deb12u4) over (2.36-9+deb12u3) ...
Setting up libc-bin (2.36-9+deb12u4) ...
(Reading database ... 29889 files and directories currently installed.)
Preparing to unpack .../0-systemd-sysv_252.22-1~deb12u1_arm64.deb ...
Unpacking systemd-sysv (252.22-1~deb12u1) over (252.19-1~deb12u1) ...
Preparing to unpack .../1-libpam-systemd_252.22-1~deb12u1_arm64.deb ...
Unpacking libpam-systemd:arm64 (252.22-1~deb12u1) over (252.19-1~deb12u1) ...
Preparing to unpack .../2-systemd-journal-remote_252.22-1~deb12u1_arm64.deb ...
Unpacking systemd-journal-remote (252.22-1~deb12u1) over (252.19-1~deb12u1) ...
Preparing to unpack .../3-systemd-resolved_252.22-1~deb12u1_arm64.deb ...
Unpacking systemd-resolved (252.22-1~deb12u1) over (252.19-1~deb12u1) ...
Preparing to unpack .../4-systemd_252.22-1~deb12u1_arm64.deb ...
Unpacking systemd (252.22-1~deb12u1) over (252.19-1~deb12u1) ...
Preparing to unpack .../5-libsystemd-shared_252.22-1~deb12u1_arm64.deb ...
Unpacking libsystemd-shared:arm64 (252.22-1~deb12u1) over (252.19-1~deb12u1) ...
Preparing to unpack .../6-libcryptsetup12_2%3a2.6.1-4~deb12u2_arm64.deb ...
Unpacking libcryptsetup12:arm64 (2:2.6.1-4~deb12u2) over (2:2.6.1-4~deb12u1) ...
Preparing to unpack .../7-libsystemd0_252.22-1~deb12u1_arm64.deb ...
Unpacking libsystemd0:arm64 (252.22-1~deb12u1) over (252.19-1~deb12u1) ...
Setting up libsystemd0:arm64 (252.22-1~deb12u1) ...
(Reading database ... 29889 files and directories currently installed.)
Preparing to unpack .../libgnutls30_3.7.9-2+deb12u2_arm64.deb ...
Unpacking libgnutls30:arm64 (3.7.9-2+deb12u2) over (3.7.9-2+deb12u1) ...
Setting up libgnutls30:arm64 (3.7.9-2+deb12u2) ...
(Reading database ... 29889 files and directories currently installed.)
Preparing to unpack .../udev_252.22-1~deb12u1_arm64.deb ...
Unpacking udev (252.22-1~deb12u1) over (252.19-1~deb12u1) ...
Preparing to unpack .../libudev1_252.22-1~deb12u1_arm64.deb ...
Unpacking libudev1:arm64 (252.22-1~deb12u1) over (252.19-1~deb12u1) ...
Setting up libudev1:arm64 (252.22-1~deb12u1) ...
(Reading database ... 29889 files and directories currently installed.)
Preparing to unpack .../usrmerge_37~deb12u1_all.deb ...
Unpacking usrmerge (37~deb12u1) over (35) ...
Setting up usrmerge (37~deb12u1) ...
(Reading database ... 29889 files and directories currently installed.)
Preparing to unpack .../0-tzdata_2024a-0+deb12u1_all.deb ...
Unpacking tzdata (2024a-0+deb12u1) over (2023c-5+deb12u1) ...
Preparing to unpack .../1-libc-l10n_2.36-9+deb12u4_all.deb ...
Unpacking libc-l10n (2.36-9+deb12u4) over (2.36-9+deb12u3) ...
Preparing to unpack .../2-locales_2.36-9+deb12u4_all.deb ...
Unpacking locales (2.36-9+deb12u4) over (2.36-9+deb12u3) ...
Preparing to unpack .../3-containerd.io_1.6.28-1_arm64.deb ...
Unpacking containerd.io (1.6.28-1) over (1.6.26-1) ...
Preparing to unpack .../4-docker-ce-cli_5%3a25.0.3-1~debian.12~bookworm_arm64.deb ...
Unpacking docker-ce-cli (5:25.0.3-1~debian.12~bookworm) over (5:24.0.7-1~debian.12~bookworm) ...
Preparing to unpack .../5-docker-ce_5%3a25.0.3-1~debian.12~bookworm_arm64.deb ...
Unpacking docker-ce (5:25.0.3-1~debian.12~bookworm) over (5:24.0.7-1~debian.12~bookworm) ...
Preparing to unpack .../6-docker-compose-plugin_2.24.5-1~debian.12~bookworm_arm64.deb ...
Unpacking docker-compose-plugin (2.24.5-1~debian.12~bookworm) over (2.21.0-1~debian.12~bookworm) ...
Preparing to unpack .../7-netplan.io_0.106-2+deb12u1_arm64.deb ...
Unpacking netplan.io (0.106-2+deb12u1) over (0.106-2) ...
Preparing to unpack .../8-libnetplan0_0.106-2+deb12u1_arm64.deb ...
Unpacking libnetplan0:arm64 (0.106-2+deb12u1) over (0.106-2) ...
Preparing to unpack .../9-usbutils_1%3a014-1+deb12u1_arm64.deb ...
Unpacking usbutils (1:014-1+deb12u1) over (1:014-1) ...
Setting up libc-l10n (2.36-9+deb12u4) ...
Setting up libnetplan0:arm64 (0.106-2+deb12u1) ...
Setting up locales (2.36-9+deb12u4) ...
Generating locales (this might take a while)...
  en_US.UTF-8... done
  sl_SI.UTF-8... done
Generation complete.
Setting up usbutils (1:014-1+deb12u1) ...
Setting up tzdata (2024a-0+deb12u1) ...

Current default time zone: 'Europe/Ljubljana'
Local time is now:      Fri Feb 23 19:22:20 CET 2024.
Universal Time is now:  Fri Feb 23 18:22:20 UTC 2024.
Run 'dpkg-reconfigure tzdata' if you wish to change it.

Setting up udev (252.22-1~deb12u1) ...
Setting up libsystemd-shared:arm64 (252.22-1~deb12u1) ...
Setting up containerd.io (1.6.28-1) ...
Setting up docker-compose-plugin (2.24.5-1~debian.12~bookworm) ...
Setting up docker-ce-cli (5:25.0.3-1~debian.12~bookworm) ...
Setting up libcryptsetup12:arm64 (2:2.6.1-4~deb12u2) ...
Setting up systemd (252.22-1~deb12u1) ...
Setting file flags is only supported on regular files and directories, cannot set on '/var/log/journal'.
Setting up systemd-journal-remote (252.22-1~deb12u1) ...
Setting up netplan.io (0.106-2+deb12u1) ...
Setting up docker-ce (5:25.0.3-1~debian.12~bookworm) ...
Installing new version of config file /etc/init.d/docker ...
Setting up systemd-resolved (252.22-1~deb12u1) ...
Setting up systemd-sysv (252.22-1~deb12u1) ...
Setting up libpam-systemd:arm64 (252.22-1~deb12u1) ...
Processing triggers for libc-bin (2.36-9+deb12u4) ...
Processing triggers for man-db (2.11.2-2) ...
Processing triggers for dbus (1.14.10-1~deb12u1) ...
Processing triggers for initramfs-tools (0.142) ...
update-initramfs: Generating /boot/initrd.img-6.6.10-current-meson64
update-initramfs: Armbian: Converting to u-boot format: /boot/uInitrd-6.6.10-current-meson64
Image Name:   uInitrd
Created:      Fri Feb 23 19:23:20 2024
Image Type:   AArch64 Linux RAMDisk Image (gzip compressed)
Data Size:    15372432 Bytes = 15012.14 KiB = 14.66 MiB
Load Address: 00000000
Entry Point:  00000000
update-initramfs: Armbian: Symlinking /boot/uInitrd-6.6.10-current-meson64 to /boot/uInitrd
'/boot/uInitrd' -> 'uInitrd-6.6.10-current-meson64'
update-initramfs: Armbian: done.

 

 

I did reboot after this, then update Home Assistant Core via HA web interface to latest version 2024.2.3

All went fine!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines