update_card
Replace a card in a Home Assistant dashboard view with a new card configuration. Specify the dashboard, view, card index, and new card type to update live, with an optional dry-run preview before saving.
Instructions
Replace a card in a dashboard view (live)
Args:
url_path: Dashboard URL path, or None for the default dashboard.
view: Target view (index, or matching path/title).
card_index: Index of the card to replace within the target card list.
card: The new card config dict (must include a string type).
section: For a "sections"-type view, which section the card is in
(index/title/heading). Required for sections views.
dry_run: Preview without saving.
Returns:
Save result with a backup_id, or a dry-run preview.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| card | No | ||
| view | No | ||
| dry_run | No | ||
| section | No | ||
| url_path | No | ||
| card_index | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |