Get Lovelace dashboard config
dashboards_get_dashboard_configRetrieve a Lovelace dashboard's full config or a read-only excerpt of one view. Use it to inspect views and sections before editing.
Instructions
Get one Lovelace dashboard's config, or a read-only excerpt of one view.
Calls lovelace/config for url_path as a dashboard; if that raises
config_not_found, re-fetches the default dashboard and returns the
matching view instead, since url_path may instead be that view's own
path.
Use when: reading a dashboard's views/sections before editing it,
or inspecting one view without the surrounding dashboard.
Not for: passing the view-path result back into
dashboards_save_dashboard_config — that excerpt is not a full
dashboard config and would delete every other view.
Returns: the full dashboard dict (with views) for a dashboard
url_path; {"view": ..., "source": "default_dashboard_view", "path": ...} for a view path in the default dashboard.
Errors: raises RuntimeError when url_path matches neither a
dashboard nor a view in the default dashboard.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url_path | No | Dashboard url_path (e.g. 'map', from dashboards_list_dashboards) or a view path inside the default dashboard (e.g. 'living-room', from /lovelace/living-room). Omit for the full default dashboard. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||