2 horizontal stacks into vertical stack

I know it is possible. I’ve done it before. But whatever I try, I can’t fix this one. Don’t know what I’m doing wrong… Quite frustrating… It can’t be that hard, but I don’t know what I do wrong with it.

First horizontal stack

type: horizontal-stack
cards:
  - type: gauge
    needle: true
    max: 300
    entity: sensor.stroommeter_actuele_spanning_fase_1
    min: 0
    unit: V
    segments:
      - from: 0
        color: red
      - from: 217
        color: green
      - from: 250
        color: red
    name: Voltage Grid
  - type: gauge
    unit: A
    needle: true
    min: 0
    entity: sensor.stroommeter_actuele_stroom_fase_1
    max: 40
    segments:
      - from: 0
        color: green
      - from: 25
        color: orange
      - from: 35
        color: red
    name: Amperage Grid
  - type: gauge
    unit: W
    needle: true
    entity: sensor.stroommeter_actueel_vermogen_fase_1
    max: 7000
    min: -2000
    name: Wattage Grid
    segments:
      - from: -2000
        color: green
      - from: 3000
        color: orange
      - from: 5000
        color: red

Second horizontal stack

type: horizontal-stack
cards:
  - type: gauge
    name: Grid
    unit: W
    needle: true
    segments:
      - from: -2000
        color: green
      - from: 1000
        color: orange
      - from: 2500
        color: red
    max: 5000
    entity: sensor.stroommeter_actueel_vermogen
    min: -2000
  - type: gauge
    name: Solar
    unit: W
    needle: true
    segments:
      - from: 0
        color: red
      - from: 250
        color: Orange
      - from: 500
        color: Green
    max: 2150
    entity: sensor.totalsolarpositive
    min: 0
  - type: gauge
    entity: sensor.totalenergy
    name: Total
    min: 0
    max: 9200
    segments:
      - from: 0
        color: green
      - from: 2000
        color: orange
      - from: 5000
        color: red
    needle: true

type: vertical-stack
cards:
  - type: horizontal-stack
    cards:
      - type: gauge
        needle: true
        max: 300
        entity: sensor.stroommeter_actuele_spanning_fase_1
        min: 0
        unit: V
        segments:
          - from: 0
            color: red
          - from: 217
            color: green
          - from: 250
            color: red
        name: Voltage Grid
      - type: gauge
        unit: A
        needle: true
        min: 0
        entity: sensor.stroommeter_actuele_stroom_fase_1
        max: 40
        segments:
          - from: 0
            color: green
          - from: 25
            color: orange
          - from: 35
            color: red
        name: Amperage Grid
      - type: gauge
        unit: W
        needle: true
        entity: sensor.stroommeter_actueel_vermogen_fase_1
        max: 7000
        min: -2000
        name: Wattage Grid
        segments:
          - from: -2000
            color: green
          - from: 3000
            color: orange
          - from: 5000
            color: red
            
  - type: horizontal-stack
    cards:
      - type: gauge
        name: Grid
        unit: W
        needle: true
        segments:
          - from: -2000
            color: green
          - from: 1000
            color: orange
          - from: 2500
            color: red
        max: 5000
        entity: sensor.stroommeter_actueel_vermogen
        min: -2000
      - type: gauge
        name: Solar
        unit: W
        needle: true
        segments:
          - from: 0
            color: red
          - from: 250
            color: Orange
          - from: 500
            color: Green
        max: 2150
        entity: sensor.totalsolarpositive
        min: 0
      - type: gauge
        entity: sensor.totalenergy
        name: Total
        min: 0
        max: 9200
        segments:
          - from: 0
            color: green
          - from: 2000
            color: orange
          - from: 5000
            color: red
        needle: true
1 Like

My hero of the day! Thanks a lot!