Getting Started
Build a first Master Systems Display in the MSD Studio, the card's full-screen editor, without writing any YAML. The MSD is more a small canvas editor than a single card, so this page shows which buttons and panels to use, in order.
- The other pages cover every option and the YAML underneath: Background and Anchors, Control Overlay, Line Overlay, Shape Overlay and Line Routing.
- Putting it together at the end is a complete display to copy.
What you're building
An MSD is four layers on top of each other, all arranged in the MSD Studio.
| Layer | What it is |
|---|---|
| Base SVG | The drawing underneath: a starship blueprint, a deck plan, a floor plan, or nothing at all (an empty view box) |
| Controls | Any Home Assistant or LCARdS card (a button, a slider, a sensor), placed on the drawing |
| Lines | Connections between controls and points on the drawing, routed automatically like circuit traces |
| Shapes | Rooms, zones and conduits drawn on top |
Step 1: Add the card
In a dashboard in edit mode, click Add Card and search for LCARdS MSD.

On the card editor's Configuration tab, click Open Configuration Studio.

The MSD Studio opens full screen: the canvas on one side, the settings on the other, and tabs across the top. The tabs are Base SVG, Anchors, Controls, Lines, Shapes, Routing and YAML; a first display needs only the first four.

Step 2: Choose a background
On the Base SVG tab, pick where the drawing comes from. For a first display, pick a ship from the Asset library.
- Asset library: the ship blueprints built into LCARdS, the easiest start.
- Browse Home Assistant media: an SVG you uploaded to the Home Assistant media library.
- Custom path: a
/local/...path to your own SVG. - None (ViewBox Only): a blank canvas with no drawing.
Free anchors
Built-in ships, and most SVGs, come with anchor points worked out from the drawing's own outline (hull_center, extremity_top and others), so your first lines can attach to the ship before you place a single anchor yourself: see Automatic anchors.

Step 3: Place your first control
On the Controls tab, click Place on Canvas and draw a box for the control on the canvas. When you let go, the Add Control form opens. You can also click Add Control and type the position and size into the form.

In the form, give the control an ID, pick its card on the Card tab, and save.
- The card is any Home Assistant or LCARdS card (a button, a slider, a sensor tile), set up exactly as anywhere else on a dashboard.
- The control then appears on the canvas, on top of the background.

Step 4: Connect the control to the ship with a line
On the Lines tab, draw a line from your control to a point on the ship. There are two ways.
- Add Line opens a form where you pick the start (Anchor) and the end (Attach To) from every control and anchor on the canvas, and which side of each the line leaves and arrives at.
- The Connect Line tool in the toolbar above the canvas: click a connection point of your control (an orange dot), then another control's connection point or an anchor (a blue dot).

The Add Line form opens: give the line an ID or keep the one it suggests, leave the rest as it is, and click Save. The line finds the best route by itself and appears on the canvas.

