You are reading the development docs (2026.12.1-dev.1): features here may not be released yet.
Skip to content

MSD Card ​

custom:lcards-msd-card

A Master Systems Display: a ship blueprint, deck plan or floor plan with live Home Assistant cards placed on it, joined to the drawing by lines that find their own way round it. Shapes add rooms, zones and conduits, and rules and animations bring the whole display to life.

  • The drawing is an SVG: one of the built-in blueprints, your own file, or a blank canvas. Every position on the card is measured in the drawing's own units, so the display scales as one.
  • Overlays sit on the drawing: controls (any card), lines and shapes. A line runs between two named points (anchors), and routes round the controls and the ship by itself.
  • Lines and shapes can follow entities: colours by state, animations, and rules that restyle several overlays at once.

Try it

  • The card editor's Open Configuration Studio opens the MSD Studio: a full-screen editor where you pick the blueprint, draw controls and shapes on the canvas and connect lines with a click.
  • Getting Started builds a first display in the Studio, step by step.
PageCovers
Getting StartedA first display in the MSD Studio, and a complete example to copy
Background and AnchorsThe msd block, the blueprint, the view box, anchors and an animated background
Control OverlayAny card placed on the drawing
Line OverlayLines between anchors and overlays: sides, gaps, colours, markers
Shape OverlayRooms, zones and conduits: rectangles, circles and polylines
Line RoutingHow lines find their way, bundling, crossings, channels and the routing settings
Manual RoutingLines through waypoints you place
Animations and RulesAnimations on the blueprint and on groups of overlays, and rules that restyle overlays
Base SVG FiltersDim, blur or tint the blueprint so the overlays stand out

Quick start ​

A blueprint, two controls in its empty corners, and a line from each control to a point on the ship.

  • br and wc are markers built into this blueprint (its bridge and warp core): see Automatic anchors.
  • attachment: top-left makes position the control's top-left corner. Without it, position is the control's centre.
  • route: auto draws each line around the ship, not through it.
yaml
type: custom:lcards-msd-card
msd:
  base_svg:
    source: builtin:ncc-1701-a-blue
  overlays:
    - id: bridge-ctl
      type: control
      attachment: top-left
      position: [60, 60]
      size: [360, 100]
      card:
        type: custom:lcards-button
        entity: light.bridge
        preset: lozenge
        text:
          label:
            content: BRIDGE
            show: true
            font_size: 30
    - id: core-ctl
      type: control
      attachment: top-left
      position: [60, 1040]
      size: [360, 100]
      card:
        type: custom:lcards-button
        entity: switch.warp_core
        preset: lozenge
        text:
          label:
            content: WARP CORE
            show: true
            font_size: 30
    - id: bridge-line
      type: line
      anchor: bridge-ctl
      attach_to: br
      route: auto
    - id: core-line
      type: line
      anchor: core-ctl
      attach_to: wc
      route: auto

Overlay types ​

Everything on the drawing is one of three overlay types, listed under msd.overlays. Each has an id (required, and what lines and rules use to find it) and a type.

  • Overlays paint in z_index order, higher in front. Unset, controls paint over lines and lines over shapes.
  • A button, chart or slider on the drawing is a normal card inside a control overlay; the MSD has no widgets of its own.
TypeDrawsPlaced withz_index defaultPage
controlAny Home Assistant or LCARdS cardposition, size, attachment200Control Overlay
lineA line from one anchor or overlay to anotheranchor, attach_to, route100Line Overlay
shapeA rectangle, circle or polylinekind, then position and size, or points50Shape Overlay

Card options ​

The card's own top-level keys: the msd block holds the display, the rest are the keys every LCARdS card takes. Each links to its page.

  • Rules restyle overlays through their ids and the card's id and tags: see Rules.
  • In a sections view the card takes the full width and 8 rows unless grid_options says otherwise, and can't be made smaller than 2 by 4.
yaml
type: custom:lcards-msd-card
id: bridge-display
tags:
  - ship-displays
grid_options:
  columns: full
  rows: 5
msd:
  base_svg:
    source: builtin:ncc-1701-a-blue
  view_box: [180, 270, 1600, 720]
KeyTypeDefaultDescription
typestringrequiredcustom:lcards-msd-card
msdobjectrequiredThe display: blueprint, view box, anchors, overlays, routing, animations. See msd
idstring-This card's name for rules and logs: see id and tags
tagslist-Group names for rules: see id and tags
ruleslist-Rules that restyle overlays and play animations: see Rules and the Rules Engine
data_sourcesobject-Named entity subscriptions with history and processing: see Data Sources
heightnumber / stringthe cell's heightCard height: see Sizing
widthnumber / stringthe cell's widthCard width: see Sizing
min_heightnumber / string-Smallest height: see Minimum and maximum size
min_widthnumber / string-Smallest width: see Minimum and maximum size
max_heightnumber / string-Largest height: see Minimum and maximum size
max_widthnumber / string-Largest width: see Minimum and maximum size
overflowstring-What happens to content outside the card: see overflow
overflow_xstring-Left to right only, over overflow
overflow_ystring-Top to bottom only, over overflow
z_indexinteger-The card's stacking order on the dashboard: see z_index
grid_optionsobjectfull width, 8 rowsHome Assistant's cell size in a sections view: see grid_options

Released under the MIT License. | About