作为使用苹果全家桶的我来说,自然是选择HomeKit 更佳 —— 无缝整合在 iOS / macOS / watchOS 的 HomeKit 不仅也省去了我安装各类单独 App 的麻烦,再配合 Siri 和快捷指令这两个强大的工具,获得更优秀的使用体验。
version: '3.8' services: homeassistant: image: ghcr.io/home-assistant/home-assistant:stable container_name: homeassistant privileged: true restart: unless-stopped environment: - TZ=Asia/Shanghai # 替换为你的时区,例如 Asia/Shanghai volumes: - /share/Container/ha/config:/config # 冒号左侧替换为你的配置路径 - /run/dbus:/run/dbus:ro # 挂载 dbus,确保主机的相关服务可用 network_mode: host # host模式下默认端口为8123。