环境

国内镜像
debian (bullseye)

编辑 /etc/apt/sources.list 文件,删除原文件所有内容,用以下内容取代

1
2
deb http://mirrors.aliyun.com/raspbian/raspbian/ bullseye main non-free contrib
deb-src http://mirrors.aliyun.com/raspbian/raspbian/ bullseye main non-free contrib

编辑 /etc/apt/sources.list.d/raspi.list 文件,删除原文件所有内容,用以下内容取代:

1
2
deb http://mirrors.aliyun.com/raspberrypi/ bullseye main

docker 搭建 home assistant

1
2
3
4
5
6
7
8
docker run -d \
--name homeassistant \
--privileged \
--restart=unless-stopped \
-e TZ=MY_TIME_ZONE \
-v /PATH_TO_YOUR_CONFIG:/config \
--network=host \
ghcr.io/home-assistant/home-assistant:stable
1
docker-compose up -d