Repository navigation
Feature Reuse
tempus2016 edited this page Nov 2, 2026
·
1 revision
Stop repeating yourself across tabs.
Keys applied to every tab, including tabs made by auto_tabs. A tab's own keys win; styles maps are merged.
type: custom:tabdeck-card
tab_defaults:
accent: "#e91e63"
badge_format: { precision: 0, max: 99 }
hold_action: { action: more-info }
styles: { --tabdeck-tab-font-size: 15px }
tabs:
- name: Lights
badge: { count: light.*, state: "on" }
card: { ... }
- name: Climate
accent: orange # overrides the default
card: { ... }tab_defaults never sets a tab's name or card.
Name a tab blueprint once, then fill it in per tab. Inside a blueprint, {{ item.<var> }} is replaced from the tab's vars (the same placeholders as auto_tabs; anything else in {{ }} is passed to Home Assistant as a normal template):
type: custom:tabdeck-card
tab_templates:
room:
icon: mdi:sofa
badge: { count: "light.{{ item.area }}_*", state: "on" }
card:
type: area
area: "{{ item.area }}"
tabs:
- name: Kitchen
use: room
vars: { area: kitchen }
- name: Lounge
use: room
icon: mdi:television # the tab's own keys win over the template
vars: { area: lounge }- A placeholder that is the whole value keeps its type (
show_camera: "{{ item.camera }}"withcamera: truegivestrue); a missing var becomes an empty string. - Order:
tab_defaults, then the template, then the tab's own keys. - An unknown template name leaves the tab as written.
Both stay in your YAML as written. The editor shows each tab's own keys and keeps use, vars, tab_defaults and tab_templates untouched when you edit other fields. Tabs filled from a template show the template's card only on the dashboard.
Concepts
Features
- All features
- Dynamic tabs
- Remote control & events
- PIN-locked tabs
- Reuse: defaults & templates
- Debug panel
- State-driven icons & names
- Alert pulse
- Auto-rotate & idle return
- Navigation & action tabs
- Scroll-spy
- Collapsible deck
- Responsive layouts
- Style presets
- Tab-change actions
- Tab display mode
- Accent indicator
- Extra bar styles
- Indicator thickness
- Sticky tab bar
- Tab alignment
- Badge display mode
- Per-tab colour
- Tab subtitles
- Disabled tabs
- Multiple cards per tab
- Panel transitions
- Content layout
- Duplicate tab
- Expand/Collapse all
- Edit mode helpers
- Why is this tab hidden?
- Starter templates
- Convert from another card
- Languages
- Dock & floating action tabs
- Dots & content arrows
- Grouped tabs
- Search & shortcuts
- Arrange tabs