Saturday, September 14, 2024

Installing Home Assistant on Armbian

 Those are the steps needed to install Home Assistant on Armbian 12 on any board (Orange PI PC):

  1.  Download the image of Armbian for you board
  2. In the shell write sudo su -
  3. Install the required libraries: 
    apt install apparmor bluez cifs-utils curl dbus jq libglib2.0-bin lsb-release network-manager nfs-common systemd-journal-remote systemd-resolved udisks2 wget -y
  4. Setting up NetworkManager, 
    1. sudo systemctl stop systemd-networkd
    2. sudo systemctl disable systemd-networkd
    3. sudo nano /etc/network/interfaces
      It should look like this:
      auto lo
      iface lo inet loopback
    4. sudo nano /etc/NetworkManager/NetworkManager.conf
    5. It should look like this:
      [main]
      plugins=ifupdown,keyfile
      [ifupdown]
      managed=true
    6. sudo systemctl reload NetworkManager
    7. sudo systemctl restart NetworkManager
    8. cd /etc/netplan/
    9. look for a single .yaml file edit it for example (10-dhcp-all-interfaces.yaml)
    10. in the line with "renderer: NetworkManager" change to NetworkManager, save and exit
    11. sudo netplan apply
    12. you might loose connectivity, do a sudo reboot
  5. Relogin to the server
  6. sudo nano /etc/os-release
  7. Change the line to look like this:
    PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
  8. save and exit
  9. sudo nano /boot/armbianEnv.txt
  10. at the end of the file add:
    extraargs=systemd.unified_cgroup_hierarchy=0
  11. save and exit
  12. sudo reboot
  13. sudo su -
  14. curl -fsSL get.docker.com | sh
  15. installing the OS-Agent
    1. follow the instructions, select your appropriate architecture (mine was armv7)
    2. check that it was installed correctly:
      gdbus introspect --system --dest io.hass.os --object-path /io/hass/os
    3. you should see some output
  16. the main install
    1. wget -O homeassistant-supervised.deb https://github.com/home-assistant/supervised-installer/releases/latest/download/homeassistant-supervised.deb
    2. apt install ./homeassistant-supervised.deb
    3. select "qemuarm" for armv7 in the selection list
    4. sudo systemctl enable hassio-apparmor.service
    5. sudo systemctl enable hassio-supervisor.service
  17. sudo reboot

Wait about 10 minutes for the dockers to spun up, and then you can access it http://<IP>:8123


No comments:

Post a Comment