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.typepicks the shape andelbow.segmentsizes 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.
| Page | Covers |
|---|---|
| Bars and Curves | Simple and segmented styles, bar sizes, corner curves, diagonal cuts, HA-LCARS sizes |
| Frames | type: frame: a border of two to four sides, single or double |
| Colour, Text and Effects | Fill colours, text on the bars, shape textures, background animations |
| Symbiont | Another card inside the elbow, styled to match it |
| Playground | Edit 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
zonegoes in the open area;zone: horizontal_barputs 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
stylesays. - An unknown type draws
header-left.
type: header-leftYAML
type: custom:lcards-elbow
elbow:
type: header-left
segment:
bar_width: 90
bar_height: 20
type: header-rightYAML
type: custom:lcards-elbow
elbow:
type: header-right
segment:
bar_width: 90
bar_height: 20
type: footer-leftYAML
type: custom:lcards-elbow
elbow:
type: footer-left
segment:
bar_width: 90
bar_height: 20
type: footer-rightYAML
type: custom:lcards-elbow
elbow:
type: footer-right
segment:
bar_width: 90
bar_height: 20
type: header-containedYAML
type: custom:lcards-elbow
elbow:
type: header-contained
segment:
bar_width: 90
bar_height: 20
type: footer-containedYAML
type: custom:lcards-elbow
elbow:
type: footer-contained
segment:
bar_width: 90
bar_height: 20
type: header-openYAML
type: custom:lcards-elbow
elbow:
type: header-open
segment:
bar_width: 90
bar_height: 20
type: footer-openYAML
type: custom:lcards-elbow
elbow:
type: footer-open
segment:
bar_width: 90
bar_height: 20
type: diagonal-cap-leftYAML
type: custom:lcards-elbow
elbow:
type: diagonal-cap-left
segment:
bar_width: 90
bar_height: 20
type: diagonal-cap-rightYAML
type: custom:lcards-elbow
elbow:
type: diagonal-cap-right
segment:
bar_width: 90
bar_height: 20
type: diagonal-cap-footer-leftYAML
type: custom:lcards-elbow
elbow:
type: diagonal-cap-footer-left
segment:
bar_width: 90
bar_height: 20
type: diagonal-cap-footer-rightYAML
type: custom:lcards-elbow
elbow:
type: diagonal-cap-footer-right
segment:
bar_width: 90
bar_height: 20
type: bar-slant-rightYAML
type: custom:lcards-elbow
elbow:
type: bar-slant-right
segment:
bar_width: 90
bar_height: 20
type: bar-slant-leftYAML
type: custom:lcards-elbow
elbow:
type: bar-slant-left
segment:
bar_width: 90
bar_height: 20
type: bar-parallelogramYAML
type: custom:lcards-elbow
elbow:
type: bar-parallelogram
segment:
bar_width: 90
bar_height: 20
type: frameYAML
type: custom:lcards-elbow
elbow:
type: frame
frame:
bar_width: 30
bar_height: 14
Real cards with sample entities.
| Type | Shape | Styles |
|---|---|---|
header-left | Top-left corner: vertical bar on the left, horizontal bar on top | simple, segmented |
header-right | Top-right corner: vertical bar on the right, horizontal bar on top | simple, segmented |
footer-left | Bottom-left corner: vertical bar on the left, horizontal bar at the bottom | simple, segmented |
footer-right | Bottom-right corner: vertical bar on the right, horizontal bar at the bottom | simple, segmented |
header-contained | Horizontal bar on top with mirrored elbows at both ends | simple |
footer-contained | Horizontal bar at the bottom with mirrored elbows at both ends | simple |
header-open | A plain horizontal bar at the top, no vertical arms | simple |
footer-open | A plain horizontal bar at the bottom, no vertical arms | simple |
diagonal-cap-left | Top-left corner with both corners cut straight instead of curved (diagonal cuts) | simple, segmented |
diagonal-cap-right | Top-right corner, cut | simple, segmented |
diagonal-cap-footer-left | Bottom-left corner, cut | simple, segmented |
diagonal-cap-footer-right | Bottom-right corner, cut | simple, segmented |
bar-slant-right | The whole card is one bar with a slanted right end (diagonal cuts) | simple |
bar-slant-left | The same, slanted on the left | simple |
bar-parallelogram | Both ends slanted the same way | simple |
frame | A 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| Key | Type | Default | Description |
|---|---|---|---|
elbow | object | a header-left elbow | The shape. Without it the card draws a header-left elbow with a 120 px side bar and a 20 px top bar |
elbow.type | string | header-left | The shape: see Elbow types |
elbow.style | string | simple | simple (one elbow) or segmented (two with a gap): see Elbow styles |
elbow.segment | object | - | Bar sizes, curves and colour of a simple elbow: see elbow.segment. Its color also paints a frame |
elbow.segments | object | - | The two elbows of the segmented style: see elbow.segments |
elbow.frame | object | - | Sides and corners of type: frame: see Frames |
entity | string | - | The entity whose state picks the fill colour and the actions act on |
text | object | - | Text on the bars or in the open area: see Text labels |
tap_action | object | none | What a tap does; hold_action and double_tap_action too. See Actions |
interactive | boolean | true with an action or a switchable entity, else false | false turns off the hover and pressed colours; actions still run. See interactive |
style.cursor | string | pointer, or arrow when not interactive | The mouse cursor over the elbow. See style.cursor |
shape_texture | object | - | A texture inside the elbow's fill: see Shape texture |
background_animation | list / object | - | An animated background in the open area: see Background animation inset |
filters | list | - | CSS and SVG filters on the whole elbow: see Filters |
symbiont | object | - | Another card inside the elbow: see Symbiont |
ranges_attribute | string | - | The attribute that range colours compare, for entities whose state is not a number |
state_attribute | string | - | The attribute whose value picks exact-match colours |
state_classification | object | - | Your own mapping of states to active, inactive and more: see Custom state classification |