Herbert01
(Werner)
September 14, 2021, 1:01pm
1
Hi there,
I would like the following representation for temperatures in Lovelace:
In order to gain more space for the text, I would like to remove the temperature symbols. The removal also worked, but then the space is not released for the text.
Is there a possibility to adapt this eg by code?
Thanks very much.
Oh, I chose this display because I want large font for the temperatures and I don’t like the round maps.
Greetings Werner
tom_l
September 14, 2021, 1:13pm
2
It might help if you tell us which card you are using.
Herbert01
(Werner)
September 14, 2021, 1:15pm
3
Oh sorry
Currently “Horizontal Stack Card Configuration”.
tom_l
September 14, 2021, 1:16pm
4
what cards are you stacking in the horizontal stack?
Herbert01
(Werner)
September 14, 2021, 1:25pm
5
This is currently “Entity”.
Here is the code for it:
type: horizontal-stack
cards:
- type: entity
entity: sensor.lumi_lumi_sens_f1345c04_temperature
name: Küche
- type: entity
entity: sensor.lumi_lumi_airmonitor_acn01_temperature
name: Schlaf
- type: entity
entity: sensor.lumi_lumi_sens_temperature
name: Work
- type: entity
entity: sensor.tz2000_a476raq2_ts0201_temperature
name: Terra
tom_l
September 14, 2021, 2:51pm
6
Ok, have a look at the custom button card (it can be used for sensors too). It gives you complete control over the layout.
Button card
Lovelace Button card for your entities. -> github
[all]
Features
works with any toggleable entity
3 actions on tap toggle, more_info and service
state display (optional)
custom color for on and off state (optional)
custom state definition with customizable color (optional)
custom size (optional)
custom icon (optional)
custom css style (optional)
automatic color for light (optional)
custom default color for lights (when color cannot be determined) (optional)
2 color types
icon :…
1 Like
Herbert01
(Werner)
September 16, 2021, 8:00am
7
Thanks very much. That should work…
Greetings Werner