I would do it differently

It’s actually an entities card. Using this:

entities:
  - type: custom:hui-element
    card_type: thermostat
    entity: climate.downstairs
    card_mod:
      class: inline-card-no-border
  - animation:
      state: 'off'
    columns: '1'
    direction: right
    entities:
      - entity: sensor.rumpus_room_temperature
        icon: mdi:thermometer
        max: '40'
        min: '-10'
        name: Temperature
        severity:
          - color: '#039BE5'
            from: '-10'
            to: '17.9'
          - color: '#0da035'
            from: '18'
            to: '22.9'
          - color: '#e0b400'
            from: '23'
            to: '24.9'
          - color: '#e45e65'
            from: '25'
            to: '40'
        target: '18'
      - entity: sensor.downstairs_heat_pump_power
        max: '4000'
        min: '0'
        name: Power
        severity:
          - color: '#039BE5'
            from: '0'
            to: '299.9'
          - color: '#0da035'
            from: '300'
            to: '899.9'
          - color: '#e0b400'
            from: '900'
            to: '1799.9'
          - color: '#e45e65'
            from: '1800'
            to: '4000'
    entity_row: true
    height: 28px
    positions:
      icon: inside
      indicator: inside
      minmax: 'off'
      name: inside
      title: 'off'
      value: inside
    type: custom:bar-card
    value_style:
      color: var(--primary-text-color)
      text-shadow: none
  - card_type: custom:fold-entity-row
    entities:
      - entity: automation.downstairs_aircon_am_schedule
        name: Enable AM Schedule
        type: custom:multiple-entity-row
        toggle: true
        state_color: true
        entities:
          - entity: input_datetime.downstairs_ac_am_on_time
            name: AM On
          - entity: input_datetime.downstairs_ac_am_off_time
            name: AM Off
      - entity: automation.downstairs_aircon_pm_schedule
        name: Enable PM Schedule
        type: custom:multiple-entity-row
        toggle: true
        state_color: true
        entities:
          - entity: input_datetime.downstairs_ac_pm_on_time
            name: PM On
          - entity: input_datetime.downstairs_ac_pm_off_time
            name: PM Off
      - entity: automation.downstairs_boost_on
        name: Boost
      - entity: input_boolean.downstairs_ac_workday
        state_color: true
      - entity: input_number.downstairs_ac_heat_temp_set
      - entity: input_number.downstairs_ac_cool_temp_set
      - entity: input_number.downstairs_ac_temp_set_heat
        name: AC Heat Set Temp
      - entity: input_number.downstairs_ac_temp_set_cool
        name: AC Cool Set Temp
      - entity: binary_sensor.downstairs_ac_am_automation_time_active
        state_color: true
      - entity: binary_sensor.downstairs_ac_pm_automation_time_active
        state_color: true
      - entity: binary_sensor.downstairs_ac_heat_required
        state_color: true
      - entity: binary_sensor.downstairs_ac_cool_required
        state_color: true
      - entity: sensor.downstairs_preset_mode
    head:
      label: Automation
      type: section
    padding: 0
    type: custom:hui-element
show_header_toggle: false
title: Downstairs
type: entities
card_mod:
  class: top-level-card