,系统必须是Debian11 Bullseye版本
Docker 快速安装
sudo apt-get update
sudo apt-get upgrade
#一键安装脚本
curl -fsSL get.docker.com -o get-docker.sh && sh get-docker.sh
安装依赖文件
sudo apt-get install \
jq \
wget \
curl \
udisks2 \
libglib2.0-bin \
network-manager \
dbus -y
查看系统架构
uname -a
armv7l
下载最新版本OS-Agent的deb包
wget https://ghproxy.com/https://github.com/home-assistant/os-agent/releases/download/1.3.0/os-agent_1.3.0_linux_armv7.deb
安装OS-Agent
sudo dpkg -i os-agent_1.3.0_linux_armv7.deb
amd64
下载最新版本OS-Agent的deb包
wget https://ghproxy.com/https://github.com/home-assistant/os-agent/releases/download/1.3.0/os-agent_1.3.0_linux_aarch64.deb
安装OS-Agent
sudo dpkg -i os-agent_1.3.0_linux_aarch64.deb
下载Home Assistant Supervised
wget https://ghproxy.com/https://github.com/home-assistant/supervised-installer/releases/latest/download/homeassistant-supervised.deb
安装Home Assistant Supervised
sudo dpkg -i homeassistant-supervised.deb
homeassistant-supervised支持的开发板如下:
generic-x86-64
odroid-c2
odroid-n2
odroid-xu
qemuarm
qemuarm-64
qemux86
qemux86-64
raspberrypi
raspberrypi2
raspberrypi3
raspberrypi4
raspberrypi3-64
raspberrypi4-64
tinker
khadas-vim3
选择raspberry4 或者 raspberry4-64,等待大概20分钟,在浏览器中输入http://X.X.X.X:8123即可访问
安装完成后可以输入 sudo docker ps -a
查看运行的容器
Docker 安装HomeAssistant 方法(不含Supervised)
sudo docker run -d \
--name homeassistant \
--privileged \
--restart=unless-stopped \
-e TZ=Asia/Shanghai \
-v /home/pi/homeassistant:/config \
--network=host \
ghcr.io/home-assistant/home-assistant:stable