Card Layout with just values?

I want to show solar panel data. One card with three values for each panel, then those cards stuck in a vertical stack (or a view I guess would also be fine)

I can’t get the basic solar panel card to do what I want, I have more data on there than I want. My definition

entities:
  - entity: sensor.solar_panel_1_active
    name: ' '
  - entity: sensor.solar_panel_1_current_watts
  - entity: sensor.solar_panel_1_lte
show_header_toggle: false
title: Solar Panel One
type: entities

and what I get is:

And what I would like is just the values for those three sensors, not the name or custom name and alot of space. So in this case have it read ```ACTIVE, 0 watts, 12345 Watt/hours" . Any thoughts on if I can do that? ( I also notice if I click the sensor name, I get a graph for 30 minutes which isn’t really what I would want, but kind of don’t care a lot about that right now)

Additionally, I was going to make a status card with just the active status for all the panels on it. Green if they are ACTIVE / RED if they are not. Anything like that already exist I could leverage? I’m not super up on the UI components yet.

You could use a glance card with show_name and show_icon set to false.

if you want them stacked vertically set the number of columns to 1.

perfect, just what I wanted thanks!

1 Like

If anyone is curious I did the following:

columns: 4
entities:
  - entity: sensor.solar_panel_1_name
  - entity: sensor.solar_panel_1_active
  - entity: sensor.solar_panel_1_current_watts
  - entity: sensor.solar_panel_1_lte
  
  - entity: sensor.solar_panel_2_name
  - entity: sensor.solar_panel_2_active
  - entity: sensor.solar_panel_2_current_watts
  - entity: sensor.solar_panel_2_lte
  
  - entity: sensor.solar_panel_3_name
  - entity: sensor.solar_panel_3_active
  - entity: sensor.solar_panel_3_current_watts
  - entity: sensor.solar_panel_3_lte
  
  - entity: sensor.solar_panel_4_name
  - entity: sensor.solar_panel_4_active
  - entity: sensor.solar_panel_4_current_watts
  - entity: sensor.solar_panel_4_lte
  
  - entity: sensor.solar_panel_5_name
  - entity: sensor.solar_panel_5_active
  - entity: sensor.solar_panel_5_current_watts
  - entity: sensor.solar_panel_5_lte
  
  - entity: sensor.solar_panel_6_name
  - entity: sensor.solar_panel_6_active
  - entity: sensor.solar_panel_6_current_watts
  - entity: sensor.solar_panel_6_lte
  
  - entity: sensor.solar_panel_7_name
  - entity: sensor.solar_panel_7_active
  - entity: sensor.solar_panel_7_current_watts
  - entity: sensor.solar_panel_7_lte
  
  - entity: sensor.solar_panel_8_name
  - entity: sensor.solar_panel_8_active
  - entity: sensor.solar_panel_8_current_watts
  - entity: sensor.solar_panel_8_lte
  
  - entity: sensor.solar_panel_9_name
  - entity: sensor.solar_panel_9_active
  - entity: sensor.solar_panel_9_current_watts
  - entity: sensor.solar_panel_9_lte
  
  - entity: sensor.solar_panel_10_name
  - entity: sensor.solar_panel_10_active
  - entity: sensor.solar_panel_10_current_watts
  - entity: sensor.solar_panel_10_lte
  
  - entity: sensor.solar_panel_11_name
  - entity: sensor.solar_panel_11_active
  - entity: sensor.solar_panel_11_current_watts
  - entity: sensor.solar_panel_11_lte

show_icon: false
show_name: false
show_state: true
title: Solar Panels
type: glance

which uses the following sensor setup for the solar bridge data I am piping in:


# each row is a panel, each cell array has the following data
# 0 serial number
# 1 firmware
# 2 status
# 3 dc volts
# 4 watts
# 5 lte (watt hours)
# 6+ grid profile

sensor:
  - platform: template
    sensors:
      solar_panel_1_name:
        value_template: "1"
      solar_panel_2_name:
        value_template: "2"
      solar_panel_3_name:
        value_template: "3"
      solar_panel_4_name:
        value_template: "4"
      solar_panel_5_name:
        value_template: "5"
      solar_panel_6_name:
        value_template: "6"
      solar_panel_7_name:
        value_template: "7"
      solar_panel_8_name:
        value_template: "8"
      solar_panel_9_name:
        value_template: "9"
      solar_panel_10_name:
        value_template: "10"
      solar_panel_11_name:
        value_template: "11"
        
  - platform: mqtt
    name: solar_panel_1_active
    state_topic: "homeassistant/sensor/solar_panels"
    value_template:  '{{ value_json.rows[0][''cell''][2] }}'
  - platform: mqtt
    name: solar_panel_1_current_watts
    state_topic: "homeassistant/sensor/solar_panels"
    value_template:  '{{ value_json.rows[0][''cell''][4] | float }}'
    unit_of_measurement: "Watts"
  - platform: mqtt
    name: solar_panel_1_lte
    state_topic: "homeassistant/sensor/solar_panels"
    value_template:  '{{ value_json.rows[0][''cell''][5] | float / 1000 }}'
    unit_of_measurement: "kWh"
    
  - platform: mqtt
    name: solar_panel_2_active
    state_topic: "homeassistant/sensor/solar_panels"
    value_template:  '{{ value_json.rows[1][''cell''][2] }}'
  - platform: mqtt
    name: solar_panel_2_current_watts
    state_topic: "homeassistant/sensor/solar_panels"
    value_template:  '{{ value_json.rows[1][''cell''][4] | float }}'
    unit_of_measurement: "Watts"
  - platform: mqtt
    name: solar_panel_2_lte
    state_topic: "homeassistant/sensor/solar_panels"
    value_template:  '{{ value_json.rows[1][''cell''][5] | float / 1000 }}'
    unit_of_measurement: "kWh"
    
  - platform: mqtt
    name: solar_panel_3_active
    state_topic: "homeassistant/sensor/solar_panels"
    value_template:  '{{ value_json.rows[2][''cell''][2] }}'
  - platform: mqtt
    name: solar_panel_3_current_watts
    state_topic: "homeassistant/sensor/solar_panels"
    value_template:  '{{ value_json.rows[2][''cell''][4] | float }}'
    unit_of_measurement: "Watts"
  - platform: mqtt
    name: solar_panel_3_lte
    state_topic: "homeassistant/sensor/solar_panels"
    value_template:  '{{ value_json.rows[2][''cell''][5] | float / 1000 }}'
    unit_of_measurement: "kWh"
    
  - platform: mqtt
    name: solar_panel_4_active
    state_topic: "homeassistant/sensor/solar_panels"
    value_template:  '{{ value_json.rows[3][''cell''][2] }}'
  - platform: mqtt
    name: solar_panel_4_current_watts
    state_topic: "homeassistant/sensor/solar_panels"
    value_template:  '{{ value_json.rows[3][''cell''][4] | float }}'
    unit_of_measurement: "Watts"
  - platform: mqtt
    name: solar_panel_4_lte
    state_topic: "homeassistant/sensor/solar_panels"
    value_template:  '{{ value_json.rows[3][''cell''][5] | float / 1000 }}'
    unit_of_measurement: "kWh"
    
  - platform: mqtt
    name: solar_panel_5_active
    state_topic: "homeassistant/sensor/solar_panels"
    value_template:  '{{ value_json.rows[4][''cell''][2] }}'
  - platform: mqtt
    name: solar_panel_5_current_watts
    state_topic: "homeassistant/sensor/solar_panels"
    value_template:  '{{ value_json.rows[4][''cell''][4] | float }}'
    unit_of_measurement: "Watts"
  - platform: mqtt
    name: solar_panel_5_lte
    state_topic: "homeassistant/sensor/solar_panels"
    value_template:  '{{ value_json.rows[4][''cell''][5] | float / 1000 }}'
    unit_of_measurement: "kWh"
    
  - platform: mqtt
    name: solar_panel_6_active
    state_topic: "homeassistant/sensor/solar_panels"
    value_template:  '{{ value_json.rows[5][''cell''][2] }}'
  - platform: mqtt
    name: solar_panel_6_current_watts
    state_topic: "homeassistant/sensor/solar_panels"
    value_template:  '{{ value_json.rows[5][''cell''][4] | float }}'
    unit_of_measurement: "Watts"
  - platform: mqtt
    name: solar_panel_6_lte
    state_topic: "homeassistant/sensor/solar_panels"
    value_template:  '{{ value_json.rows[5][''cell''][5] | float / 1000 }}'
    unit_of_measurement: "kWh"
    
  - platform: mqtt
    name: solar_panel_7_active
    state_topic: "homeassistant/sensor/solar_panels"
    value_template:  '{{ value_json.rows[6][''cell''][2] }}'
  - platform: mqtt
    name: solar_panel_7_current_watts
    state_topic: "homeassistant/sensor/solar_panels"
    value_template:  '{{ value_json.rows[6][''cell''][4] | float }}'
    unit_of_measurement: "Watts"
  - platform: mqtt
    name: solar_panel_7_lte
    state_topic: "homeassistant/sensor/solar_panels"
    value_template:  '{{ value_json.rows[6][''cell''][5] | float / 1000 }}'
    unit_of_measurement: "kWh"
    
  - platform: mqtt
    name: solar_panel_8_active
    state_topic: "homeassistant/sensor/solar_panels"
    value_template:  '{{ value_json.rows[7][''cell''][2] }}'
  - platform: mqtt
    name: solar_panel_8_current_watts
    state_topic: "homeassistant/sensor/solar_panels"
    value_template:  '{{ value_json.rows[7][''cell''][4] | float }}'
    unit_of_measurement: "Watts"
  - platform: mqtt
    name: solar_panel_8_lte
    state_topic: "homeassistant/sensor/solar_panels"
    value_template:  '{{ value_json.rows[7][''cell''][5] | float / 1000 }}'
    unit_of_measurement: "kWh"
    
  - platform: mqtt
    name: solar_panel_9_active
    state_topic: "homeassistant/sensor/solar_panels"
    value_template:  '{{ value_json.rows[8][''cell''][2] }}'
  - platform: mqtt
    name: solar_panel_9_current_watts
    state_topic: "homeassistant/sensor/solar_panels"
    value_template:  '{{ value_json.rows[8][''cell''][4] | float }}'
    unit_of_measurement: "Watts"
  - platform: mqtt
    name: solar_panel_9_lte
    state_topic: "homeassistant/sensor/solar_panels"
    value_template:  '{{ value_json.rows[8][''cell''][5] | float / 1000 }}'
    unit_of_measurement: "kWh"  
    
  - platform: mqtt
    name: solar_panel_10_active
    state_topic: "homeassistant/sensor/solar_panels"
    value_template:  '{{ value_json.rows[9][''cell''][2] }}'
  - platform: mqtt
    name: solar_panel_10_current_watts
    state_topic: "homeassistant/sensor/solar_panels"
    value_template:  '{{ value_json.rows[9][''cell''][4] | float }}'
    unit_of_measurement: "Watts"
  - platform: mqtt
    name: solar_panel_10_lte
    state_topic: "homeassistant/sensor/solar_panels"
    value_template:  '{{ value_json.rows[9][''cell''][5] | float / 1000 }}'
    unit_of_measurement: "kWh"  
    
  - platform: mqtt
    name: solar_panel_11_active
    state_topic: "homeassistant/sensor/solar_panels"
    value_template:  '{{ value_json.rows[10][''cell''][2] }}'
  - platform: mqtt
    name: solar_panel_11_current_watts
    state_topic: "homeassistant/sensor/solar_panels"
    value_template:  '{{ value_json.rows[10][''cell''][4] | float }}'
    unit_of_measurement: "Watts"
  - platform: mqtt
    name: solar_panel_11_lte
    state_topic: "homeassistant/sensor/solar_panels"
    value_template:  '{{ value_json.rows[10][''cell''][5] | float / 1000 }}'
    unit_of_measurement: "kWh"      
    
# 0 serial number
# 1 firmware
# 2 status
# 3 dc volts
# 4 watts
# 5 lte (watt hours)
# 6 grid profile
 
    
##################################################
## Automation
##################################################
# TODO

##################################################
## Recorder/History
##################################################
recorder:
  include:
    entities:
      - sensor.solar_panel_1_active
      - sensor.solar_panel_1_current_watts
      - sensor.solar_panel_1_lte
      - sensor.solar_panel_2_active
      - sensor.solar_panel_2_current_watts
      - sensor.solar_panel_2_lte
      - sensor.solar_panel_3_active
      - sensor.solar_panel_3_current_watts
      - sensor.solar_panel_3_lte
      - sensor.solar_panel_4_active
      - sensor.solar_panel_4_current_watts
      - sensor.solar_panel_4_lte
      - sensor.solar_panel_5_active
      - sensor.solar_panel_5_current_watts
      - sensor.solar_panel_5_lte
      - sensor.solar_panel_6_active
      - sensor.solar_panel_6_current_watts
      - sensor.solar_panel_6_lte
      - sensor.solar_panel_7_active
      - sensor.solar_panel_7_current_watts
      - sensor.solar_panel_7_lte
      - sensor.solar_panel_8_active
      - sensor.solar_panel_8_current_watts
      - sensor.solar_panel_8_lte
      - sensor.solar_panel_9_active
      - sensor.solar_panel_9_current_watts
      - sensor.solar_panel_9_lte
      - sensor.solar_panel_10_active
      - sensor.solar_panel_10_current_watts
      - sensor.solar_panel_10_lte
      - sensor.solar_panel_11_active
      - sensor.solar_panel_11_current_watts
      - sensor.solar_panel_11_lte
      

history:
  include:
    entities:
      - sensor.solar_panel_1_active
      - sensor.solar_panel_1_current_watts
      - sensor.solar_panel_1_lte
      - sensor.solar_panel_2_active
      - sensor.solar_panel_2_current_watts
      - sensor.solar_panel_2_lte
      - sensor.solar_panel_3_active
      - sensor.solar_panel_3_current_watts
      - sensor.solar_panel_3_lte
      - sensor.solar_panel_4_active
      - sensor.solar_panel_4_current_watts
      - sensor.solar_panel_4_lte
      - sensor.solar_panel_5_active
      - sensor.solar_panel_5_current_watts
      - sensor.solar_panel_5_lte
      - sensor.solar_panel_6_active
      - sensor.solar_panel_6_current_watts
      - sensor.solar_panel_6_lte
      - sensor.solar_panel_7_active
      - sensor.solar_panel_7_current_watts
      - sensor.solar_panel_7_lte
      - sensor.solar_panel_8_active
      - sensor.solar_panel_8_current_watts
      - sensor.solar_panel_8_lte
      - sensor.solar_panel_9_active
      - sensor.solar_panel_9_current_watts
      - sensor.solar_panel_9_lte
      - sensor.solar_panel_10_active
      - sensor.solar_panel_10_current_watts
      - sensor.solar_panel_10_lte
      - sensor.solar_panel_11_active
      - sensor.solar_panel_11_current_watts
      - sensor.solar_panel_11_lte
     

and produces:

There are probably ways to make it look prettier, but that is compact which is what I wanted.

1 Like