Skip to content
/ get Public

Home Assistant custom components download script

Notifications You must be signed in to change notification settings

hasscc/get

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 

Repository files navigation

Home Assistant 自定义集成下载脚本

通过HA服务安装/更新插件

  1. 复制下面的代码到HA配置文件configuration.yaml
    shell_command:
    
      # HACS极速版
      update_hacs_china: |-
        wget -O - https://get.hacs.vip | bash -
    
      # Xiaomi Miot Auto
      update_xiaomi_miot: |-
        wget -O - https://get.hacs.vip | DOMAIN=xiaomi_miot bash -
      update_xiaomi_miot_beta: |-
        wget -O - https://get.hacs.vip | DOMAIN=xiaomi_miot ARCHIVE_TAG=master bash -
    
      # XiaomiGateway3
      update_xiaomi_gateway3: |-
        wget -O - https://get.hacs.vip | DOMAIN=xiaomi_gateway3 bash -
    
      # 文件管理器
      update_file_explorer: |-
        wget -O - https://get.hacs.vip | DOMAIN=ha_file_explorer bash -
    
      # 天气插件
      update_tianqi: |-
        wget -O - https://get.hacs.vip | DOMAIN=tianqi bash -
    
      # Edge TTS
      update_edge_tts: |-
        wget -O - https://get.hacs.vip | DOMAIN=edge_tts bash -
    
      # 国家电网
      update_state_grid: |-
        wget -O - https://get.hacs.vip | DOMAIN=state_grid bash -
  2. 重启HA
  3. 在HA开发者工具中调用服务

指定集成

wget -O - https://hacs.vip/get | DOMAIN=hacs REPO_PATH=hacs-china/integration ARCHIVE_TAG=china bash -
wget -O - https://hacs.vip/get | DOMAIN=xiaomi_miot REPO_PATH=al-one/hass-xiaomi-miot ARCHIVE_TAG=latest bash -

指定版本

wget -O - https://hacs.vip/get | DOMAIN=hacs REPO_PATH=hacs-china/integration ARCHIVE_TAG=v1.0.0 bash -
wget -O - https://hacs.vip/get | DOMAIN=xiaomi_miot REPO_PATH=al-one/hass-xiaomi-miot ARCHIVE_TAG=master bash -

指定镜像

wget -O - https://hacs.vip/get | HUB_DOMAIN=ghps.cc/github.com DOMAIN=hacs REPO_PATH=hacs-china/integration ARCHIVE_TAG=china bash -
wget -O - https://hacs.vip/get | HUB_DOMAIN=hub.fastgit.xyz DOMAIN=hacs REPO_PATH=hacs-china/integration bash -

选项说明

DOMAIN:      自定义插件域,下载后在`custom_components`目录下的文件夹名
REPO_PATH:   插件的Github仓库路径
ARCHIVE_TAG: 插件的版本/分支,默认为`master`,部分插件支持`latest`
HUB_DOMAIN:  指定Github镜像

About

Home Assistant custom components download script

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages