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
作者:wanghongwei
版权声明:本作品遵循<CC BY-NC-ND 4.0>版权协议,商业转载请联系作者获得授权,非商业转载请附上原文出处链接及本声明。

浙公网安备 33010602011771号