Resources & YAML¶
There is no HACS install for the Dynamic Grid Card yet, so every installation is a manual one and registering the resource is always required. Home Assistant has to be told where the JavaScript file lives.
Register the resource (UI)¶
- Go to Settings → Dashboards.
- Open the ⋮ (three dots) menu → Resources.
- Click Add Resource.
| Field | Value |
|---|---|
| URL | /local/dynamic-grid-card.js |
| Resource type | JavaScript Module |
Missing Resources menu?
Enable Advanced Mode in your user profile (Settings → Profile → Advanced Mode) – otherwise the Resources entry is hidden.
/local/ is the alias for <config>/www/, so /local/dynamic-grid-card.js points to <config>/www/dynamic-grid-card.js.
Register the resource (YAML)¶
You can also add the resource to your Lovelace configuration:
Wrong resource type
type: module is required. If you use type: js the card silently fails and Home Assistant will tell you the card type is unknown.
Add the card to a dashboard¶
The Dynamic Grid Card is added as a Manual card – there is no entry in the card picker:
- Open your dashboard and click Edit.
- Click Add Card and choose Manual.
- Enter:
All available options are described in Configuration.
Loading order¶
Resources are loaded once per browser session. After changing anything:
- Save the dashboard.
- Hard refresh the page (Ctrl/Cmd + Shift + R) or clear the cache.
- If the card still does not show up, reload resources via ⋮ menu → Reload resources.