HomeAssistant 插件

国区应用商店(了解)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
# 下载地址
https://get.hassbox.cn/hassbox_store.zip

# 文件上传到 custom_components 目录下
cd homeassistant/config/custom_components/

# 创建文件夹
mkdir hassbox_store

# 进入目录
cd hassbox_store

# 上传压缩包解压
unzip hassbox_store.zip

# 重启 HA 服务生效
/images/posts/HomeAssistant插件/1.png
(图1)
/images/posts/HomeAssistant插件/2.png
(图2)

安装 hacs

我映射的目录是 /home/piliqiu/homeassistant/config

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# 1. 进入 config 目录
cd /home/piliqiu/homeassistant/config

# 2. 创建 custom_components(如果还没有)
mkdir -p custom_components/hacs

# 3. 进入 hacs 目录
cd custom_components/hacs

# 4. 下载 HACS 最新版本
curl -sL https://github.com/hacs/integration/releases/latest/download/hacs.zip -o hacs.zip

# 5. 安装 unzip(如果未安装)
sudo apt update && sudo apt install unzip -y

# 6. 解压并清理
unzip hacs.zip
rm hacs.zip

# 7. 修复权限,确保容器能读取
chmod -R 777 /home/piliqiu/homeassistant/config/*

# 8. 安装后需要重启容器
/images/posts/HomeAssistant插件/3.png
(图3)
/images/posts/HomeAssistant插件/4.png
(图4)
/images/posts/HomeAssistant插件/5.png
(图5)
/images/posts/HomeAssistant插件/6.png
(图6)
/images/posts/HomeAssistant插件/7.png
(图7)
/images/posts/HomeAssistant插件/8.png
(图8)

彩云天气

HACS 中搜索 彩云天气,安装 彩云天气Colorfulclouds Weather Card

/images/posts/HomeAssistant插件/9.png
(图9)

申请 彩云天气key

/images/posts/HomeAssistant插件/10.png
(图10)
/images/posts/HomeAssistant插件/11.png
(图11)
/images/posts/HomeAssistant插件/12.png
(图12)
/images/posts/HomeAssistant插件/13.png
(图13)
/images/posts/HomeAssistant插件/14.png
(图14)

免费用户是 1000 次,修改数据刷新间隔,延长使用时间

/images/posts/HomeAssistant插件/15.png
(图15)

配置后,重启 homeassistant

新增网页卡片

/images/posts/HomeAssistant插件/16.png
(图16)

/images/posts/HomeAssistant插件/17.png
(图17)

选择实体(家庭)、配置和次要信息(例如:湿度)

/images/posts/HomeAssistant插件/18.png
(图18)

翻页时钟

地址:https://github.com/liaoliao007/leoha/

之前 homeassistant 映射的目录是 /home/piliqiu/homeassistant/config

将仓库中 www 目录下的 clock 文件夹放到 /home/piliqiu/homeassistant/config/www 目录下

/images/posts/HomeAssistant插件/19.png
(图19)
1
2
3
4
5
6
7
8
/home/piliqiu/homeassistant/config/
├── ...(其他文件)
└── www/
    └── clock/
        ├── __init__.py
        ├── index.html
        ├── script.js
        └── style.css

/local/clock/index.html 中的 local 表示 www

/images/posts/HomeAssistant插件/20.png
(图20)

windy天气

/images/posts/HomeAssistant插件/21.png
(图21)
/images/posts/HomeAssistant插件/22.png
(图22)

复制网页嵌入代码

/images/posts/HomeAssistant插件/23.png
(图23)

/images/posts/HomeAssistant插件/24.png
(图24)

从之前的嵌入代码中复制 src 中的内容粘贴到这里

/images/posts/HomeAssistant插件/25.png
(图25)

/images/posts/HomeAssistant插件/26.png
(图26)

0%