Überschriftengröße / Kartentyp?

Fidibus

Active member
Moin,
ich stell mich gerade wieder etwas dumm an.
1765449655660.png
Ich bekomme die Überschrift "Preise Super" nicht auf die Größe wie z.B. "Rauchmelder".
Code Card Rauchmelder:
Code:
type: vertical-stack
cards:
  - type: entities
    title: Rauchmelder HWR
    state_color: true
    card_mod:
      style: |
        ha-card {
          {% if states('binary_sensor.shelly_smoke_1_smoke') == 'on' %}
            background-color: rgba(255, 0, 0, 0.4) !important; /* Transparente rote Farbe */
          {% else %}
            /* Optional: Normale Farbe beibehalten */
            background-color: var(--card-background-color) !important;
          {% endif %}
        }
    entities:
      - entity: binary_sensor.shelly_smoke_1_smoke
        name: Status
        icon: mdi:fire-alert
      - entity: button.shelly_smoke_1_mute_alarm
        name: Alarm stumm schalten
        icon: mdi:bell-off
  - type: entities
    title: Rauchmelder Aquarium
    state_color: true
    card_mod:
      style: |
        ha-card {
          {% if states('binary_sensor.shelly_smoke_2_smoke') == 'on' %}
            background-color: rgba(255, 0, 0, 0.4) !important;
          {% else %}
            background-color: var(--card-background-color) !important;
          {% endif %}
        }
    entities:
      - entity: binary_sensor.shelly_smoke_2_smoke
        name: Status
        icon: mdi:fire-alert
      - entity: button.shelly_smoke_2_mute_alarm
        name: Alarm stumm schalten
        icon: mdi:bell-off
  - type: entities
    title: Rauchmelder Schlafzimmer
    state_color: true
    card_mod:
      style: |
        ha-card {
          {% if states('binary_sensor.shellyplussmoke_2cbcbbf66c84_smoke') == 'on' %}
            background-color: rgba(255, 0, 0, 0.4) !important;
          {% else %}
            background-color: var(--card-background-color) !important;
          {% endif %}
        }
    entities:
      - entity: binary_sensor.shellyplussmoke_2cbcbbf66c84_smoke
        name: Status
        icon: mdi:fire-alert
      - entity: button.shellyplussmoke_2cbcbbf66c84_mute_alarm
        name: Alarm stumm schalten
        icon: mdi:bell-off
Code Card Benzinpreise:
Code:
type: custom:auto-entities
card:
  type: entities
filter:
  include:
    - options: {}
      entity_id: "*super*"
  exclude:
    - options: {}
      entity_id: "*home_assistant*"
    - options: {}
      entity_id: "*billigster_preis_super*"
    - options: {}
      entity_id: "*binary_sensor.supermarkt_tankstelle_ostsee_park_str_3_status*"
sort:
  method: state
  ignore_case: true
  count: 3
  numeric: true
  ip: false
Geht das überhaupt?
 
Ja, aber ändern möchte ich eigentlich die Card Benzinpreise. Da ist Card-mod nicht verwendet.
Aber ich denke wahrscheinlich falsch.
 
Hallo @Fidibus,

probiere es mal so, ob es passt....

YAML:
type: custom:auto-entities
card:
  type: entities
  title: Preise Super
filter:
  include:
    - options: {}
      entity_id: "*super*"
  exclude:
    - options: {}
      entity_id: "*home_assistant*"
    - options: {}
      entity_id: "*billigster_preis_super*"
    - options: {}
      entity_id: "*binary_sensor.supermarkt_tankstelle_ostsee_park_str_3_status*"
sort:
  method: state
  ignore_case: true
  count: 3
  numeric: true
  ip: false
1765523383586.png


oder halt so..., dafür habe ich eine eigene Karte über die ganze Seite
1765523808130.png

YAML:
type: iframe
url: https://tankerkoenig.de/index-tk-price-search.php
aspect_ratio: 50%
title: Benzinpreise

1765524004327.png
 
Zuletzt bearbeitet:
@HA-DAU ich verstehe es nicht, das hatte ich probiert. Schriftgröße war kleiner - jetzt geht es.
Danke!
Das mit der einen Seite macht für mich im Moment keinen Mehrwert, spätestens wenn ich ein Tablett an die Wand geschraubt habe, dann bestimmt.
 

Letzte Anleitungen

Statistik des Forums

Themen
7.511
Beiträge
73.374
Mitglieder
8.035
Neuestes Mitglied
fritzkasi
Zurück
Oben