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

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Home Assistant for China

预装集成

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

如果想要加载项功能,可以使用hass-super

HA启动时会逐个检测是否安装以下集成,如果没有则自动安装,已安装不会覆盖

可用镜像

  • ghcr.nju.edu.cn/hasscc/hacn
  • ccr.ccs.tencentyun.com/hacn/hacn
  • registry.cn-hangzhou.aliyuncs.com/hasscc/hacn
  • hacn/hacn

命令安装

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

docker run -d \
  --name homeassistant \
  --privileged \
  --restart=unless-stopped \
  -v /PATH_TO_YOUR_CONFIG:/config \
  -v /run/dbus:/run/dbus:ro \
  -e TZ=Asia/Shanghai \
  -e ALWAYS_INSTALL=true \
  --network=host \
  ghcr.nju.edu.cn/hasscc/hacn:stable

Compose 安装

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

services:
  homeassistant:
    container_name: homeassistant
    image: ghcr.nju.edu.cn/hasscc/hacn:stable
    volumes:
      - /PATH_TO_YOUR_CONFIG:/config
      - /etc/localtime:/etc/localtime:ro
      - /run/dbus:/run/dbus:ro
    environment:
      - TZ=Asia/Shanghai
      - ALWAYS_INSTALL=true  # 默认为true,每次启动都会逐个预装,否则仅全新HA才会预装
      - ALWAYS_UPGRADE=false # 默认为false,每次启动都会逐个预装最新版本的插件
    restart: unless-stopped
    privileged: true
    network_mode: host

相关链接

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages