Kartengröße verkleinern

Micha65

New member
Hallo, ich mal wieder.
Ich würde gerne die Kartengrösse verkleinern, ohne das Icon, den Wert und den Infotext zu verkleinern.
In meinem Beispiel ist recht viel ungenutzter Platz den ich gerne beschneiden möchte um Platz zu sparen.
Wäre schön, auch unter dem Icon den Infotext schreiben zu könnte, oder das Icon rechts vom Wert,
oder den Infotext oben drüber.

Grüße Micha

Bildschirmfoto 2023-02-01 um 21.43.29.png
YAML:
type: custom:mushroom-template-card
primary: |
  {{ states("sensor.sz_1_ik_thermostat_temperature")|float|round(0) }}
entity: sensor.sz_ik_netatmo_2_co2
icon: mdi:heat-wave
layout: horizontal
tap_action:
  action: none
icon_color: |
  {% if states('sensor.sz_1_ik_thermostat_heating')|float(0) < 15 %} #0000
  {% else %} red
  {% endif %}
multiline_secondary: false
fill_container: true
secondary: |
  Schlaf {{states("sensor.sz_1_ik_thermostat_heating")|float|round(0)}}
  {{states("sensor.sz_ik_netatmo_2_co2")}}
hold_action:
  action: none
double_tap_action:
  action: none
card_mod:
  style: |
    ha-card {
       --card-primary-font-size: 5.5rem;
       --card-secondary-font-size: 1.rem;
       --primary-text-color: rgb(255,0,255,1);
       --primary-text-color: rgb(0,0,0,1);
       --secondary-text-color: black;    

       {% set level = states(config.entity) %}
       {% if is_number(level) %}
         {% set level = level | int %}
         {% if level < 1000 %}
           background: rgba(0,255,0,1);
         {% elif level < 1500 %}
           background: rgba(255,255,0,1);
         {% else %}
           background: rgba( 255,0,0,1);
         {% endif %}
       {% else %}
         background: rgba(var(--rgb-secondary-text-color),0.30);
       {% endif %}
         text-align: left

         {% if ((states('binary_sensor.sz_ik_kontakt_fenster_r_iaszone') == 'on')
         or (states('binary_sensor.sz_ik_kontakt_fenster_l_iaszone') == 'on')) %}
         
          background: "{{ Farbe }}";
          color: "{{ Farbe }}";
          animation: blinking 1s linear alternate infinite;
          }
          @keyframes blinking {
          0% {opacity: 0;}
          100% {opacity: 1;}
        {% endif %}
         
        }
 
Zuletzt bearbeitet:

Zurzeit aktive Besucher

Letzte Anleitungen

Statistik des Forums

Themen
4.520
Beiträge
46.370
Mitglieder
4.153
Neuestes Mitglied
FritzTR
Zurück
Oben