Skip to content

Configuration

Complete reference for all configuration options available in the Status Banner Card.

Basic Properties

PropertyTypeRequiredDefaultDescription
typestringYes-Must be custom:lovelace-multi-state-entities-card
entitystringYes-Primary entity to display state from
rulesarrayNo[]Array of state matching rules
defaultobjectNo{}Default values when no rule matches

Rules Configuration

Rules are evaluated in order - the first matching rule wins. Each rule can configure:

PropertyTypeDescription
statestringState value to match (exact or regex with /pattern/)
attributeobjectAttribute condition: {name: "attr_name", value: "value"}
titlestringTitle template string
subtitlestringSubtitle template string
iconstringMDI icon or template
colorstringHex color or template with color_map
status_textstringStatus text template for status box
title_font_sizestringTitle font size (e.g., 1.5rem, 24px)
subtitle_font_sizestringSubtitle font size (e.g., 1.125rem, 18px)

State Matching

Exact Match:

yaml
rules:
  - state: "on"
    title: "ACTIVE"

Regex Match:

yaml
rules:
  - state: "/[0-9][0-9]%/"
    title: "PERCENTAGE"

Attribute Match:

yaml
rules:
  - attribute:
      name: "status"
      value: "running"
    title: "RUNNING"

Layout & Positioning

PropertyTypeDefaultOptionsDescription
title_alignmentstringrightleft, center, rightTitle alignment
subtitle_alignmentstringinheritsleft, center, rightSubtitle alignment
icon_alignmentstringrightleft, center, rightIcon alignment
timestamp_positionstringbottom-leftcornersTimestamp position
button_positionstringbottom-rightcornersButton position

Dimensions

PropertyTypeDefaultDescription
header_heightstring100pxHeader section height
icon_sizestring48pxMain icon size
border_radiusstring12pxCard border radius
footer_heightstring50pxFooter height

Accent Design

PropertyTypeDefaultDescription
show_accentbooleantrueShow diagonal color accent
show_patternbooleanfalseShow diagonal stripe pattern
accent_cornerstringbottom-leftAccent anchor corner
accent_widthnumber60Accent width percentage
accent_heightnumber100Accent height percentage
accent_full_backgroundbooleanfalseFill entire card with accent
pattern_sizenumber20Pattern stripe size in pixels

Colors

PropertyTypeDescription
colorstringAccent color (hex or template)
title_colorstringOverride title text color
subtitle_colorstringOverride subtitle text color
timestamp_colorstringOverride timestamp text color
icon_colorstringOverride icon color
secondary_colorstringSecondary color for patterns
background_colorstringCard background color

Color Mapping

Define reusable color palettes:

yaml
color_map:
  on: "#4CAF50"
  off: "#9E9E9E"
  running: "#2196F3"
  error: "#F44336"
  default: "#607D8B"

rules:
  - state: "/.*/"
    color: "{{ state | color_map }}"
    title: "DYNAMIC COLOR"

Visibility

PropertyTypeDefaultDescription
show_statusbooleantrueShow status box below header
show_footerbooleantrueShow footer with timestamp/button
show_accentbooleantrueShow diagonal color accent
show_patternbooleanfalseShow diagonal stripe pattern

Status Box

PropertyTypeDefaultDescription
status_labelstringStatusCustom label for status box
status_entitystring-Entity to display in status box
status_entity_attributestring-Attribute from status_entity
status_opacitynumber90Background opacity (0-100)

Actions

Card Actions

PropertyTypeDescription
tap_actionobjectTap action for entire card
hold_actionobjectHold action for entire card

Button Actions

yaml
button_actions:
  - selector: ".button-primary"
    label: "CONFIRM"
    icon: "mdi:check"
    color: "#4CAF50"
    type: "service"
    service: "script.confirm_action"
    tap_action:
      action: call-service
      service: script.confirm_action
      data: {}

Additional Entities

PropertyTypeDescription
timestamp_entitystringEntity for "last updated" display
timestamp_attributestringAttribute for timestamp (default: last_triggered)
secondary_info_entitystringEntity for secondary info

Complete Example

yaml
type: custom:lovelace-multi-state-entities-card
entity: sensor.washing_machine
header_height: 120px
icon_size: 56px
title_alignment: left
icon_alignment: left
show_status: true
status_label: "Status"
color_map:
  running: "#2196F3"
  finished: "#4CAF50"
  error: "#F44336"

rules:
  - state: "running"
    title: "WASHING IN PROGRESS"
    subtitle: "{{ attr.cycle }} ({{ attr.time_remaining }} remaining)"
    icon: mdi:washing-machine
    color: "{{ state | color_map }}"
    status_text: "Started {{ attr.start_time }}"

  - state: "finished"
    title: "CYCLE COMPLETE"
    subtitle: "Ready to empty"
    icon: mdi:washing-machine
    color: "{{ state | color_map }}"

  - state: "error"
    title: "WASHER ERROR"
    subtitle: "Check machine"
    icon: mdi:washing-machine-alert
    color: "{{ state | color_map }}"

  - state: "/.*/"
    title: "WASHER IDLE"
    color: "#9E9E9E"
    icon: mdi:washing-machine-off

tap_action:
  action: more-info
  entity: sensor.washing_machine

See Rules & Matching for advanced patterns.

Released under the MIT License.