Labels with leader lines
The Quick label tool adds a label and its leader line in two clicks, in one of the Labelled schematic styles. Click the part on the drawing, then where the label goes.
- Pick a style in the panel that opens: Classic sweep (one broad bend), Picard tight (one small bend, a thicker line), Picard bracket (a bar beside the label, the line leaving the top or bottom end of the bar, straight or Angled into one sharp diagonal) or Picard tag (a filled block).
- The line leaves the side facing the part: the label's text is aligned toward it and the box is sized to the text. Your second click is where the line leaves the label; the box grows away from the part. A Level bracket moves the label so the end of its bar sits at the part's height and the line runs straight.
- Type the text before you place the label.
- Clicks snap: the part click snaps to a nearby anchor, part of the drawing, control connection point or shape corner (a ring shows it) and joins the line to it by name when it has one; the label click snaps in line with your other labels (a dashed guide shows it). Hold Alt to place freely. With Attachment Points on, click any dot (an anchor, or a side or corner of a control or shape) to use that point.
- The panel moves: drag it by its header out of the way. Esc or the X closes the tool, dropping a label you have started.
- Size is a share of the drawing: XS to XL (M is the pattern's usual size) sets the text, line and bend sizes against the drawing's width, so labels keep their size next to the ship on any dashboard. The Studio starts from the size of the labels already on the MSD.
- One style per MSD: the tool keeps your style for every label you add and starts from the style of the labels already there. Change a label afterwards like any other control or line.
- Copy a style you have tuned: the paint roller on a label (Controls tab) or a line (Lines tab) copies its look; the label's copy includes its leader line. Paste it onto one row, the selected lines, or Paste to all labels. Each label keeps its text and place, mirrored to the side it faces. The Quick label panel then offers Copied style for new labels.

Step 5: Save
Click Save in the Studio's footer, then save the card and the dashboard as usual. That is a complete display: a background, a live control, and a line from the control to the ship.
- The Studio works on a copy: Cancel leaves the card as it was. Every change can be undone with Undo in the footer or Ctrl+Z (Cmd+Z on a Mac), and redone with Redo or Ctrl+Shift+Z; Reset goes back to what the Studio opened with, and can be undone too.
- Shapes and Routing are optional. Shapes add rooms, zones and conduits when you want the drawing to feel like a real schematic; Routing holds card-wide settings worth changing only once you notice something you want different (Line Routing explains how lines find their way).

Where to go next
| Page | Covers |
|---|---|
| Background and Anchors | Blueprints, the view box, your own anchors and the ones found in the drawing |
| Control Overlay | Every way to place and size a control |
| Line Overlay | Sides, gaps, colours that follow an entity, markers |
| Line Routing | How lines find their way, bundle together and avoid crossing, and how to guide them |
| Shape Overlay | Rooms, zones and freeform shapes |
| Animations and Rules | Animations and rules on the display |
| MSD Card | Every card option, once you write the YAML yourself |
Putting it together
A complete display to copy: a dimmed blueprint, three controls joined to its markers, a room drawn as a shape, and a rule that turns the warp core line red. Tap the controls, or change the entities under the card.
- The blueprint's filters fade it so the controls stand out (Base SVG Filters);
br,wcandsbare markers in the blueprint itself (Automatic anchors). - The rule recolours the line and blinks it while the toggle helper is on (Rules).
type: custom:lcards-msd-card
grid_options:
columns: full
rows: 6
msd:
# the blueprint, dimmed, and the part of it to show
base_svg:
source: builtin:ncc-1701-a-blue
filters:
- mode: css
type: opacity
value: 0.5
- mode: css
type: brightness
value: 0.8
view_box: [180, 270, 1600, 720]
overlays:
# three controls, each joined to a marker on the ship
- id: bridge-ctl
type: control
attachment: top-left
position: [190, 278]
size: [340, 96]
card:
type: custom:lcards-button
preset: lozenge
entity: input_boolean.lcards_test_lights
text:
name:
content: BRIDGE
show: true
font_size: 30
- id: core-ctl
type: control
attachment: top-left
position: [190, 886]
size: [340, 96]
card:
type: custom:lcards-button
preset: lozenge
entity: input_boolean.lcards_test_toggle
text:
name:
content: WARP CORE
show: true
font_size: 30
- id: shuttle-ctl
type: control
attachment: top-left
position: [1430, 886]
size: [340, 96]
card:
type: custom:lcards-button
preset: filled
entity: input_boolean.lcards_test_doors
text:
name:
content: SHUTTLE BAY
show: true
font_size: 30
- id: bridge-line
type: line
anchor: bridge-ctl
attach_to: br
route: auto
corner_style: round
style:
color: var(--lcards-gray-medium-light)
width: 3
- id: core-line
type: line
anchor: core-ctl
attach_to: wc
route: auto
corner_style: round
style:
color: var(--lcards-gray-medium-light)
width: 3
- id: shuttle-line
type: line
anchor: shuttle-ctl
attach_to: sb
route: auto
corner_style: round
style:
color: var(--lcards-gray-medium-light)
width: 3
# a room drawn over the top right corner
- id: ops-room
type: shape
kind: rect
position: [1430, 290]
size: [340, 160]
corner_style: round
corner_radius: 20
style:
color: var(--lcars-orange)
width: 3
fill: alpha(var(--lcars-orange), 0.12)
rules:
- id: msd-warp-core-alert
when:
entity: input_boolean.lcards_test_toggle
state: "on"
apply:
overlays:
core-line:
style:
color: var(--lcars-alert-red)
animations:
- overlay: core-line
preset: blink
loop: true