mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-06-22 01:56:28 +00:00

* docs: add instructions of how to register lovelace resources via yaml * Update docs/frontend/custom-ui/registering-resources.md Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * Update registering-resources.md --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
30 lines
1.3 KiB
Markdown
30 lines
1.3 KiB
Markdown
---
|
|
title: "Registering resources"
|
|
---
|
|
|
|
If you want to extend the Home Assistant interface with custom cards, strategies or views you need to load external resources.
|
|
|
|
The first step is to make it accessible for the Home Assistant frontend. This is done by creating a new directory in your config folder called `www`. Create this directory and restart Home Assistant.
|
|
|
|
Once restarted, you can put files in this directory. Each file will be accessible without authentication via the UI at `/local`.
|
|
|
|
The next step is to register these resources with the Home Assistant interface. This is done by navigating to the Resources page by following below link:
|
|
|
|
[](https://my.home-assistant.io/redirect/lovelace_dashboards/) (Note: Once redirected, click the three dots menu in the top-right.)
|
|
|
|
:::note
|
|
|
|
This area is only available when the active user's profile has "advanced mode" enabled.
|
|
|
|
:::
|
|
|
|

|
|
|
|
Alternatively, you can also register the resource by adding it to the `resources` section of `lovelace` in the configuration:
|
|
|
|
```yaml
|
|
resources:
|
|
- url: /local/<name of the resource>.js
|
|
type: module
|
|
```
|