Good morning.
I have a problem with a simple gauge…
My goal is to have it the same size as the button next to it (120x70px).
Thanks to the contribution of another user in another thread I managed to get here:
type: gauge
entity: sensor.lastricosolare_temperaturaacqua
name: Temperatura acqua
card_mod:
style:
.: |
.name {
font-size: 10px !important;
background-color: ;
position: absolute;
bottom: 25px;
padding-bottom: 0px;
padding-top: 0px;
padding-left: 0px
padding-right: 0px
}
ha-gauge$: |
svg {
transform: scale(0.9) translateY(-20px);
overflow: visible;
}
svg text {
transform: scale(0.4) translateY(-290px);
}
unit: °C
needle: true
min: -5
max: 50
segments:
- from: -10
color: '#FF0000'
- from: 10
color: '#FFD700'
- from: 15
color: '#43a047'
- from: 30
color: '#FFD700'
- from: 40
color: '#FF0000'
What I can’t do is:
- size the gauge to the desired dimensions (priority);
- change the font size of the temperature value and its position;
- change the color of the text and the temperature value
- change the sensor background
- add the border.
(Perhaps whit CSS code )
Thanks for your attention!