# Bridge: the "display over controls" archetype from doc/getting-started/lcars-design.md, in
# the classic TNG look. A thick sweep across the top carries labelled segments and the title.
# The main display charts power and shields over 24 hours inside a thin nested sweep, beside a
# ship status table (every number a labelled live reading) and the warp factor. The display's
# sidebar sweeps into a closing bar, and the next bar sweeps down into the control deck: pill
# groups led by big live numbers (their pills set power, shields, level, temperature and
# humidity, or toggle lights, doors and the auxiliary helper), a power slider, a shield gauge,
# main lights, a mode selector and red alert.
# Every colour is a theme role; the view uses the LCARS TNG theme.
# Uses lcards_test_* helpers and sensor.desk_sensor_temperature.
title: Bridge
views:
  - title: Bridge
    path: bridge
    theme: LCARS TNG
    type: custom:lcards-layout-view
    layout:
      height: calc(100dvh - var(--header-height, 56px))
      padding: 12px
      grid-gap: 6px
      grid-template-columns: 168px 48px minmax(0, 1fr) 300px
      grid-template-rows: 40px 84px minmax(0, 1fr) 40px 20px 20px 40px 262px
    cards:
      - type: custom:lcards-elbow
        view_layout:
          grid-column: 1 / 3
          grid-row: 1 / 3
        elbow:
          type: header-left
          segment:
            bar_width: 168
            bar_height: 40
            color: theme:colors.ui.primary
        text:
          code:
            content: 01-4271
            zone: vertical_bar
            position: bottom-right
            font_size: 14
            color: var(--lcars-text-dark, var(--lcards-gray-darkest))
      - type: custom:lcards-layout-card
        layout:
          grid-gap: 6px
          grid-template-columns: 260px 96px minmax(0, 1fr) 180px
          grid-template-rows: minmax(0, 1fr)
        cards:
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            text:
              label:
                content: MAIN BRIDGE
                position: bottom-right
                font_size: 14
                color: var(--lcars-text-dark, var(--lcards-gray-darkest))
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.secondary
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            text:
              label:
                content: '47'
                position: bottom-right
                font_size: 14
                color: var(--lcars-text-dark, var(--lcards-gray-darkest))
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.tertiary
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            text:
              label:
                content: OPERATIONS MANAGER
                position: bottom-right
                font_size: 14
                color: var(--lcars-text-dark, var(--lcards-gray-darkest))
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.primary
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            text:
              label:
                content: 02-654598
                position: bottom-right
                font_size: 14
                color: var(--lcars-text-dark, var(--lcards-gray-darkest))
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.quaternary
        view_layout:
          grid-column: 3 / 5
          grid-row: '1'
      - type: custom:lcards-button
        preset: text-only
        min_height: 0
        text:
          label:
            content: BRIDGE OPERATIONS • 1701
            show: true
            position: top-right
            font_size: 64
            color: theme:colors.ui.tertiary
        view_layout:
          grid-column: 3 / 5
          grid-row: '2'
      - type: custom:lcards-layout-card
        layout:
          grid-gap: 6px
          grid-template-columns: minmax(0, 1fr)
          grid-template-rows: minmax(0, 1fr) 30px 96px 30px 64px 30px 30px
        cards:
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            text:
              label:
                content: 04-765466
                position: bottom-right
                font_size: 14
                color: var(--lcars-text-dark, var(--lcards-gray-darkest))
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.quaternary
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            text:
              label:
                content: 05-1138
                position: bottom-right
                font_size: 14
                color: var(--lcars-text-dark, var(--lcards-gray-darkest))
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.secondary
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            text:
              label:
                content: 05-2207
                position: bottom-right
                font_size: 14
                color: var(--lcars-text-dark, var(--lcards-gray-darkest))
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.primary
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            entity: input_boolean.lcards_test_lights
            tap_action:
              action: toggle
            text:
              label:
                content: LIGHTS
                position: bottom-right
                font_size: 14
                color: var(--lcars-text-dark, var(--lcards-gray-darkest))
            style:
              card:
                color:
                  background:
                    active: theme:colors.ui.tertiary
                    inactive: theme:colors.card.topColor
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            text:
              label:
                content: 06-2243
                position: bottom-right
                font_size: 14
                color: var(--lcars-text-dark, var(--lcards-gray-darkest))
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.primary
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            entity: input_boolean.lcards_test_doors
            tap_action:
              action: toggle
            text:
              label:
                content: DOORS
                position: bottom-right
                font_size: 14
                color: var(--lcars-text-dark, var(--lcards-gray-darkest))
            style:
              card:
                color:
                  background:
                    active: theme:colors.ui.tertiary
                    inactive: theme:colors.card.topColor
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            text:
              label:
                content: 07-5765
                position: bottom-right
                font_size: 14
                color: var(--lcars-text-dark, var(--lcards-gray-darkest))
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.secondary
        view_layout:
          grid-column: '1'
          grid-row: '3'
      - type: custom:lcards-elbow
        view_layout:
          grid-column: '3'
          grid-row: '3'
        elbow:
          type: header-left
          segment:
            bar_width: 20
            bar_height: 10
            color: theme:colors.ui.quaternary
      - type: custom:lcards-chart
        chart_type: line
        graph_span: 24h
        sources:
          - entity: input_number.lcards_test_power
            name: POWER
            stroke_width: 2
            curve: stepline
            group_by:
              func: avg
              duration: 1h
          - entity: input_number.lcards_test_shields
            name: SHIELDS
            stroke_width: 2
            curve: stepline
            group_by:
              func: avg
              duration: 1h
        style:
          colors:
            series:
              - theme:colors.ui.secondary
              - theme:colors.ui.tertiary
            grid: theme:colors.ui.quaternary
            axis:
              x: theme:colors.ui.primary
              'y': theme:colors.ui.primary
              border: theme:colors.ui.quaternary
              ticks: theme:colors.ui.quaternary
          legend:
            show: false
        view_layout:
          grid-column: '3'
          grid-row: '3'
          margin: 20px 0 0 34px
      - type: custom:lcards-layout-card
        layout:
          grid-gap: 6px
          grid-template-columns: minmax(0, 1fr)
          grid-template-rows: 30px 222px minmax(0, 1fr) 30px
        cards:
          - type: custom:lcards-button
            preset: text-only
            min_height: 0
            text:
              label:
                content: SHIP STATUS
                show: true
                position: bottom-left
                font_size: 16
                color: theme:colors.ui.secondary
          - type: custom:lcards-data-grid
            data_mode: data
            rows:
              - values:
                  - value: '01'
                    style:
                      color: theme:colors.ui.quaternary
                  - WARP CORE
                  - input_number.lcards_test_power
                  - '{{ ''ONLINE'' if states(''input_number.lcards_test_power'') | float(0) > 0 else ''OFFLINE'' }}'
                style:
                  color: theme:colors.ui.secondary
              - values:
                  - value: '02'
                    style:
                      color: theme:colors.ui.quaternary
                  - SHIELDS
                  - input_number.lcards_test_shields
                  - '{{ ''RAISED'' if states(''input_number.lcards_test_shields'') | float(0) > 50 else ''LOW'' }}'
                style:
                  color: theme:colors.ui.secondary
              - values:
                  - value: '03'
                    style:
                      color: theme:colors.ui.quaternary
                  - LEVEL
                  - input_number.lcards_test_value
                  - '{{ ''LOW'' if states(''input_number.lcards_test_value'') | float(0) < 20 else (''HIGH'' if states(''input_number.lcards_test_value'') | float(0) > 90 else ''NOMINAL'') }}'
                style:
                  color: theme:colors.ui.secondary
              - values:
                  - value: '04'
                    style:
                      color: theme:colors.ui.quaternary
                  - DECK 4
                  - sensor.desk_sensor_temperature
                  - '{{ ''LOW'' if states(''sensor.desk_sensor_temperature'') | float(0) < 18 else (''HIGH'' if states(''sensor.desk_sensor_temperature'') | float(0) > 26 else ''NOMINAL'') }}'
                style:
                  color: theme:colors.ui.primary
              - values:
                  - value: '05'
                    style:
                      color: theme:colors.ui.quaternary
                  - SET POINT
                  - input_number.lcards_test_temperature
                  - SET
                style:
                  color: theme:colors.ui.primary
              - values:
                  - value: '06'
                    style:
                      color: theme:colors.ui.quaternary
                  - HUMIDITY
                  - input_number.lcards_test_humidity
                  - '{{ ''LOW'' if states(''input_number.lcards_test_humidity'') | float(0) < 30 else (''HIGH'' if states(''input_number.lcards_test_humidity'') | float(0) > 60 else ''NOMINAL'') }}'
                style:
                  color: theme:colors.ui.primary
              - values:
                  - value: '07'
                    style:
                      color: theme:colors.ui.quaternary
                  - LIGHTS
                  - input_boolean.lcards_test_lights
                  - '{{ ''ACTIVE'' if is_state(''input_boolean.lcards_test_lights'', ''on'') else ''STANDBY'' }}'
                style:
                  color: theme:colors.ui.tertiary
              - values:
                  - value: '08'
                    style:
                      color: theme:colors.ui.quaternary
                  - DOORS
                  - input_boolean.lcards_test_doors
                  - '{{ ''OPEN'' if is_state(''input_boolean.lcards_test_doors'', ''on'') else ''SECURE'' }}'
                style:
                  color: theme:colors.ui.tertiary
              - values:
                  - value: '09'
                    style:
                      color: theme:colors.ui.quaternary
                  - ALERT
                  - input_boolean.lcards_test_toggle
                  - '{{ ''RED ALERT'' if is_state(''input_boolean.lcards_test_toggle'', ''on'') else ''CLEAR'' }}'
                style:
                  color: theme:colors.ui.tertiary
              - values:
                  - value: '10'
                    style:
                      color: theme:colors.ui.quaternary
                  - MODE
                  - input_select.lcards_test_mode
                  - SET
                style:
                  color: theme:colors.ui.tertiary
            columns:
              - style:
                  align: left
              - style:
                  align: left
              - {}
              - style:
                  align: left
            grid:
              grid-template-columns: 22px 82px 64px 78px
              grid-template-rows: repeat(10, 22px)
              gap: 0px 10px
            style:
              font_size: 14
              padding: 0px
              line_height: 1.1
              align: right
              text_transform: uppercase
          - type: custom:lcards-layout-card
            layout:
              grid-gap: 6px
              grid-template-columns: minmax(0, 1fr) 16px 120px
              grid-template-rows: 30px 20px
              align-content: end
            cards:
              - type: custom:lcards-button
                preset: text-only
                min_height: 0
                entity: input_number.lcards_test_warp_factor
                text:
                  label:
                    content: '{entity.state}'
                    show: true
                    position: center-right
                    font_size: 44
                    color: theme:colors.ui.secondary
                view_layout:
                  grid-column: '1'
                  grid-row: 1 / 3
              - type: custom:lcards-button
                preset: panel-light
                min_height: 0
                text:
                  label:
                    content: ''
                    show: false
                style:
                  card:
                    color:
                      background:
                        default: theme:colors.ui.secondary
                view_layout:
                  grid-column: '2'
                  grid-row: '1'
              - type: custom:lcards-button
                preset: lozenge
                min_height: 0
                tap_action:
                  action: perform-action
                  perform_action: input_number.set_value
                  target:
                    entity_id: input_number.lcards_test_warp_factor
                  data:
                    value: 9
                text:
                  label:
                    content: WARP 9
                    show: true
                    position: bottom-right
                    font_size: 14
                    color: var(--lcars-text-dark, var(--lcards-gray-darkest))
                style:
                  card:
                    color:
                      background:
                        default: theme:colors.ui.quaternary
                view_layout:
                  grid-column: '3'
                  grid-row: '1'
              - type: custom:lcards-button
                preset: text-only
                min_height: 0
                text:
                  label:
                    content: WARP FACTOR · 77-30
                    show: true
                    position: top-right
                    font_size: 14
                    color: theme:colors.ui.primary
                view_layout:
                  grid-column: 2 / 4
                  grid-row: '2'
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            text:
              label:
                content: SENSOR LOG · 24 H
                position: bottom-right
                font_size: 14
                color: var(--lcars-text-dark, var(--lcards-gray-darkest))
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.quaternary
        view_layout:
          grid-column: '4'
          grid-row: '3'
      - type: custom:lcards-elbow
        view_layout:
          grid-column: 1 / 3
          grid-row: 4 / 6
        elbow:
          type: footer-left
          segment:
            bar_width: 168
            bar_height: 20
            color: theme:colors.ui.secondary
        text:
          code:
            content: 03-9756
            zone: vertical_bar
            position: bottom-right
            font_size: 14
            color: var(--lcars-text-dark, var(--lcards-gray-darkest))
      - type: custom:lcards-layout-card
        layout:
          grid-gap: 6px
          grid-template-columns: minmax(0, 1fr) 72px 220px 120px
          grid-template-rows: minmax(0, 1fr)
        cards:
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            text:
              label:
                content: ''
                show: false
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.primary
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            text:
              label:
                content: ''
                show: false
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.tertiary
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            text:
              label:
                content: PRIMARY SYSTEMS
                position: center-right
                font_size: 14
                color: var(--lcars-text-dark, var(--lcards-gray-darkest))
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.secondary
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            text:
              label:
                content: ''
                show: false
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.quaternary
        view_layout:
          grid-column: 3 / 5
          grid-row: '5'
      - type: custom:lcards-layout-card
        layout:
          grid-gap: 6px
          grid-template-columns: 140px 330px minmax(0, 1fr) 72px
          grid-template-rows: minmax(0, 1fr)
        cards:
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            text:
              label:
                content: ''
                show: false
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.quaternary
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            text:
              label:
                content: ''
                show: false
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.primary
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            text:
              label:
                content: HELM · TACTICAL
                position: center-right
                font_size: 14
                color: var(--lcars-text-dark, var(--lcards-gray-darkest))
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.primary
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            text:
              label:
                content: ''
                show: false
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.secondary
        view_layout:
          grid-column: 3 / 5
          grid-row: '6'
      - type: custom:lcards-elbow
        view_layout:
          grid-column: 1 / 3
          grid-row: 6 / 8
        elbow:
          type: header-left
          segment:
            bar_width: 168
            bar_height: 20
            color: theme:colors.ui.primary
        text:
          code:
            content: 08-1194
            zone: vertical_bar
            position: bottom-right
            font_size: 14
            color: var(--lcars-text-dark, var(--lcards-gray-darkest))
      - type: custom:lcards-layout-card
        layout:
          grid-gap: 6px
          grid-template-columns: minmax(0, 1fr)
          grid-template-rows: 30px 30px 64px 30px minmax(0, 1fr)
        cards:
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            entity: input_boolean.lcards_test_toggle
            tap_action:
              action: toggle
            text:
              label:
                content: AUX
                position: bottom-right
                font_size: 14
                color: var(--lcars-text-dark, var(--lcards-gray-darkest))
            style:
              card:
                color:
                  background:
                    active: theme:colors.ui.tertiary
                    inactive: theme:colors.card.topColor
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            text:
              label:
                content: 11-0347
                position: bottom-right
                font_size: 14
                color: var(--lcars-text-dark, var(--lcards-gray-darkest))
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.quaternary
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            text:
              label:
                content: 12-4471
                position: bottom-right
                font_size: 14
                color: var(--lcars-text-dark, var(--lcards-gray-darkest))
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.primary
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            text:
              label:
                content: 18-5102
                position: bottom-right
                font_size: 14
                color: var(--lcars-text-dark, var(--lcards-gray-darkest))
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.secondary
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            text:
              label:
                content: 21-3305
                position: bottom-right
                font_size: 14
                color: var(--lcars-text-dark, var(--lcards-gray-darkest))
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.primary
        view_layout:
          grid-column: '1'
          grid-row: '8'
      - type: custom:lcards-layout-card
        layout:
          grid-gap: 6px
          grid-template-columns: 64px 16px repeat(3, 116px) minmax(0, 1fr) 64px 16px repeat(3, 116px)
          grid-template-rows: 30px 30px 30px minmax(6px, 1fr) 30px 30px 30px
        cards:
          - type: custom:lcards-button
            preset: text-only
            min_height: 0
            text:
              label:
                content: '{{ states(''input_number.lcards_test_power'') | int }}'
                show: true
                position: center-right
                font_size: 30
                color: theme:colors.ui.secondary
            view_layout:
              grid-column: '1'
              grid-row: '1'
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            text:
              label:
                content: ''
                show: false
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.secondary
            view_layout:
              grid-column: '2'
              grid-row: '1'
          - type: custom:lcards-button
            preset: lozenge
            min_height: 0
            tap_action:
              action: perform-action
              perform_action: input_number.set_value
              target:
                entity_id: input_number.lcards_test_power
              data:
                value: 25
            text:
              label:
                content: PWR 25
                show: true
                position: bottom-right
                font_size: 14
                color: var(--lcars-text-dark, var(--lcards-gray-darkest))
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.secondary
            view_layout:
              grid-column: '3'
              grid-row: '1'
          - type: custom:lcards-button
            preset: lozenge
            min_height: 0
            tap_action:
              action: perform-action
              perform_action: input_number.set_value
              target:
                entity_id: input_number.lcards_test_power
              data:
                value: 50
            text:
              label:
                content: PWR 50
                show: true
                position: bottom-right
                font_size: 14
                color: var(--lcars-text-dark, var(--lcards-gray-darkest))
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.secondary
            view_layout:
              grid-column: '4'
              grid-row: '1'
          - type: custom:lcards-button
            preset: lozenge
            min_height: 0
            tap_action:
              action: perform-action
              perform_action: input_number.set_value
              target:
                entity_id: input_number.lcards_test_power
              data:
                value: 100
            text:
              label:
                content: PWR 100
                show: true
                position: bottom-right
                font_size: 14
                color: var(--lcars-text-dark, var(--lcards-gray-darkest))
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.secondary
            view_layout:
              grid-column: '5'
              grid-row: '1'
          - type: custom:lcards-button
            preset: text-only
            min_height: 0
            text:
              label:
                content: '{{ states(''input_number.lcards_test_shields'') | int }}'
                show: true
                position: center-right
                font_size: 30
                color: theme:colors.ui.secondary
            view_layout:
              grid-column: '1'
              grid-row: '2'
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            text:
              label:
                content: ''
                show: false
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.secondary
            view_layout:
              grid-column: '2'
              grid-row: '2'
          - type: custom:lcards-button
            preset: lozenge
            min_height: 0
            tap_action:
              action: perform-action
              perform_action: input_number.set_value
              target:
                entity_id: input_number.lcards_test_shields
              data:
                value: 25
            text:
              label:
                content: SHD 25
                show: true
                position: bottom-right
                font_size: 14
                color: var(--lcars-text-dark, var(--lcards-gray-darkest))
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.secondary
            view_layout:
              grid-column: '3'
              grid-row: '2'
          - type: custom:lcards-button
            preset: lozenge
            min_height: 0
            tap_action:
              action: perform-action
              perform_action: input_number.set_value
              target:
                entity_id: input_number.lcards_test_shields
              data:
                value: 50
            text:
              label:
                content: SHD 50
                show: true
                position: bottom-right
                font_size: 14
                color: var(--lcars-text-dark, var(--lcards-gray-darkest))
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.secondary
            view_layout:
              grid-column: '4'
              grid-row: '2'
          - type: custom:lcards-button
            preset: lozenge
            min_height: 0
            tap_action:
              action: perform-action
              perform_action: input_number.set_value
              target:
                entity_id: input_number.lcards_test_shields
              data:
                value: 100
            text:
              label:
                content: SHD 100
                show: true
                position: bottom-right
                font_size: 14
                color: var(--lcars-text-dark, var(--lcards-gray-darkest))
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.secondary
            view_layout:
              grid-column: '5'
              grid-row: '2'
          - type: custom:lcards-button
            preset: text-only
            min_height: 0
            text:
              label:
                content: '{{ states(''input_number.lcards_test_value'') | int }}'
                show: true
                position: center-right
                font_size: 30
                color: theme:colors.ui.secondary
            view_layout:
              grid-column: '1'
              grid-row: '3'
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            text:
              label:
                content: ''
                show: false
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.quaternary
            view_layout:
              grid-column: '2'
              grid-row: '3'
          - type: custom:lcards-button
            preset: lozenge
            min_height: 0
            tap_action:
              action: perform-action
              perform_action: input_number.set_value
              target:
                entity_id: input_number.lcards_test_value
              data:
                value: 0
            text:
              label:
                content: LVL 0
                show: true
                position: bottom-right
                font_size: 14
                color: var(--lcars-text-dark, var(--lcards-gray-darkest))
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.quaternary
            view_layout:
              grid-column: '3'
              grid-row: '3'
          - type: custom:lcards-button
            preset: lozenge
            min_height: 0
            tap_action:
              action: perform-action
              perform_action: input_number.set_value
              target:
                entity_id: input_number.lcards_test_value
              data:
                value: 40
            text:
              label:
                content: LVL 40
                show: true
                position: bottom-right
                font_size: 14
                color: var(--lcars-text-dark, var(--lcards-gray-darkest))
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.quaternary
            view_layout:
              grid-column: '4'
              grid-row: '3'
          - type: custom:lcards-button
            preset: lozenge
            min_height: 0
            tap_action:
              action: perform-action
              perform_action: input_number.set_value
              target:
                entity_id: input_number.lcards_test_value
              data:
                value: 80
            text:
              label:
                content: LVL 80
                show: true
                position: bottom-right
                font_size: 14
                color: var(--lcars-text-dark, var(--lcards-gray-darkest))
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.quaternary
            view_layout:
              grid-column: '5'
              grid-row: '3'
          - type: custom:lcards-button
            preset: text-only
            min_height: 0
            text:
              label:
                content: '{{ states(''input_number.lcards_test_temperature'') | int }}'
                show: true
                position: center-right
                font_size: 30
                color: theme:colors.ui.primary
            view_layout:
              grid-column: '7'
              grid-row: '1'
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            text:
              label:
                content: ''
                show: false
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.primary
            view_layout:
              grid-column: '8'
              grid-row: '1'
          - type: custom:lcards-button
            preset: lozenge
            min_height: 0
            tap_action:
              action: perform-action
              perform_action: input_number.set_value
              target:
                entity_id: input_number.lcards_test_temperature
              data:
                value: 18
            text:
              label:
                content: TMP 18
                show: true
                position: bottom-right
                font_size: 14
                color: var(--lcars-text-dark, var(--lcards-gray-darkest))
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.primary
            view_layout:
              grid-column: '9'
              grid-row: '1'
          - type: custom:lcards-button
            preset: lozenge
            min_height: 0
            tap_action:
              action: perform-action
              perform_action: input_number.set_value
              target:
                entity_id: input_number.lcards_test_temperature
              data:
                value: 21
            text:
              label:
                content: TMP 21
                show: true
                position: bottom-right
                font_size: 14
                color: var(--lcars-text-dark, var(--lcards-gray-darkest))
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.primary
            view_layout:
              grid-column: '10'
              grid-row: '1'
          - type: custom:lcards-button
            preset: lozenge
            min_height: 0
            tap_action:
              action: perform-action
              perform_action: input_number.set_value
              target:
                entity_id: input_number.lcards_test_temperature
              data:
                value: 24
            text:
              label:
                content: TMP 24
                show: true
                position: bottom-right
                font_size: 14
                color: var(--lcars-text-dark, var(--lcards-gray-darkest))
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.primary
            view_layout:
              grid-column: '11'
              grid-row: '1'
          - type: custom:lcards-button
            preset: text-only
            min_height: 0
            text:
              label:
                content: '{{ states(''input_number.lcards_test_humidity'') | int }}'
                show: true
                position: center-right
                font_size: 30
                color: theme:colors.ui.primary
            view_layout:
              grid-column: '7'
              grid-row: '2'
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            text:
              label:
                content: ''
                show: false
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.primary
            view_layout:
              grid-column: '8'
              grid-row: '2'
          - type: custom:lcards-button
            preset: lozenge
            min_height: 0
            tap_action:
              action: perform-action
              perform_action: input_number.set_value
              target:
                entity_id: input_number.lcards_test_humidity
              data:
                value: 30
            text:
              label:
                content: HUM 30
                show: true
                position: bottom-right
                font_size: 14
                color: var(--lcars-text-dark, var(--lcards-gray-darkest))
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.primary
            view_layout:
              grid-column: '9'
              grid-row: '2'
          - type: custom:lcards-button
            preset: lozenge
            min_height: 0
            tap_action:
              action: perform-action
              perform_action: input_number.set_value
              target:
                entity_id: input_number.lcards_test_humidity
              data:
                value: 45
            text:
              label:
                content: HUM 45
                show: true
                position: bottom-right
                font_size: 14
                color: var(--lcars-text-dark, var(--lcards-gray-darkest))
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.primary
            view_layout:
              grid-column: '10'
              grid-row: '2'
          - type: custom:lcards-button
            preset: lozenge
            min_height: 0
            tap_action:
              action: perform-action
              perform_action: input_number.set_value
              target:
                entity_id: input_number.lcards_test_humidity
              data:
                value: 60
            text:
              label:
                content: HUM 60
                show: true
                position: bottom-right
                font_size: 14
                color: var(--lcars-text-dark, var(--lcards-gray-darkest))
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.primary
            view_layout:
              grid-column: '11'
              grid-row: '2'
          - type: custom:lcards-button
            preset: text-only
            min_height: 0
            text:
              label:
                content: '137'
                show: true
                position: center-right
                font_size: 30
                color: theme:colors.ui.tertiary
            view_layout:
              grid-column: '7'
              grid-row: '3'
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            entity: input_boolean.lcards_test_lights
            text:
              label:
                content: ''
                show: false
            style:
              card:
                color:
                  background:
                    active: theme:colors.ui.tertiary
                    inactive: theme:colors.card.topColor
            view_layout:
              grid-column: '8'
              grid-row: '3'
          - type: custom:lcards-button
            preset: lozenge
            min_height: 0
            entity: input_boolean.lcards_test_lights
            tap_action:
              action: toggle
            text:
              label:
                content: LIGHTS
                show: true
                position: bottom-right
                font_size: 14
                color: var(--lcars-text-dark, var(--lcards-gray-darkest))
            style:
              card:
                color:
                  background:
                    active: theme:colors.ui.tertiary
                    inactive: theme:colors.card.topColor
            view_layout:
              grid-column: '9'
              grid-row: '3'
          - type: custom:lcards-button
            preset: lozenge
            min_height: 0
            entity: input_boolean.lcards_test_doors
            tap_action:
              action: toggle
            text:
              label:
                content: DOORS
                show: true
                position: bottom-right
                font_size: 14
                color: var(--lcars-text-dark, var(--lcards-gray-darkest))
            style:
              card:
                color:
                  background:
                    active: theme:colors.ui.tertiary
                    inactive: theme:colors.card.topColor
            view_layout:
              grid-column: '10'
              grid-row: '3'
          - type: custom:lcards-button
            preset: lozenge
            min_height: 0
            entity: input_boolean.lcards_test_toggle
            tap_action:
              action: toggle
            text:
              label:
                content: AUX
                show: true
                position: bottom-right
                font_size: 14
                color: var(--lcars-text-dark, var(--lcards-gray-darkest))
            style:
              card:
                color:
                  background:
                    active: theme:colors.ui.tertiary
                    inactive: theme:colors.card.topColor
            view_layout:
              grid-column: '11'
              grid-row: '3'
          - type: custom:lcards-button
            preset: text-only
            min_height: 0
            text:
              label:
                content: '147'
                show: true
                position: center-right
                font_size: 30
                color: theme:colors.ui.quaternary
            view_layout:
              grid-column: '1'
              grid-row: '5'
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            text:
              label:
                content: ''
                show: false
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.quaternary
            view_layout:
              grid-column: '2'
              grid-row: '5'
          - type: custom:lcards-button
            preset: lozenge
            min_height: 0
            text:
              label:
                content: NV 0447
                show: true
                position: bottom-right
                font_size: 14
                color: var(--lcars-text-dark, var(--lcards-gray-darkest))
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.quaternary
            view_layout:
              grid-column: '3'
              grid-row: '5'
          - type: custom:lcards-button
            preset: lozenge
            min_height: 0
            text:
              label:
                content: NV 0448
                show: true
                position: bottom-right
                font_size: 14
                color: var(--lcars-text-dark, var(--lcards-gray-darkest))
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.primary
            view_layout:
              grid-column: '4'
              grid-row: '5'
          - type: custom:lcards-button
            preset: lozenge
            min_height: 0
            text:
              label:
                content: CM 1021
                show: true
                position: bottom-right
                font_size: 14
                color: var(--lcars-text-dark, var(--lcards-gray-darkest))
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.quaternary
            view_layout:
              grid-column: '5'
              grid-row: '5'
          - type: custom:lcards-button
            preset: text-only
            min_height: 0
            text:
              label:
                content: '52'
                show: true
                position: center-right
                font_size: 30
                color: theme:colors.ui.quaternary
            view_layout:
              grid-column: '1'
              grid-row: '6'
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            text:
              label:
                content: ''
                show: false
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.primary
            view_layout:
              grid-column: '2'
              grid-row: '6'
          - type: custom:lcards-button
            preset: lozenge
            min_height: 0
            text:
              label:
                content: OP 2207
                show: true
                position: bottom-right
                font_size: 14
                color: var(--lcars-text-dark, var(--lcards-gray-darkest))
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.primary
            view_layout:
              grid-column: '3'
              grid-row: '6'
          - type: custom:lcards-button
            preset: lozenge
            min_height: 0
            text:
              label:
                content: OP 2208
                show: true
                position: bottom-right
                font_size: 14
                color: var(--lcars-text-dark, var(--lcards-gray-darkest))
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.secondary
            view_layout:
              grid-column: '4'
              grid-row: '6'
          - type: custom:lcards-button
            preset: lozenge
            min_height: 0
            text:
              label:
                content: SC 3310
                show: true
                position: bottom-right
                font_size: 14
                color: var(--lcars-text-dark, var(--lcards-gray-darkest))
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.primary
            view_layout:
              grid-column: '5'
              grid-row: '6'
          - type: custom:lcards-button
            preset: text-only
            min_height: 0
            text:
              label:
                content: '019'
                show: true
                position: center-right
                font_size: 30
                color: theme:colors.ui.quaternary
            view_layout:
              grid-column: '1'
              grid-row: '7'
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            text:
              label:
                content: ''
                show: false
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.quaternary
            view_layout:
              grid-column: '2'
              grid-row: '7'
          - type: custom:lcards-button
            preset: lozenge
            min_height: 0
            text:
              label:
                content: TC 4402
                show: true
                position: bottom-right
                font_size: 14
                color: var(--lcars-text-dark, var(--lcards-gray-darkest))
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.quaternary
            view_layout:
              grid-column: '3'
              grid-row: '7'
          - type: custom:lcards-button
            preset: lozenge
            min_height: 0
            text:
              label:
                content: TC 4403
                show: true
                position: bottom-right
                font_size: 14
                color: var(--lcars-text-dark, var(--lcards-gray-darkest))
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.primary
            view_layout:
              grid-column: '4'
              grid-row: '7'
          - type: custom:lcards-button
            preset: lozenge
            min_height: 0
            text:
              label:
                content: EN 5501
                show: true
                position: bottom-right
                font_size: 14
                color: var(--lcars-text-dark, var(--lcards-gray-darkest))
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.secondary
            view_layout:
              grid-column: '5'
              grid-row: '7'
          - type: custom:lcards-button
            preset: text-only
            min_height: 0
            text:
              label:
                content: '276'
                show: true
                position: center-right
                font_size: 30
                color: theme:colors.ui.primary
            view_layout:
              grid-column: '7'
              grid-row: '5'
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            text:
              label:
                content: ''
                show: false
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.secondary
            view_layout:
              grid-column: '8'
              grid-row: '5'
          - type: custom:lcards-button
            preset: lozenge
            min_height: 0
            text:
              label:
                content: HM 0612
                show: true
                position: bottom-right
                font_size: 14
                color: var(--lcars-text-dark, var(--lcards-gray-darkest))
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.secondary
            view_layout:
              grid-column: '9'
              grid-row: '5'
          - type: custom:lcards-button
            preset: lozenge
            min_height: 0
            text:
              label:
                content: HM 0613
                show: true
                position: bottom-right
                font_size: 14
                color: var(--lcars-text-dark, var(--lcards-gray-darkest))
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.primary
            view_layout:
              grid-column: '10'
              grid-row: '5'
          - type: custom:lcards-button
            preset: lozenge
            min_height: 0
            text:
              label:
                content: '31876'
                show: true
                position: bottom-right
                font_size: 14
                color: var(--lcars-text-dark, var(--lcards-gray-darkest))
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.quaternary
            view_layout:
              grid-column: '11'
              grid-row: '5'
          - type: custom:lcards-button
            preset: text-only
            min_height: 0
            text:
              label:
                content: '39'
                show: true
                position: center-right
                font_size: 30
                color: theme:colors.ui.primary
            view_layout:
              grid-column: '7'
              grid-row: '6'
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            text:
              label:
                content: ''
                show: false
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.quaternary
            view_layout:
              grid-column: '8'
              grid-row: '6'
          - type: custom:lcards-button
            preset: lozenge
            min_height: 0
            text:
              label:
                content: CN 0721
                show: true
                position: bottom-right
                font_size: 14
                color: var(--lcars-text-dark, var(--lcards-gray-darkest))
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.primary
            view_layout:
              grid-column: '9'
              grid-row: '6'
          - type: custom:lcards-button
            preset: lozenge
            min_height: 0
            text:
              label:
                content: CN 0722
                show: true
                position: bottom-right
                font_size: 14
                color: var(--lcars-text-dark, var(--lcards-gray-darkest))
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.quaternary
            view_layout:
              grid-column: '10'
              grid-row: '6'
          - type: custom:lcards-button
            preset: lozenge
            min_height: 0
            text:
              label:
                content: '8817'
                show: true
                position: bottom-right
                font_size: 14
                color: var(--lcars-text-dark, var(--lcards-gray-darkest))
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.secondary
            view_layout:
              grid-column: '11'
              grid-row: '6'
          - type: custom:lcards-button
            preset: text-only
            min_height: 0
            text:
              label:
                content: '84'
                show: true
                position: center-right
                font_size: 30
                color: theme:colors.ui.primary
            view_layout:
              grid-column: '7'
              grid-row: '7'
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            text:
              label:
                content: ''
                show: false
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.primary
            view_layout:
              grid-column: '8'
              grid-row: '7'
          - type: custom:lcards-button
            preset: lozenge
            min_height: 0
            text:
              label:
                content: AX 0910
                show: true
                position: bottom-right
                font_size: 14
                color: var(--lcars-text-dark, var(--lcards-gray-darkest))
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.secondary
            view_layout:
              grid-column: '9'
              grid-row: '7'
          - type: custom:lcards-button
            preset: lozenge
            min_height: 0
            text:
              label:
                content: AX 0911
                show: true
                position: bottom-right
                font_size: 14
                color: var(--lcars-text-dark, var(--lcards-gray-darkest))
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.primary
            view_layout:
              grid-column: '10'
              grid-row: '7'
          - type: custom:lcards-button
            preset: lozenge
            min_height: 0
            text:
              label:
                content: '0099'
                show: true
                position: bottom-right
                font_size: 14
                color: var(--lcars-text-dark, var(--lcards-gray-darkest))
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.quaternary
            view_layout:
              grid-column: '11'
              grid-row: '7'
        view_layout:
          grid-column: '3'
          grid-row: '8'
      - type: custom:lcards-layout-card
        layout:
          grid-gap: 6px
          grid-template-columns: 110px minmax(0, 1fr)
          grid-template-rows: 30px 40px 30px 40px minmax(6px, 1fr) 30px 30px
        cards:
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            text:
              label:
                content: IMPULSE
                position: bottom-right
                font_size: 14
                color: var(--lcars-text-dark, var(--lcards-gray-darkest))
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.primary
            view_layout:
              grid-column: '1'
              grid-row: '1'
          - type: custom:lcards-button
            preset: text-only
            min_height: 0
            entity: input_number.lcards_test_power
            text:
              label:
                content: '{entity.state}'
                show: true
                position: bottom-right
                font_size: 18
                color: theme:colors.ui.secondary
            view_layout:
              grid-column: '2'
              grid-row: '1'
          - type: custom:lcards-slider
            entity: input_number.lcards_test_power
            preset: pills-basic
            style:
              track:
                segments:
                  gradient:
                    start: theme:colors.ui.primary
                    end: theme:colors.ui.secondary
            view_layout:
              grid-column: 1 / 3
              grid-row: '2'
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            text:
              label:
                content: SHIELDS
                position: bottom-right
                font_size: 14
                color: var(--lcars-text-dark, var(--lcards-gray-darkest))
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.quaternary
            view_layout:
              grid-column: '1'
              grid-row: '3'
          - type: custom:lcards-slider
            entity: input_number.lcards_test_shields
            preset: gauge-basic
            style:
              gauge:
                progress_bar:
                  height: 10
                  align: end
                  color: theme:colors.ui.secondary
                  background:
                    color: theme:colors.ui.quaternary
                    height: 10
                scale:
                  labels:
                    enabled: false
                  tick_marks:
                    major:
                      color: theme:colors.ui.primary
                    minor:
                      color: theme:colors.ui.quaternary
            view_layout:
              grid-column: 1 / 3
              grid-row: '4'
          - type: custom:lcards-button
            preset: lozenge
            min_height: 0
            entity: input_boolean.lcards_test_lights
            tap_action:
              action: toggle
            text:
              label:
                content: MAIN LIGHTS
                show: true
                position: bottom-right
                font_size: 14
                color: var(--lcars-text-dark, var(--lcards-gray-darkest))
            style:
              card:
                color:
                  background:
                    active: theme:colors.ui.tertiary
                    inactive: theme:colors.card.topColor
            view_layout:
              grid-column: '1'
              grid-row: '6'
          - type: custom:lcards-select-menu
            entity: input_select.lcards_test_mode
            preset: lozenge
            grid:
              columns: 3
              gap: 6px
              grid-auto-rows: 30px
            style:
              text:
                default:
                  font_size: 14
                  color: var(--lcars-text-dark, var(--lcards-gray-darkest))
            view_layout:
              grid-column: '2'
              grid-row: '6'
          - type: custom:lcards-button
            preset: lozenge
            min_height: 0
            entity: input_boolean.lcards_test_toggle
            tap_action:
              action: toggle
            text:
              label:
                content: RED ALERT
                show: true
                position: bottom-right
                font_size: 14
                color: var(--lcars-text-dark, var(--lcards-gray-darkest))
            style:
              card:
                color:
                  background:
                    active: var(--lcars-alert-color, var(--lcards-orange-dark))
                    inactive: theme:colors.card.topColor
            view_layout:
              grid-column: '1'
              grid-row: '7'
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            text:
              label:
                content: TACTICAL · 77-30
                position: center-right
                font_size: 14
                color: var(--lcars-text-dark, var(--lcards-gray-darkest))
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.primary
            view_layout:
              grid-column: '2'
              grid-row: '7'
        view_layout:
          grid-column: '4'
          grid-row: '8'
