Home Assistant 备注信息

镜像拉取

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/hacs-china/integration

小米官方插件
https://github.com/XiaoMi/ha_xiaomi_home

美的插件
https://github.com/wuwentao/midea_ac_lan

巴法云插件
https://github.com/larry-wong/bemfa

小爱音箱本地曲库

mkdir /xiaomusic_{music,conf}
cat >run-xiaomusic.sh<<EOF
docker run -d \\
  --name xiaomusic \\
  --network=host \\
  --restart=unless-stopped \\
  -e XIAOMUSIC_PUBLIC_PORT=8090 \\
  -v /xiaomusic_music:/app/music \\
  -v /xiaomusic_conf:/app/conf \\
  docker.hanxi.cc/hanxi/xiaomusic
EOF
chmod +x run-xiaomusic.sh
./run-ha.sh
posted @ 2025-02-26 16:40  wanghongwei-dev  阅读(42)  评论(0)    收藏  举报