Skip to content

Dynamic configuration

Most cards can start with normal YAML. Use dynamic configuration when several settings should share one value, positions should be calculated, or the card should respond to changing entity states.

Choose the simplest option

You want to Use
Reuse a fixed value or configuration block constants and ref()
Calculate a position, size, or spacing value calc()
Change a value when an entity changes JavaScript templates
Reuse a complete tool definition same_as
Reuse a complete card design Card templates

Start with normal YAML and add only the feature needed for the result.