Skip to content

Home Assistant 预装HACS极速版、米家、天气预报、文件管理等常用集成

Notifications You must be signed in to change notification settings

hasscc/hass-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

预装集成

本镜像每日更新,可用tag有stablelatestdev及月度版本如2024.9

预装集成仅针对新安装的HA,如已有custom_components目录则不会执行预装。

命令安装

https://www.home-assistant.io/installation/linux#install-home-assistant-container

docker run -d \
  --name homeassistant \
  --privileged \
  --restart=unless-stopped \
  -e TZ=Asia/Shanghai \
  -v /PATH_TO_YOUR_CONFIG:/config \
  -v /run/dbus:/run/dbus:ro \
  --network=host \
  hacn/hacn:stable

Compose 安装

https://www.home-assistant.io/installation/linux#docker-compose

services:
  homeassistant:
    container_name: homeassistant
    image: hacn/hacn:stable
    volumes:
      - /PATH_TO_YOUR_CONFIG:/config
      - /etc/localtime:/etc/localtime:ro
      - /run/dbus:/run/dbus:ro
    environment:
      - TZ=Asia/Shanghai
      - ALWAYS_INSTALL=false # 可选,如果为true,每次启动都会逐个安装预装集成
    restart: unless-stopped
    privileged: true
    network_mode: host

相关链接

About

Home Assistant 预装HACS极速版、米家、天气预报、文件管理等常用集成

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published