Add view to dashboard
dashboards_add_view_to_dashboardAdd a new tab/view to a Home Assistant dashboard by appending view config and saving the full dashboard, leaving existing views and cards unchanged.
Instructions
Append a new view to a dashboard and save the whole dashboard.
Reads the dashboard via dashboards_get_dashboard_config, appends
view_config to its views list, and writes the whole dashboard back
with dashboards_save_dashboard_config — every existing view and card
is round-tripped unchanged.
Use when: adding a whole new tab/view to a dashboard.
Not for: adding a card to an existing view — use
dashboards_add_card_to_view or dashboards_add_card_to_section.
Returns: {"status": "saved", "url_path": ...} from the underlying
save.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url_path | Yes | Dashboard url_path to add the view to, from dashboards_list_dashboards. | |
| view_config | Yes | Lovelace view config, e.g. {'title': 'Bedroom', 'icon': 'mdi:bed', 'cards': []}. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||