Repository navigation
Feature Hide Inactive Badge
tempus2016 edited this page Jun 24, 2026
·
1 revision
Only show a badge when it actually has something to report. With hide_inactive_badge, badges that resolve to an empty/zero/off value are hidden — so a count badge appears only when it's greater than zero.
Config key: hide_inactive_badge (top-level boolean) · Default: false
type: custom:tabdeck-card
hide_inactive_badge: true
tabs:
- name: Inbox
icon: mdi:email
badge: sensor.unread # shows "5"
card: { ... }
- name: Done
icon: mdi:check
badge: sensor.done_count # "0" -> badge hidden
card: { ... }
- A badge is hidden when its resolved value is one of (case-insensitive):
"",0,off,false,no,none,unavailable,unknown,closed. - Applies in text badge mode. (The
dotmode already only shows for active values.) - Toggle it with the Hide inactive badges switch in the visual editor.
Concepts
Features
- All features
- Dynamic tabs
- 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
- Duplicate tab
- Expand/Collapse all