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

Elbow Card ​

custom:lcards-elbow

The L-shaped corner bars, caps and frames that give an LCARS screen its shape. Put one at each corner of a section, run a bar across the top, or draw a frame round a whole area.

  • elbow.type picks the shape and elbow.segment sizes its bars; every other key is optional.
  • The elbow is a button underneath, so it takes the same text labels, actions, rules, animations, sounds and templates.
  • The open area inside the bars can hold another card, styled to match: see Symbiont.

Try it

  • The card editor's tabs cover the options on these pages, with a live preview.
  • The Playground lets you edit elbow YAML here in the docs and see the result.
PageCovers
Bars and CurvesSimple and segmented styles, bar sizes, corner curves, diagonal cuts, HA-LCARS sizes
Framestype: frame: a border of two to four sides, single or double
Colour, Text and EffectsFill colours, text on the bars, shape textures, background animations
SymbiontAnother card inside the elbow, styled to match it
PlaygroundEdit YAML and see the elbow live

Quick start ​

A header corner with a label on its top bar. Change type to footer-left for the matching corner at the bottom of a section.

  • Text without a zone goes in the open area; zone: horizontal_bar puts it on the bar (see Text labels).
yaml
type: custom:lcards-elbow
elbow:
  type: header-left
  segment:
    bar_width: 90
    bar_height: 20
    color: var(--lcars-orange)
text:
  title:
    content: ENGINEERING
    zone: horizontal_bar
    position: right
    color: var(--lcars-black)

Elbow types ​

elbow.type picks the shape: a corner, a bar with elbows at both ends, a plain bar, a cut corner, a slanted bar or a frame. Every type is shown here with the same bar sizes.

  • The four corners, the four diagonal caps and the frame also come in the segmented style; the other types draw the simple style whatever style says.
  • An unknown type draws header-left.
TypeShapeStyles
header-leftTop-left corner: vertical bar on the left, horizontal bar on topsimple, segmented
header-rightTop-right corner: vertical bar on the right, horizontal bar on topsimple, segmented
footer-leftBottom-left corner: vertical bar on the left, horizontal bar at the bottomsimple, segmented
footer-rightBottom-right corner: vertical bar on the right, horizontal bar at the bottomsimple, segmented
header-containedHorizontal bar on top with mirrored elbows at both endssimple
footer-containedHorizontal bar at the bottom with mirrored elbows at both endssimple
header-openA plain horizontal bar at the top, no vertical armssimple
footer-openA plain horizontal bar at the bottom, no vertical armssimple
diagonal-cap-leftTop-left corner with both corners cut straight instead of curved (diagonal cuts)simple, segmented
diagonal-cap-rightTop-right corner, cutsimple, segmented
diagonal-cap-footer-leftBottom-left corner, cutsimple, segmented
diagonal-cap-footer-rightBottom-right corner, cutsimple, segmented
bar-slant-rightThe whole card is one bar with a slanted right end (diagonal cuts)simple
bar-slant-leftThe same, slanted on the leftsimple
bar-parallelogramBoth ends slanted the same waysimple
frameA rectangular border of two to four sides, with its own thickness per side and curves per corner (Frames)simple, segmented

Card options ​

The elbow's own top-level keys. The shape keys live under elbow; the blocks after it have their own pages.

  • The elbow also takes the keys every LCARdS card takes (height, grid_options, id, tags, animations, sounds, data_sources ...): see Common card properties. In a sections view it asks for 4 columns and 2 rows.
yaml
type: custom:lcards-elbow
entity: light.kitchen
elbow:
  type: footer-left
  style: segmented
  segments:
    outer_segment:
      bar_width: 80
      bar_height: 16
      color: var(--lcars-orange)
    inner_segment:
      bar_width: 24
      bar_height: 8
      color: var(--lcars-african-violet)
tap_action:
  action: toggle
KeyTypeDefaultDescription
elbowobjecta header-left elbowThe shape. Without it the card draws a header-left elbow with a 120 px side bar and a 20 px top bar
elbow.typestringheader-leftThe shape: see Elbow types
elbow.stylestringsimplesimple (one elbow) or segmented (two with a gap): see Elbow styles
elbow.segmentobject-Bar sizes, curves and colour of a simple elbow: see elbow.segment. Its color also paints a frame
elbow.segmentsobject-The two elbows of the segmented style: see elbow.segments
elbow.frameobject-Sides and corners of type: frame: see Frames
entitystring-The entity whose state picks the fill colour and the actions act on
textobject-Text on the bars or in the open area: see Text labels
tap_actionobjectnoneWhat a tap does; hold_action and double_tap_action too. See Actions
interactivebooleantrue with an action or a switchable entity, else falsefalse turns off the hover and pressed colours; actions still run. See interactive
style.cursorstringpointer, or arrow when not interactiveThe mouse cursor over the elbow. See style.cursor
shape_textureobject-A texture inside the elbow's fill: see Shape texture
background_animationlist / object-An animated background in the open area: see Background animation inset
filterslist-CSS and SVG filters on the whole elbow: see Filters
symbiontobject-Another card inside the elbow: see Symbiont
ranges_attributestring-The attribute that range colours compare, for entities whose state is not a number
state_attributestring-The attribute whose value picks exact-match colours
state_classificationobject-Your own mapping of states to active, inactive and more: see Custom state classification

Released under the MIT License. | About