5

HACS的两种安装方法

 5 months ago
source link: https://www.taterli.com/9846/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

HACS的两种安装方法

HACS的两种安装方法

HACS可以增强HA的功能,至少,可以更漂亮一些.

方法1就是一键脚本了,这也是最快的方法,进入容器环境内部直接装就行,之前容器已经改名为homeassistant了,所以也照着抄就行.

root@debian:~# docker exec -it homeassistant bash
debian:/config# wget -O - https://get.hacs.xyz | bash -
image-22-1024x520.png

重启HA之后,点击"配置->集成->添加集成,在搜索框里输入HACS,关联GitHub然后就完成了.

image-23-1024x615.png
image-24-1024x615.png

HACS市场也可以用了,打开看到很多漂亮组件,可以自由安装,

image-26-1024x496.png

添加卡片时候就看到很多蘑菇卡了.

image-27-1024x496.png

比如我新增的Mushroom Update,各种更多功能可以自己关联.

image-29-1024x496.png

墙内用户还是适合手动安装一些,之后的操作就是在网页上的操作.

  • 中国源包:https://github.com/hacs-china/integration/releases/latest/download/hacs.zip 国外源包:https://github.com/hacs/integration/releases/download/1.34.0/hacs.zip
  • 在HA配置目录下(比如我这里的 /opt/homeassistant )创建custom_components文件夹 (如果已有请忽略)
  • custom_components目录下创建hacs文件夹 (如果已有请删除重新创建)
  • 將解压出来的文件复制到刚创建的hacs文件夹
image-30.png

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK