Loading... 废话不多说,直接上代码 网站:[链接](https://www.home-assistant.io/installation/linux#docker-compose) ```yaml services: homeassistant: container_name: homeassistant image: "ghcr.io/home-assistant/home-assistant:stable" volumes: - /PATH_TO_YOUR_CONFIG:/config - /etc/localtime:/etc/localtime:ro - /run/dbus:/run/dbus:ro restart: unless-stopped privileged: true network_mode: host devices: - /dev/ttyUSB0:/dev/ttyUSB0 ``` 使用`docker up -d`就可以运行这个服务了 访问页面方式:`http://ip:8123/` 后续更新添加应用 最后修改:2025 年 04 月 13 日 © 允许规范转载 打赏 赞赏作者 支付宝微信 赞 如果觉得我的文章对你有用,请随意赞赏