参考:香橙派安装HomeAssistant-supervised - 掘金 (juejin.cn)
Orange Pi Zero3安装Home Assistant Supervised (leetoutou.xyz)
- 镜像:Orangepizero3_1.0.2_debian_bookworm_server_linux6.1.31.img3.
-
1、扫描wifi sudo nmcli dev wifi 2、连接wifi sudo nmcli dev wifi connect wifi名 password 密码
3.更新软件包
sudo apt-get update
5.4.安装ha依赖
apt install \
apparmor \
cifs-utils \
curl \
dbus \
jq \
libglib2.0-bin \
lsb-release \
network-manager \
nfs-common \
systemd-journal-remote \
systemd-resolved \
udisks2 \
wget -y
#然后重启
reboot
5.安装docker
sudo curl -fsSL https://get.docker.com -o get-docker.sh
6.安装OS Agent
# 下载OS Agent
wget https://github.com/home-assistant/os-agent/releases/download/1.6.0/os-agent_1.6.0_linux_aarch64.deb
# 使用dpkg安装
sudo dpkg -i os-agent_1.6.0_linux_aarch64.deb
7.安装apparmor
# 安装 apparmor
sudo apt install -y apparmor-utils jq software-properties-common apt-transport-https avahi-daemon ca-certificates curl dbus socat
# 使用vim打开/boot/cmdline.txt
sudo vim /boot/cmdline.txt
#添加代码:
apparmor=1 security=apparmor
#保存
按ESC键 输入 :wq 回车
cd ~
sudo vim /etc/default/grub
#添加代码并保存
systemd.unified_cgroup_hierarchy=false
#然后重启
reboot
8.安装 Home Assistant Supervised
wget -O homeassistant-supervised.deb https://github.com/home-assistant/supervised-installer/releases/latest/download/homeassistant-supervised.deb
sudo vim /etc/os-release
#在你开始之前,修改/etc/os-release文件,并将第一行更改为:
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
sudo dpkg -i homeassistant-supervised.deb
9.选择机器类型 qemuarm-64
10.安装成功
11.最终效果
如果选错类型,可卸载后重装
卸载
dpkg -P homeassistant-supervised
安装
dpkg -i homeassistant-supervised.deb
docker ps 查看容器运行状态,如果没有任何在运行的容器,就等待半小时左右再确认下;如果有容器,执行reboot重启一下
12、若报错
dpkg: error processing package homeassistant-supervised (--configure):
installed homeassistant-supervised package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
homeassistant-supervised
运行以下代码
sudo mv /var/lib/dpkg/info /var/lib/dpkg/info.bk sudo mkdir /var/lib/dpkg/info sudo apt-get update sudo apt-get -f install sudo mv /var/lib/dpkg/info/* /var/lib/dpkg/info.bk sudo rm -rf /var/lib/dpkg/info sudo mv /var/lib/dpkg/info.bk /var/lib/dpkg/info
重新
sudo dpkg -i homeassistant-supervised.deb