2024年11月21日星期四 下午11:58:14

Auto-entities - Automatically fill cards with entities Home Assistant docker (via hacs)

7 个月 前
#31944 引用
Auto-entities - Automatically fill cards with entities Home Assistant docker (via hacs)

https://github.com/thomasloven/lovelace-auto-entities

how to install
hacs


how to use
https://community.home-assistant.io/t/auto-entities-automatically-fill-cards-with-entities/147801/1259

中文
https://gitcode.com/thomasloven/lovelace-auto-entities/overview?utm_source=artical_gitcode
0
7 个月 前
#31946 引用
第二步:通过 HACS 安装卡片
在Home Assistant的侧边栏中,点击"HACS"。
切换到"前端"选项卡。
点击右下角的"浏览库"按钮。
安装auto-entities:
搜索"auto-entities"。
找到auto-entities卡片后,点击它。
点击"安装"按钮。


@raspberrypi:/home/homeassistant20221103# pwd
/home/homeassistant20221103



/home/homeassistant20221103
@raspberrypi:/home/homeassistant20221103# tree -L 1
.
├── automations.yaml
├── backups
├── blueprints
├── configuration.yaml
├── core
├── custom_components
├── deps
├── home-assistant.log
├── home-assistant.log.1
├── home-assistant.log.fault
├── home-assistant_v2.db
├── home-assistant_v2.db-shm
├── home-assistant_v2.db-wal
├── media
├── python_scripts
├── Raspberry Pi  server
├── README.md
├── scenes.yaml
├── scripts.yaml
├── secrets.yaml
├── tts
└── www



/home/homeassistant20221103/www/community/lovelace-auto-entities


├── scenes.yaml
├── scripts.yaml
├── secrets.yaml
├── tts
│   └── b0faf7a3974eacd2c537bb1438f13d5a480a0bae_zh-cn_-_edge_tts.mp3
└── www
    └── community
        └── lovelace-auto-entities
            ├── auto-entities.js
            ├── auto-entities.js.gz
            ├── rollup.config.js
            └── rollup.config.js.gz

0
5 个月 前
#37264 引用
Manually


There are two ways to import a plugin.

The easiest is via the graphical user interface (GUI).



doc
https://github.com/thomasloven/hass-config/wiki/Lovelace-Plugins
0
5 个月 前
#37265 引用
Download

wget https://raw.githubusercontent.com/thomasloven/lovelace-auto-entities/master/auto-entities.js

Place the file somewhere in /config/www/plugins/card-mod.js

/data/homeassistant202405/www/community/lovelace-auto-entities/*
0
5 个月 前
#38270 引用
Enable "Advanced Mode"

http://192.168.2.50:8123/profile/general

Advanced mode


Note
Adding resources can be dangerous, make sure you know the source of the resource and trust them. Bad resources could seriously harm your system
0
5 个月 前
#38271 引用
Select the "Resources" tab
http://192.168.2.50:8123/config/lovelace/dashboards



Note
If you don't see the tab, go back and make sure you enabled "Advanced Mode"
0
5 个月 前
#38272 引用
Add url

/data/homeassistant202405/www/community/lovelace-auto-entities/auto-entities.js


<config directory>=/data/homeassistant202405/

Replace <config directory>/www/ with /local/

local=/data/homeassistant202405/www


/local/community/lovelace-auto-entities/auto-entities.js




/data/homeassistant202405/.storage/lovelace_resources.json


{
  "version": 1,
  "minor_version": 1,
  "key": "lovelace_resources",
  "data": {
    "items": [
      {
        "id": "7a768f4f872447beb04b364bf4e52377",
        "url": "/local/community/lovelace-auto-entities/auto-entities.js",
        "type": "module"
      }
    ]
  }
}
0
5 个月 前
#38274 引用
restart ha
0
5 个月 前
#39267 引用
手动下载的文件放到 \\homeassistant\config\www\community   目录里面创建一个和JS一样名称的文件夹,然后把文件放里面

比如我下载了一个mini-graph-card-bundle.js
就放到了\\homeassistant\config\www\community\mini-graph-card\mini-graph-card-bundle.js

再配置-》仪表盘-》资源里面添加注意手动添加要以/local/community 开头 地址格式就是/local/community/文件夹/文件.js

后面填写路径和文件名,注意在HA里面填写路径的斜杠要换成  /  
地址就是/local/community/mini-graph-card/mini-graph-card-bundle.js
0
5 个月 前
#39268 引用
Using YAML: Add following code to lovelace section

resources:
    - url: /local/mushroom.js
      type: module


Using UI: Configuration → Lovelace Dashboards → Resources Tab → Click Plus button → Set Url as /local/mushroom.js → Set Resource type as JavaScript Module.
0