Giter Club home page Giter Club logo

integration's Introduction

HACS 极速版

version releases stars

HACS是一款优秀的 Home Assistant 集成商店,然而国人想要使用它下载插件或前端卡片却困难重重,主要原因就是国内的网络环境。 本项目使用了gitmirror.comfastgit.org等提供的Github镜像服务,可以让大家更快的下载商店里的插件。

安装

本项目是HACS官方集成的修改版,安装本项目版本会覆盖官方的集成,但是无需重新配置集成(共用一套配置),因此你可以放心安装。如果想切换到官方版本,使用官方的shell命令再安装即可。

使用命令行安装(推荐)

wget -O - https://hacs.vip/get | HUB_DOMAIN=ghps.cc/github.com bash -
  • 如果是haos/hassio/supervisor版本的HA,可直接在宿主机或Terminal & SSH加载项中执行上面的命令
  • 如果是core/docker版本的HA,需要ssh登陆宿主机后,并cd进入到HA配置目录再执行安装命令

手动安装

  • 点击这里下载安装包并解压 (如果下载不了请点这里这里)
  • 通过samba/ftp进入HA配置目录,通常为以下目录:
    • /usr/share/hassio/homeassistant haos/hassio宿主机
    • /config haos/hassio的SambaTerminal & SSH加载项
    • $HOME/.homeassistant 以core方式安装的HA默认配置目录
    • docker安装的HA为-v参数后面映射的目录
  • 在HA配置目录下创建custom_components文件夹 (如果已有请忽略)
  • custom_components目录下创建hacs文件夹 (如果已有请删除重新创建)
  • 將解压出来的文件复制到刚创建的hacs文件夹
  • 重启HA
  • 添加HACS集成 (仅首次安装)

⚠️ 请不要通过下图中的位置下载HACS,会缺少文件 download hacs

镜像

Note

自v1.27.1.3开始,HACS极速版支持自定义Github API镜像,如果你的HACS无法加载集成列表和集成详情,修改此选项会有所改善。 此前的版本仅能解决集成下载不了,而该版本后能解决大部分Github访问不了导致的大部分问题。

不过遗憾的是,首次安装HACS时的授权过程仍然还不能被加速,如果你在授权过程中一直转圈,请稍后再试或使用其他科学的方式。

  • 社区提供的免费镜像:
    • https://ghapi.hacs.vip - @al-one
    • https://ghapi-cf.hacs.vip/api - @al-one
    • https://hacs-china.chrome7.com/api - @goxofy
    • https://hacs-china.casen.tk/api - @CasenChan

Note

以上镜像由贡献者免费提供,是由Cloudflare Worker搭建,每个镜像每天有10万次请求次数限制,请随机使用上面的镜像。 我们建议你使用自己的域名创建镜像,当然也可以使用freenom.com的免费域名。

  • 创建自己的镜像:
    • 登陆或注册Cloudflare添加自己的域名,并修改域名的NS记录
    • 创建Worker服务,选择HTTP 处理程序
    • 复制index.js中的代码,并张贴至Worker的代码编辑器中
    • 部署并在触发器中添加自定义域名,Worker分配的域名是无法被访问的
    • 访问https://your.mirror.domain/api/检查是否生效
    • 在HA的集成与服务页面找到已添加的HACS,点击选项
    • 填入镜像地址https://your.mirror.domain/api

常见问题


🎉 Hassio/Supervisor加载项(Add-ons)商店镜像:https://gitee.com/hassio 🎉


HACS (Home Assistant Community Store)

Manage (Install, track, upgrade) and discover custom elements for Home Assistant directly from the UI.

gif

What?

HACS is a integration that gives the user a powerful UI to handle downloads of custom needs.

Highlights of what HACS can do:

  • Help you discover new custom elements.
  • Help you download new custom elements.
  • Help you keep track of your custom elements.
    • Manage(download/update/remove)
    • Shortcuts to repositories/issue tracker

Useful links

Issues

If When you experience issues/bugs with this the best way to report them is to open an issue in this repo.

Issue link

integration's People

Contributors

ludeeus avatar dependabot[bot] avatar dependabot-preview[bot] avatar al-one avatar bdraco avatar hwikene avatar ktibow avatar apop880 avatar tmechen avatar aidbish avatar bieniu avatar ascillato avatar 1dontex1st avatar sreknob avatar spacegaier avatar zarius avatar tychowerner avatar thomasloven avatar tcarlsen avatar r3mcos3 avatar peternijssen avatar balloob avatar eifinger avatar royto avatar jensvanhooydonck avatar thezoker avatar deadended avatar bramkragten avatar bokub avatar misiu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.