Reload dashboard resources
Use this action to load your dashboard resources from YAML again, without restarting Home Assistant. Resources are the extra JavaScript and CSS files, such as custom cards, that your dashboards load. Run this action after you change the resources list under lovelace: in your configuration.yamlThe configuration.yaml file is the main configuration file for Home Assistant. It lists the integrations to be loaded and their specific configurations. In some cases, the configuration needs to be edited manually directly in the configuration.yaml file. Most integrations can be configured in the UI. [Learn more] file.
This action is only available when you load resources from YAML, with resource_mode: yaml. If you manage resources in the UI, under Settings > Dashboards in the three dots
Using this action from the user interface
If you prefer building automations and scripts visually, Home Assistant walks you through this action step by step. You pick what to target, tweak a few options, and save. No YAML knowledge required.
To reload the dashboard resources from an automation or a script:
- Go to Settings > Automations & scenes.
- Open an existing automation or script, or select Create automation > Create new automation.
- If you’re setting up a new automation, add a trigger in the When section. Scripts don’t need a trigger. They run when something else calls them.
- In the Then do section, select Add action.
- From the search box, search for and select Reload dashboard resources.
- Select Save.
This action does not support targets. In the UI, you are not prompted to choose an area, device, entity, or label.
Options in the UI
This action has no additional options in the UI.
Using this action in YAML
If you work directly in YAML, or you want to know exactly what Home Assistant does under the hood, this section has the technical reference. It lists the field names you use in YAML, their types, and which ones are required.
In YAML, refer to this action as lovelace.reload_resources. A basic example looks like this:
action: lovelace.reload_resources
This reloads the dashboard resources from your YAML configuration.
Options in YAML
This action has no additional options in YAML.
Good to know
- Only administrators can run this action.
- You can also reload the resources from a dashboard: select the three dots
menu in the top-right corner, and select Reload resources. - If your YAML configuration can’t be loaded, nothing is reloaded and the action fails with an error. Check the logs to see what went wrong.
- After the reload, refresh your browser to load the new resources in an open dashboard.
Try it yourself
To test this action, open Settings > Tools > Actions, search for Reload dashboard resources, and select Perform action. Refresh your browser to load the reloaded resources.
Still stuck?
The Home Assistant community is quick to help: join Discord for real-time chat, post on the community forum with the action you’re calling and what you expected to happen, or share on our subreddit /r/homeassistant.
AI assistants like ChatGPT or Claude can also explain actions or suggest the right one when you describe what you want in plain language.
Related actions
Explore related actions:
- Reload themes: Reloads the theme configuration from your configuration.yaml file.