I have a Horizontal Stack card in my dashboard to show the battery levels of devices but for each one the word “Battery” or “Battery Level” is repeated and I want to try to clean it up by replacing those strings with a blank string.
How would I go about that?
Current code:
- type: custom:auto-entities
card:
show_header_toggle: false
title: Good
type: entities
state_color: false
card_mod:
style: |
ha-card .card-header {
font-size: 14px;
color: white;
font-weight: 600
}
ha-card {
#states > div {
margin: -15px 0px !important;
}
.card-content hui-sensor-entity-row:
$:
hui-generic-entity-row:
$: |
.info {
margin-left: 0px !important;
}
--mdc-icon-size: 18px !important;
--paper-item-icon-color: lime;
font-size: 12px !important;
padding: 0px 0px 0px !important;
width: 400px !important;
font-weight: 200;
background: none;
.card-content div {
margin-top: 0px !important;
margin-bottom: 0px !important;
}
}
filter:
include:
- attributes:
device_class: battery
state: <= 100
exclude:
- name: /[Ll]ow/
- name: /[Ss]tate/
- name: iPad M Battery Level
- name: Martin's MACBook Battery
- name: iPhone M App Battery Level
- name: iPhone R App Battery Level
- state: < 70
sort:
method: state
numeric: true
show_empty: false
Current output: