Repository navigation
Feature YAML Schema
tempus2016 edited this page Nov 21, 2026
·
1 revision
Tabdeck publishes a JSON schema of every option, so a code editor can suggest option names, show what each one does and underline typos as you write a deck in YAML.
Schema URL: https://tempus2016.github.io/tabdeck-card/schema/tabdeck-card.schema.json
It works in VS Code with the YAML extension (by Red Hat), and in the Studio Code Server add-on, which is VS Code in Home Assistant.
If your dashboard is in YAML mode and you keep a deck in its own file (pulled in with !include), put this line at the top of that file:
# yaml-language-server: $schema=https://tempus2016.github.io/tabdeck-card/schema/tabdeck-card.schema.json
type: custom:tabdeck-card
tabs:
- name: Lights
separator: line # suggested, with its description
card: { ... }To use the schema for every file in a folder without adding the line to each, map it in VS Code's settings (settings.json):
{
"yaml.schemas": {
"https://tempus2016.github.io/tabdeck-card/schema/tabdeck-card.schema.json": "dashboards/tabdeck/*.yaml"
}
}- The schema describes one Tabdeck card. A whole dashboard file has views and other cards in it, so the schema can't be applied to it as a whole.
- Unknown keys are flagged, which catches typos such as
sparator:. Options that also accept a template (tabname,icon,badgeand others) accept any text. - The cards inside tabs are only checked for having a
type. The schema doesn't know other cards' options. - The visual editor in Home Assistant doesn't use the schema. It has its own fields.
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