Repository navigation
Feature Tab Look
Small per-tab touches.
tabs:
- name: Alex
picture: person.alex # the person's photo (entity_picture)
card: { ... }
- name: Garden
picture: /local/garden.jpg # or any image URL
card: { ... }
- An entity id uses that entity's
entity_picture(people, media players, some cameras); a path or URL is used as is. Templates work too. - The picture is shown round, where the icon would be, and works with a progress ring.
- If the entity has no picture, the tab's
iconis shown instead.
With picture_accent: true (top level), each tab with a picture takes its accent colour from it: a garden photo gives a green tab, a sunset an orange one. The accent colours the open tab's label and the indicator, as a tab's own accent does.
type: custom:tabdeck-card
picture_accent: true
tabs:
- name: Garden
picture: /local/garden.jpg
card: { ... }
- name: Alex
picture: person.alex
card: { ... }
- The colour is the picture's main colourful hue (greys, black and white are skipped), not a muddy average. Each picture is read once, small, in the background, and remembered while the page is open; until then the tab uses the theme accent.
- A tab's own
accentwins. - Pictures from another site can only be read if that site allows it (CORS). If not, the tab keeps the theme accent. Pictures served by Home Assistant (
/local/…, people's photos) always work. - A very pale or very dark picture can give an accent that's hard to read on your theme. Set that tab's
accentyourself. - In the visual editor: Accent colour from each tab's picture.
spin, pulse, bounce, shake or beat. Make it a template to animate only sometimes. A fan that spins while it's on:
- name: Fan
icon: mdi:fan
icon_animation: "{{ 'spin' if is_state('fan.bedroom', 'on') else '' }}"
Animations stop under Reduce motion.
- name: Alarm
font_weight: 700
font_size: 16 # numbers are px
font_family: "Georgia, serif"
For every tab at once, use --tabdeck-tab-font-* in styles or tab_defaults. density changes the overall size of the bar.
type: custom:tabdeck-card
haptic: light # selection | light | medium | heavy | success | warning | failure (true = selection)
The Home Assistant companion app vibrates when the person switches tabs (taps, swipes, arrows, shortcuts). Automatic switches such as rotation, idle return and remote control don't vibrate. Browsers without the app ignore it.
Concepts
Features
- All features
- Dynamic tabs
- Remote control & events
- PIN-locked tabs
- Reuse: defaults & templates
- Debug panel
- Developer access
- Pictures, animations & fonts
- 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
- One-line tab content
- Panel transitions
- Content layout
- Duplicate tab
- Expand/Collapse all
- Edit mode helpers
- Why is this tab hidden?
- Starter templates
- Convert from another card
- Languages
- YAML autocomplete
- Dock & floating action tabs
- Dots & content arrows
- Grouped tabs
- Overview grid
- Linked decks
- Tab as popup
- Wizard mode
- Search & shortcuts
- Gestures
- Arrange tabs