sgoffman
(Scott Goffman)
June 6, 2024, 4:54pm
1
I’m using the “Entities” card to show the open/close state of a bunch of window/door sensors:
To maximize screen real estate, I would like to hide the state text (“Open”/“Closed”), as the icon color already gives that info.
Can anyone suggest a way to do that?
Thanks!
You could use a Glance Card instead?
You could also install and use card-mod to hide elements.
Good suggestion. Also created by Thomas Lovén. That dude is awesome
sgoffman
(Scott Goffman)
June 6, 2024, 5:37pm
5
But doesn’t auto-entities just populate an Entities card? I don’t think it adds any additional display controls to that card, or am I wrong about that?
sgoffman
(Scott Goffman)
June 6, 2024, 5:39pm
6
Card-mod looks promising, if I can get it to hide the contents of divs in class "text-content value pointer ". Thanks for the suggestions!
You should not need to hide thngs when you filter them up front…anyhow (RTFM)…your choice
sgoffman
(Scott Goffman)
June 8, 2024, 1:23am
8
Right, but I want to hide JUST the value text, NOT the entity.
Card mod is an option
type: entities
entities:
- entity: binary_sensor.test
- entity: binary_sensor.test
- entity: binary_sensor.test
card_mod:
style:
hui-simple-entity-row:
$:
hui-generic-entity-row:
$: |
.text-content:not(.info) {
display: none;
}
sgoffman
(Scott Goffman)
June 8, 2024, 4:13pm
10
Perfect, thanks for the guidance!