Build renderer card config
card_builder_renderer_card_configBuilds the Lovelace card config dict for a Card Builder card, with optional slot entities and actions. Use this config to embed an existing card on a dashboard.
Instructions
Build the Lovelace card config dict that renders a Card Builder card.
Pure computation — assembles
{"type": "custom:card-builder-renderer-card", "card_id": ...} plus
the optional slot_entities/slot_actions keys; makes no call to
Home Assistant.
Use when: embedding an existing Card Builder card on a dashboard.
Not for: adding the resulting config to a dashboard — pass it as
card_config to dashboards_add_card_to_section (sections views) or
dashboards_add_card_to_view (masonry/panel views).
Returns: {"type": "custom:card-builder-renderer-card", "card_id": ..., "slot_entities": {...}, "slot_actions": {...}} — the latter two
keys are omitted when not provided.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| card_id | Yes | Id of the Card Builder card to render, from card_builder_list_cards. | |
| slot_actions | No | Per-instance overrides for the card's action slots. Omit to use the card's own defaults. | |
| slot_entities | No | Maps each slot id defined in the card to a HA entity_id, e.g. {'climate': 'climate.salon'}. Omit for no slot bindings. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||