镜像拉取
docker pull ghcr.io/home-assistant/home-assistant:stable
容器运行
cd /root
mkdir haconfig
cat >run-ha.sh<<EOF
docker run -d \--name homeassistant \--privileged \--restart=unless-stopped \-e TZ=Asia/Shanghai \-v /root/haconfig:/config \-v /run/dbus:/run/dbus:ro \--network=host \ghcr.io/home-assistant/home-assistant:stable
EOF
chmod +x run-ha.sh
./run-ha.sh
HACS
https://github.com/hacs/integration
小米官方插件
https://github.com/XiaoMi/ha_xiaomi_home
美的三方插件
https://github.com/georgezhao2010/midea_ac_lan