Preview a card template config
card_builder_get_card_templateResolve a built-in template into a full DocumentData config without saving, so you can inspect or edit the card setup before creating it.
Instructions
Resolve one built-in template into a full DocumentData config, without saving anything.
Calls the template's recipe function and, if it returned a recipe
shorthand rather than a full DocumentData, runs it through
card_builder_build_from_recipe. Makes no call to Home Assistant.
Use when: inspecting or hand-editing a template's config before
calling card_builder_create_card yourself.
Not for: saving the card directly — use
card_builder_make_template_card to skip this step.
Returns: the full DocumentData config dict for the template.
Errors: {"error": "unknown_template", "name": ..., "known": [...]}
when name isn't a known template.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Template name, e.g. 'sensor_hero', from card_builder_list_card_templates. | |
| slot | No | Override the template's default entity-slot name, e.g. 'main' instead of 'entity'. Omit to use the template's default. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||