Langzeitprojekt - Nachbau IOBroker VIS zu HA Dashbord

Hallo Zusammen,

ich habe über lange Jahre mein Haus mit IOBroker gesteuert und mir ein für mich und die Familie liebgewonnenes Bedienzentrum mittels eines in den Flurschrank eingebauten Tablets gebaut. Hier kann man zentral sehen ob irgendwo noch Fenster auf sind oder Lichter brennen. Zusätzlich kann ich auch die Heizkörperthermostate steuern, die Rollläden bedienen, über die Termine sehen wann der Müll geholt wird oder ein anderer Termin ansteht oder ob einer der Sensoren neue Batterien braucht und vieles mehr.

Ziel ist es nun dieses Schema so gut wie möglich nachzubauen.

In die VIS musste ich mich auch reindenken und konnte somit über die GUI “selbstgemahlte” Knöpfe frei auf dem Bildschirm platzieren.

Da ich vorhabe mittelfristig komplett auf HA zu wechseln, habe ich angefangen die Bereiche meiner VIS in HA nachzubauen, bin aber leider recht schnell an meine Grenzen gestoßen.

Hier mal ein Bild meines IOB VIS Dashbords:

Anfangen würde ich gerne mit der rechten Spalte, wo ich den Zustand der Aktoren sehen und steuern kann. In der Titelleiste steht immer fix die Etage, gefolgt von einer Varriablen, welche sagt ob gelüftet werden soll oder nicht. Manche der Buttons sind zusätzlich mit Jumps versehen um auf andere Seiten zu springen (z.B. der Mäher oder die Kameras). Wie oben geschrieben sind die Symbole in den Knöpfen mit Pixelmator selbst erstellt.

Mein erster Versuch zum Testen ob ich Buttons frei nebeneinander platzieren kann war so “Semi” erfolgreich. Hier das Ergebnis:

und der benutzte Code:

type: grid
cards:
  - type: heading
    icon: ""
    heading: Erdgeschoss
    heading_style: title
    grid_options:
      rows: 1
      columns: full
  - type: horizontal-stack
    cards:
      - type: markdown
        content: "**Flur**"
        text_only: true
        card_mod:
          style: |
            ha-card {
              background: transparent !important;
              border-radius: 0px !important;
              padding: 0 !important;
              margin: 0 !important;
              box-shadow: none !important;
              border: none !important;
              display: flex;
              align-items: center;
              justify-content: flex-start;
              height: 60px;
            }
            ha-markdown {
              font-size: 20px !important;
            }
      - type: custom:button-card
        color_type: blank-card
        styles:
          card:
            - width: 50px
            - height: 0px
      - type: custom:button-card
        entity: switch.shellyplusplugs_64b7080e02e0_switch_0
        icon: mdi:lightbulb
        show_name: false
        styles:
          card:
            - width: 50px
            - height: 50px
            - margin-right: 0px
            - border-radius: 4px
          icon:
            - width: 40px
            - height: 40px
      - type: custom:button-card
        entity: switch.shellyplusplugs_64b7080e02e0_switch_0
        icon: mdi:lightbulb
        show_name: false
        styles:
          card:
            - width: 50px
            - height: 50px
            - margin-right: 0px
            - border-radius: 4px
          icon:
            - width: 40px
            - height: 40px
      - type: custom:button-card
        entity: switch.shellyplusplugs_64b7080e02e0_switch_0
        icon: mdi:lightbulb
        show_name: false
        styles:
          card:
            - width: 50px
            - height: 50px
            - margin-right: 0px
            - border-radius: 4px
          icon:
            - width: 40px
            - height: 40px
      - type: custom:button-card
        entity: switch.shellyplusplugs_64b7080e02e0_switch_0
        icon: mdi:lightbulb
        show_name: false
        styles:
          card:
            - width: 50px
            - height: 50px
            - margin-right: 0px
            - border-radius: 4px
          icon:
            - width: 40px
            - height: 40px
    grid_options:
      columns: 12
      rows: auto
  - type: horizontal-stack
    cards:
      - type: markdown
        content: "**WZ Terrassentür**"
        text_only: true
        card_mod:
          style: |
            ha-card {
              background: transparent !important;
              border-radius: 0px !important;
              padding: 0 !important;
              margin: 0 !important;
              box-shadow: none !important;
              border: none !important;
              display: flex;
              align-items: center;
              justify-content: flex-start;
              height: 60px;
            }
            ha-markdown {
              font-size: 20px !important;
            }
      - type: custom:button-card
        color_type: blank-card
        styles:
          card:
            - width: 50px
            - height: 0px
      - type: custom:button-card
        entity: switch.shellyplusplugs_64b7080e02e0_switch_0
        icon: mdi:lightbulb
        show_name: false
        styles:
          card:
            - width: 50px
            - height: 50px
            - margin-right: 0px
            - border-radius: 4px
          icon:
            - width: 40px
            - height: 40px
      - type: custom:button-card
        entity: switch.shellyplusplugs_64b7080e02e0_switch_0
        icon: mdi:lightbulb
        show_name: false
        styles:
          card:
            - width: 50px
            - height: 50px
            - margin-right: 0px
            - border-radius: 4px
          icon:
            - width: 40px
            - height: 40px
      - type: custom:button-card
        entity: switch.shellyplusplugs_64b7080e02e0_switch_0
        icon: mdi:lightbulb
        show_name: false
        styles:
          card:
            - width: 50px
            - height: 50px
            - margin-right: 0px
            - border-radius: 4px
          icon:
            - width: 40px
            - height: 40px
      - type: custom:button-card
        entity: switch.shellyplusplugs_64b7080e02e0_switch_0
        icon: mdi:lightbulb
        show_name: false
        styles:
          card:
            - width: 50px
            - height: 50px
            - margin-right: 0px
            - border-radius: 4px
          icon:
            - width: 40px
            - height: 40px
    grid_options:
      columns: 12
      rows: auto
  - type: horizontal-stack
    cards:
      - type: markdown
        content: "**WZ Schiebetür**"
        text_only: true
        card_mod:
          style: |
            ha-card {
              background: transparent !important;
              border-radius: 0px !important;
              padding: 0 !important;
              margin: 0 !important;
              box-shadow: none !important;
              border: none !important;
              display: flex;
              align-items: center;
              justify-content: flex-start;
              height: 60px;
            }
            ha-markdown {
              font-size: 20px !important;
            }
      - type: custom:button-card
        color_type: blank-card
        styles:
          card:
            - width: 50px
            - height: 0px
      - type: custom:button-card
        entity: switch.shellyplusplugs_64b7080e02e0_switch_0
        icon: mdi:lightbulb
        show_name: false
        styles:
          card:
            - width: 50px
            - height: 50px
            - margin-right: 0px
            - border-radius: 4px
          icon:
            - width: 40px
            - height: 40px
      - type: custom:button-card
        entity: switch.shellyplusplugs_64b7080e02e0_switch_0
        icon: mdi:lightbulb
        show_name: false
        styles:
          card:
            - width: 50px
            - height: 50px
            - margin-right: 0px
            - border-radius: 4px
          icon:
            - width: 40px
            - height: 40px
      - type: custom:button-card
        entity: switch.shellyplusplugs_64b7080e02e0_switch_0
        icon: mdi:lightbulb
        show_name: false
        styles:
          card:
            - width: 50px
            - height: 50px
            - margin-right: 0px
            - border-radius: 4px
          icon:
            - width: 40px
            - height: 40px
      - type: custom:button-card
        entity: switch.shellyplusplugs_64b7080e02e0_switch_0
        icon: mdi:lightbulb
        show_name: false
        styles:
          card:
            - width: 50px
            - height: 50px
            - margin-right: 0px
            - border-radius: 4px
          icon:
            - width: 40px
            - height: 40px
    grid_options:
      columns: 12
      rows: auto
  - type: horizontal-stack
    cards:
      - type: markdown
        content: "**Esszimmer**"
        text_only: true
        card_mod:
          style: |
            ha-card {
              background: transparent !important;
              border-radius: 0px !important;
              padding: 0 !important;
              margin: 0 !important;
              box-shadow: none !important;
              border: none !important;
              display: flex;
              align-items: center;
              justify-content: flex-start;
              height: 60px;
            }
            ha-markdown {
              font-size: 20px !important;
            }
      - type: custom:button-card
        color_type: blank-card
        styles:
          card:
            - width: 50px
            - height: 0px
      - type: custom:button-card
        entity: switch.shellyplusplugs_64b7080e02e0_switch_0
        icon: mdi:lightbulb
        show_name: false
        styles:
          card:
            - width: 50px
            - height: 50px
            - margin-right: 0px
            - border-radius: 4px
          icon:
            - width: 40px
            - height: 40px
      - type: custom:button-card
        entity: switch.shellyplusplugs_64b7080e02e0_switch_0
        icon: mdi:lightbulb
        show_name: false
        styles:
          card:
            - width: 50px
            - height: 50px
            - margin-right: 0px
            - border-radius: 4px
          icon:
            - width: 40px
            - height: 40px
      - type: custom:button-card
        entity: switch.shellyplusplugs_64b7080e02e0_switch_0
        icon: mdi:lightbulb
        show_name: false
        styles:
          card:
            - width: 50px
            - height: 50px
            - margin-right: 0px
            - border-radius: 4px
          icon:
            - width: 40px
            - height: 40px
      - type: custom:button-card
        entity: switch.shellyplusplugs_64b7080e02e0_switch_0
        icon: mdi:lightbulb
        show_name: false
        styles:
          card:
            - width: 50px
            - height: 50px
            - margin-right: 0px
            - border-radius: 4px
          icon:
            - width: 40px
            - height: 40px
    grid_options:
      columns: 12
      rows: auto
  - type: horizontal-stack
    cards:
      - type: markdown
        content: "**Küche**"
        text_only: true
        card_mod:
          style: |
            ha-card {
              background: transparent !important;
              border-radius: 0px !important;
              padding: 0 !important;
              margin: 0 !important;
              box-shadow: none !important;
              border: none !important;
              display: flex;
              align-items: center;
              justify-content: flex-start;
              height: 60px;
            }
            ha-markdown {
              font-size: 20px !important;
            }
      - type: custom:button-card
        color_type: blank-card
        styles:
          card:
            - width: 50px
            - height: 0px
      - type: custom:button-card
        entity: switch.shellyplusplugs_64b7080e02e0_switch_0
        icon: mdi:lightbulb
        show_name: false
        styles:
          card:
            - width: 50px
            - height: 50px
            - margin-right: 0px
            - border-radius: 4px
          icon:
            - width: 40px
            - height: 40px
      - type: custom:button-card
        entity: switch.shellyplusplugs_64b7080e02e0_switch_0
        icon: mdi:lightbulb
        show_name: false
        styles:
          card:
            - width: 50px
            - height: 50px
            - margin-right: 0px
            - border-radius: 4px
          icon:
            - width: 40px
            - height: 40px
      - type: custom:button-card
        entity: switch.shellyplusplugs_64b7080e02e0_switch_0
        icon: mdi:lightbulb
        show_name: false
        styles:
          card:
            - width: 50px
            - height: 50px
            - margin-right: 0px
            - border-radius: 4px
          icon:
            - width: 40px
            - height: 40px
      - type: custom:button-card
        entity: switch.shellyplusplugs_64b7080e02e0_switch_0
        icon: mdi:lightbulb
        show_name: false
        styles:
          card:
            - width: 50px
            - height: 50px
            - margin-right: 0px
            - border-radius: 4px
          icon:
            - width: 40px
            - height: 40px
    grid_options:
      columns: 12
      rows: auto
  - type: horizontal-stack
    cards:
      - type: markdown
        content: "**Gäste WC**"
        text_only: true
        card_mod:
          style: |
            ha-card {
              background: transparent !important;
              border-radius: 0px !important;
              padding: 0 !important;
              margin: 0 !important;
              box-shadow: none !important;
              border: none !important;
              display: flex;
              align-items: center;
              justify-content: flex-start;
              height: 60px;
            }
            ha-markdown {
              font-size: 20px !important;
            }
      - type: custom:button-card
        color_type: blank-card
        styles:
          card:
            - width: 50px
            - height: 0px
      - type: custom:button-card
        entity: switch.shellyplusplugs_64b7080e02e0_switch_0
        icon: mdi:lightbulb
        show_name: false
        styles:
          card:
            - width: 50px
            - height: 50px
            - margin-right: 0px
            - border-radius: 4px
          icon:
            - width: 40px
            - height: 40px
      - type: custom:button-card
        entity: switch.shellyplusplugs_64b7080e02e0_switch_0
        icon: mdi:lightbulb
        show_name: false
        styles:
          card:
            - width: 50px
            - height: 50px
            - margin-right: 0px
            - border-radius: 4px
          icon:
            - width: 40px
            - height: 40px
      - type: custom:button-card
        entity: switch.shellyplusplugs_64b7080e02e0_switch_0
        icon: mdi:lightbulb
        show_name: false
        styles:
          card:
            - width: 50px
            - height: 50px
            - margin-right: 0px
            - border-radius: 4px
          icon:
            - width: 40px
            - height: 40px
      - type: custom:button-card
        entity: switch.shellyplusplugs_64b7080e02e0_switch_0
        icon: mdi:lightbulb
        show_name: false
        styles:
          card:
            - width: 50px
            - height: 50px
            - margin-right: 0px
            - border-radius: 4px
          icon:
            - width: 40px
            - height: 40px
    grid_options:
      columns: 12
      rows: auto
column_span: 1

Idee war rechtsbündig mit button-cards anzufangen und diese als horizontal stack cards dann bei bedarf um weitere button cards zu erweitern. Dies hat allerdings von der vertikalen Ausrichtung der Buttons nicht funktioniert. Als work-around habe ich mir deshalb in jeder Zeile eine blank-card eingefügt. Somit habe ich immer 5 Karten nebeneinander und würde in Bereichen wo ich nur 2 oder 3 Karten brauche die restlichen Karten mit blank-cards auffüllen.

Gibt es hier eine elegantere Lösung?

Ich glaube, dass es einige Leute gibt, die von IOBroker kommen und sich mit den HA Dashboards schwertun. Deshalb würde ich dieses Thema versuchen über die nächsten Monate fortzuführen um möglichst viele “Wechsler” wie mich abzuholen.

Grüße

miwi

(Beitrag vom Verfasser gelöscht)

Vorherige Beiträge gelöscht, da ich die Lösung der dort angefragten Fehler selbst gefunden habe.

Die rechte Spalte ist nun komplett fertig und sieht so aus:

Hier der Code:

type: grid
cards:
  - type: custom:mod-card
    card_mod:
      style: |
        ha-card {
          background: #202020 !important;
          padding: 0px !important;
          border-radius: 0px !important;
          box-shadow: none !important;
          height: 217px !important;
          width: 410px !important;
        }
    card:
      type: vertical-stack
      card_mod:
        style: |
          ha-card {
            gap: 0px !important;
          }
          #root {
            margin: 0px !important;
          }
          #root > * {
            margin: 0px !important;
          }
      cards:
        - type: markdown
          content: "**Obergeschoss**"
          card_mod:
            style: |
              ha-card {
                background: transparent !important;
                box-shadow: none !important;
                border-radius: 0px !important;
                border: none !important;
                padding: 0 !important;
                margin: 0 !important;
                height: 35px !important;
                width: 410px !important;
                overflow: hidden !important;
              }
              ha-markdown {
                padding: 0 10px !important;
                height: 35px !important;
                display: flex !important;
                align-items: center !important;
                font-size: 28px !important;
                overflow: hidden !important;
              }
              ha-markdown p {
                margin: 0 !important;
                text-align: left !important;
              }
              ha-markdown-element {
                width: 100% !important;
              }
        - type: horizontal-stack
          cards:
            - type: markdown
              content: "**Schlafen**"
              card_mod:
                style: |
                  ha-card {
                    background: transparent !important;
                    border-radius: 0px !important;
                    padding: 0 !important;
                    margin: 0 !important;
                    box-shadow: none !important;
                    border: none !important;
                    height: 50px !important;
                    width: 140px !important;
                    display: flex !important;
                    align-items: center !important;
                    }
                  ha-markdown {
                    font-size: 18px !important;
                    padding: 0 10px !important;
                    white-space: nowrap !important;            
                    }
                  ha-markdown p {
                    margin: 0 !important;
                  }
                  :host {
                    margin: 0 !important;
                  }
            - type: custom:button-card
              entity: switch.shellyplusplugs_64b7080e02e0_switch_0
              show_name: false
              tap_action:
                action: toggle
              show_entity_picture: true
              state:
                - value: "on"
                  entity_picture: /local/Bilder/Licht an1.png
                - value: "off"
                  entity_picture: /local/Bilder/Licht aus.png
              styles:
                card:
                  - width: 50px
                  - height: 50px
                  - border-radius: 4px
                  - background: transparent
                  - box-shadow: none
                  - margin-right: "-3px"
                  - margin-top: 0px
                entity_picture:
                  - width: 50px
                  - height: 50px
            - type: custom:button-card
              entity: switch.shellyplusplugs_64b7080e02e0_switch_0
              show_name: false
              tap_action:
                action: toggle
              show_entity_picture: true
              state:
                - value: "on"
                  entity_picture: /local/Bilder/Licht Schrank an.png
                - value: "off"
                  entity_picture: /local/Bilder/Licht Schrank aus.png
              styles:
                card:
                  - width: 50px
                  - height: 50px
                  - border-radius: 4px
                  - background: transparent
                  - box-shadow: none
                  - margin-right: "-3px"
                  - margin-top: 0px
                entity_picture:
                  - width: 50px
                  - height: 50px
            - type: custom:button-card
              entity: switch.shellyplusplugs_64b7080e02e0_switch_0
              show_name: false
              tap_action:
                action: toggle
              show_entity_picture: true
              state:
                - value: "on"
                  entity_picture: /local/Bilder/KlimaAN.png
                - value: "off"
                  entity_picture: /local/Bilder/KlimaAUS.png
              styles:
                card:
                  - width: 50px
                  - height: 50px
                  - border-radius: 4px
                  - background: transparent
                  - box-shadow: none
                  - margin-right: "-3px"
                  - margin-top: 0px
                entity_picture:
                  - width: 50px
                  - height: 50px
            - type: custom:button-card
              entity: switch.shellyplusplugs_64b7080e02e0_switch_0
              show_name: false
              tap_action:
                action: toggle
              show_entity_picture: true
              state:
                - value: "on"
                  entity_picture: /local/Bilder/Rollladen unten.png
                - value: "off"
                  entity_picture: /local/Bilder/Rollladen oben.png
              styles:
                card:
                  - width: 50px
                  - height: 50px
                  - border-radius: 4px
                  - background: transparent
                  - box-shadow: none
                  - margin-right: "-3px"
                  - margin-top: 0px
                entity_picture:
                  - width: 50px
                  - height: 50px
            - type: custom:button-card
              entity: switch.shellyplusplugs_64b7080e02e0_switch_0
              show_name: false
              tap_action:
                action: toggle
              show_entity_picture: true
              state:
                - value: "on"
                  entity_picture: /local/Bilder/Fenster offen1.png
                - value: "off"
                  entity_picture: /local/Bilder/Fenster geschlossen.png
              styles:
                card:
                  - width: 50px
                  - height: 50px
                  - border-radius: 4px
                  - background: transparent
                  - box-shadow: none
                  - margin-top: 0px
                  - margin-right: 7px
                entity_picture:
                  - width: 50px
                  - height: 50px
          card_mod:
            style: |
              ha-card {
                height: 65px !important;
                width: 400px !important;
                display: flex !important;
                align-items: center !important;
                background: transparent !important;
                box-shadow: none !important;
                padding: 0 5px !important;
                margin: 0 !important;
              }
              :host {
                margin: 0 !important;
              }
        - type: horizontal-stack
          cards:
            - type: markdown
              content: "**Badezimmer**"
              card_mod:
                style: |
                  ha-card {
                    background: transparent !important;
                    border-radius: 0px !important;
                    padding: 0 !important;
                    margin: 0 !important;
                    box-shadow: none !important;
                    border: none !important;
                    height: 50px !important;
                    width: 140px !important;
                    display: flex !important;
                    align-items: center !important;
                  }
                  ha-markdown {
                    font-size: 18px !important;
                    padding: 0 10px !important;
                    white-space: nowrap !important;
                  }
                  ha-markdown p {
                    margin: 0 !important;
                  }
            - type: custom:button-card
              color_type: blank-card
              styles:
                card:
                  - width: 50px
                  - height: 50px
                  - background: transparent
                  - box-shadow: none
                  - margin-right: "-3px"
                  - margin-top: 0px
            - type: custom:button-card
              color_type: blank-card
              styles:
                card:
                  - width: 50px
                  - height: 50px
                  - background: transparent
                  - box-shadow: none
                  - margin-right: "-3px"
                  - margin-top: 0px
            - type: custom:button-card
              color_type: blank-card
              styles:
                card:
                  - width: 50px
                  - height: 50px
                  - background: transparent
                  - box-shadow: none
                  - margin-right: "-3px"
                  - margin-top: 0px
            - type: custom:button-card
              entity: switch.shellyplusplugs_64b7080e02e0_switch_0
              show_name: false
              tap_action:
                action: toggle
              show_entity_picture: true
              state:
                - value: "on"
                  entity_picture: /local/Bilder/Rollladen unten.png
                - value: "off"
                  entity_picture: /local/Bilder/Rollladen oben.png
              styles:
                card:
                  - width: 50px
                  - height: 50px
                  - border-radius: 4px
                  - background: transparent
                  - box-shadow: none
                  - margin-right: "-3px"
                  - margin-top: 0px
                entity_picture:
                  - width: 50px
                  - height: 50px
            - type: custom:button-card
              entity: switch.shellyplusplugs_64b7080e02e0_switch_0
              show_name: false
              tap_action:
                action: toggle
              show_entity_picture: true
              state:
                - value: "on"
                  entity_picture: /local/Bilder/Fenster offen1.png
                - value: "off"
                  entity_picture: /local/Bilder/Fenster geschlossen.png
              styles:
                card:
                  - width: 50px
                  - height: 50px
                  - border-radius: 4px
                  - background: transparent
                  - box-shadow: none
                  - margin-top: 0px
                  - margin-right: 7px
                entity_picture:
                  - width: 50px
                  - height: 50px
          card_mod:
            style: |
              ha-card {
                height: 65px !important;
                width: 400px !important;
                display: flex !important;
                align-items: center !important;
                background: transparent !important;
                box-shadow: none !important;
                padding: 0 5px !important;
                margin: 0 !important;
              }
              :host {
                margin: 0 !important;
              }
        - type: horizontal-stack
          cards:
            - type: markdown
              content: "**Flur**"
              card_mod:
                style: |
                  ha-card {
                    background: transparent !important;
                    border-radius: 0px !important;
                    padding: 0 !important;
                    margin: 0 !important;
                    box-shadow: none !important;
                    border: none !important;
                    height: 50px !important;
                    width: 140px !important;
                    display: flex !important;
                    align-items: center !important;
                  }
                  ha-markdown {
                    font-size: 18px !important;
                    padding: 0 10px !important;
                    white-space: nowrap !important;
                  }
                  ha-markdown p {
                    margin: 0 !important;
                  }
            - type: custom:button-card
              color_type: blank-card
              styles:
                card:
                  - width: 50px
                  - height: 50px
                  - background: transparent
                  - box-shadow: none
                  - margin-right: "-3px"
                  - margin-top: 0px
            - type: custom:button-card
              color_type: blank-card
              styles:
                card:
                  - width: 50px
                  - height: 50px
                  - background: transparent
                  - box-shadow: none
                  - margin-right: "-3px"
                  - margin-top: 0px
            - type: custom:button-card
              entity: switch.shellyplusplugs_64b7080e02e0_switch_0
              show_name: false
              tap_action:
                action: toggle
              show_entity_picture: true
              state:
                - value: "on"
                  entity_picture: /local/Bilder/Licht an1.png
                - value: "off"
                  entity_picture: /local/Bilder/Licht aus.png
              styles:
                card:
                  - width: 50px
                  - height: 50px
                  - border-radius: 4px
                  - background: transparent
                  - box-shadow: none
                  - margin-right: "-3px"
                  - margin-top: 0px
                entity_picture:
                  - width: 50px
                  - height: 50px
            - type: custom:button-card
              entity: switch.shellyplusplugs_64b7080e02e0_switch_0
              show_name: false
              tap_action:
                action: toggle
              show_entity_picture: true
              state:
                - value: "on"
                  entity_picture: /local/Bilder/Rollladen unten.png
                - value: "off"
                  entity_picture: /local/Bilder/Rollladen oben.png
              styles:
                card:
                  - width: 50px
                  - height: 50px
                  - border-radius: 4px
                  - background: transparent
                  - box-shadow: none
                  - margin-right: "-3px"
                  - margin-top: 0px
                entity_picture:
                  - width: 50px
                  - height: 50px
            - type: custom:button-card
              entity: switch.shellyplusplugs_64b7080e02e0_switch_0
              show_name: false
              tap_action:
                action: toggle
              show_entity_picture: true
              state:
                - value: "on"
                  entity_picture: /local/Bilder/Fenster offen1.png
                - value: "off"
                  entity_picture: /local/Bilder/Fenster geschlossen.png
              styles:
                card:
                  - width: 50px
                  - height: 50px
                  - border-radius: 4px
                  - background: transparent
                  - box-shadow: none
                  - margin-top: 0px
                  - margin-right: 7px
                entity_picture:
                  - width: 50px
                  - height: 50px
          card_mod:
            style: |
              ha-card {
                height: 65px !important;
                width: 400px !important;
                display: flex !important;
                align-items: center !important;
                background: transparent !important;
                box-shadow: none !important;
                padding: 0 5px !important;
                margin: 0 !important;
              }
              :host {
                margin: 0 !important;
              }
  - type: custom:mod-card
    card_mod:
      style: |
        ha-card {
          background: #202020 !important;
          padding: 0px !important;
          border-radius: 0px !important;
          box-shadow: none !important;
          height: 390px !important;
          width: 410px !important;
        }
    card:
      type: vertical-stack
      card_mod:
        style: |
          ha-card {
            gap: 0px !important;
          }
          #root {
            margin: 0px !important;
          }
          #root > * {
            margin: 0px !important;
          }
      cards:
        - type: markdown
          content: "**Erdgeschoss**"
          card_mod:
            style: |
              ha-card {
                background: transparent !important;
                box-shadow: none !important;
                border-radius: 0px !important;
                border: none !important;
                padding: 0 !important;
                margin: 0 !important;
                height: 35px !important;
                width: 410px !important;
                overflow: hidden !important;
              }
              ha-markdown {
                padding: 0 10px !important;
                height: 35px !important;
                display: flex !important;
                align-items: center !important;
                font-size: 28px !important;
                overflow: hidden !important;
              }
              ha-markdown p {
                margin: 0 !important;
                text-align: left !important;
              }
              ha-markdown-element {
                width: 100% !important;
              }
        - type: horizontal-stack
          cards:
            - type: markdown
              content: "**Flur**"
              card_mod:
                style: |
                  ha-card {
                    background: transparent !important;
                    border-radius: 0px !important;
                    padding: 0 !important;
                    margin: 0 !important;
                    box-shadow: none !important;
                    border: none !important;
                    height: 50px !important;
                    width: 140px !important;
                    display: flex !important;
                    align-items: center !important;
                    }
                  ha-markdown {
                    font-size: 18px !important;
                    padding: 0 10px !important;
                    white-space: nowrap !important;            
                    }
                  ha-markdown p {
                    margin: 0 !important;
                  }
                  :host {
                    margin: 0 !important;
                  }
            - type: custom:button-card
              color_type: blank-card
              styles:
                card:
                  - width: 50px
                  - height: 50px
                  - background: transparent
                  - box-shadow: none
                  - margin-right: "-3px"
                  - margin-top: 0px
            - type: custom:button-card
              color_type: blank-card
              styles:
                card:
                  - width: 50px
                  - height: 50px
                  - background: transparent
                  - box-shadow: none
                  - margin-right: "-3px"
                  - margin-top: 0px
            - type: custom:button-card
              entity: switch.shellyplusplugs_64b7080e02e0_switch_0
              show_name: false
              tap_action:
                action: toggle
              show_entity_picture: true
              state:
                - value: "on"
                  entity_picture: /local/Bilder/Licht an1.png
                - value: "off"
                  entity_picture: /local/Bilder/Licht aus.png
              styles:
                card:
                  - width: 50px
                  - height: 50px
                  - border-radius: 4px
                  - background: transparent
                  - box-shadow: none
                  - margin-right: "-3px"
                  - margin-top: 0px
                entity_picture:
                  - width: 50px
                  - height: 50px
            - type: custom:button-card
              entity: switch.shellyplusplugs_64b7080e02e0_switch_0
              show_name: false
              tap_action:
                action: toggle
              show_entity_picture: true
              state:
                - value: "on"
                  entity_picture: /local/Bilder/BWM richtig.png
                - value: "off"
                  entity_picture: /local/Bilder/BWM falsch.png
              styles:
                card:
                  - width: 50px
                  - height: 50px
                  - border-radius: 4px
                  - background: transparent
                  - box-shadow: none
                  - margin-right: "-3px"
                  - margin-top: 0px
                entity_picture:
                  - width: 50px
                  - height: 50px
            - type: custom:button-card
              entity: switch.shellyplusplugs_64b7080e02e0_switch_0
              show_name: false
              tap_action:
                action: toggle
              show_entity_picture: true
              state:
                - value: "on"
                  entity_picture: /local/Bilder/Tur offen.png
                - value: "off"
                  entity_picture: /local/Bilder/Tur geschlossen.png
              styles:
                card:
                  - width: 50px
                  - height: 50px
                  - border-radius: 4px
                  - background: transparent
                  - box-shadow: none
                  - margin-top: 0px
                  - margin-right: 7px
                entity_picture:
                  - width: 50px
                  - height: 50px
          card_mod:
            style: |
              ha-card {
                height: 65px !important;
                width: 400px !important;
                display: flex !important;
                align-items: center !important;
                background: transparent !important;
                box-shadow: none !important;
                padding: 0 5px !important;
                margin: 0 !important;
              }
              :host {
                margin: 0 !important;
              }
        - type: horizontal-stack
          cards:
            - type: markdown
              content: "**WZ Terrassentür**"
              card_mod:
                style: |
                  ha-card {
                    background: transparent !important;
                    border-radius: 0px !important;
                    padding: 0 !important;
                    margin: 0 !important;
                    box-shadow: none !important;
                    border: none !important;
                    height: 50px !important;
                    width: 170px !important;
                    display: flex !important;
                    align-items: center !important;
                  }
                  ha-markdown {
                    font-size: 18px !important;
                    padding: 0 10px !important;
                    white-space: nowrap !important;
                  }
                  ha-markdown p {
                    margin: 0 !important;
                  }
            - type: custom:button-card
              color_type: blank-card
              styles:
                card:
                  - width: 50px
                  - height: 50px
                  - background: transparent
                  - box-shadow: none
                  - margin-right: "-3px"
                  - margin-top: 0px
            - type: custom:button-card
              color_type: blank-card
              styles:
                card:
                  - width: 50px
                  - height: 50px
                  - background: transparent
                  - box-shadow: none
                  - margin-right: "-3px"
                  - margin-top: 0px
            - type: custom:button-card
              entity: switch.shellyplusplugs_64b7080e02e0_switch_0
              show_name: false
              tap_action:
                action: toggle
              show_entity_picture: true
              state:
                - value: "on"
                  entity_picture: /local/Bilder/Licht an1.png
                - value: "off"
                  entity_picture: /local/Bilder/Licht aus.png
              styles:
                card:
                  - width: 50px
                  - height: 50px
                  - border-radius: 4px
                  - background: transparent
                  - box-shadow: none
                  - margin-right: "-3px"
                  - margin-top: 0px
                entity_picture:
                  - width: 50px
                  - height: 50px
            - type: custom:button-card
              entity: switch.shellyplusplugs_64b7080e02e0_switch_0
              show_name: false
              tap_action:
                action: toggle
              show_entity_picture: true
              state:
                - value: "on"
                  entity_picture: /local/Bilder/Rollladen unten.png
                - value: "off"
                  entity_picture: /local/Bilder/Rollladen oben.png
              styles:
                card:
                  - width: 50px
                  - height: 50px
                  - border-radius: 4px
                  - background: transparent
                  - box-shadow: none
                  - margin-right: "-3px"
                  - margin-top: 0px
                entity_picture:
                  - width: 50px
                  - height: 50px
            - type: custom:button-card
              entity: switch.shellyplusplugs_64b7080e02e0_switch_0
              show_name: false
              tap_action:
                action: toggle
              show_entity_picture: true
              state:
                - value: "on"
                  entity_picture: /local/Bilder/Fenster offen1.png
                - value: "off"
                  entity_picture: /local/Bilder/Fenster geschlossen.png
              styles:
                card:
                  - width: 50px
                  - height: 50px
                  - border-radius: 4px
                  - background: transparent
                  - box-shadow: none
                  - margin-top: 0px
                  - margin-right: 7px
                entity_picture:
                  - width: 50px
                  - height: 50px
          card_mod:
            style: |
              ha-card {
                height: 65px !important;
                width: 400px !important;
                display: flex !important;
                align-items: center !important;
                background: transparent !important;
                box-shadow: none !important;
                padding: 0 5px !important;
                margin: 0 !important;
              }
              :host {
                margin: 0 !important;
              }
        - type: horizontal-stack
          cards:
            - type: markdown
              content: "**WZ Schiebetür**"
              card_mod:
                style: |
                  ha-card {
                    background: transparent !important;
                    border-radius: 0px !important;
                    padding: 0 !important;
                    margin: 0 !important;
                    box-shadow: none !important;
                    border: none !important;
                    height: 50px !important;
                    width: 170px !important;
                    display: flex !important;
                    align-items: center !important;
                  }
                  ha-markdown {
                    font-size: 18px !important;
                    padding: 0 10px !important;
                    white-space: nowrap !important;
                  }
                  ha-markdown p {
                    margin: 0 !important;
                  }
            - type: custom:button-card
              color_type: blank-card
              styles:
                card:
                  - width: 50px
                  - height: 50px
                  - background: transparent
                  - box-shadow: none
                  - margin-right: "-3px"
                  - margin-top: 0px
            - type: custom:button-card
              entity: switch.shellyplusplugs_64b7080e02e0_switch_0
              show_name: false
              tap_action:
                action: toggle
              show_entity_picture: true
              state:
                - value: "on"
                  entity_picture: /local/Bilder/Licht an1.png
                - value: "off"
                  entity_picture: /local/Bilder/Licht aus.png
              styles:
                card:
                  - width: 50px
                  - height: 50px
                  - border-radius: 4px
                  - background: transparent
                  - box-shadow: none
                  - margin-right: "-3px"
                  - margin-top: 0px
                entity_picture:
                  - width: 50px
                  - height: 50px
            - type: custom:button-card
              entity: switch.shellyplusplugs_64b7080e02e0_switch_0
              show_name: false
              tap_action:
                action: toggle
              show_entity_picture: true
              state:
                - value: "on"
                  entity_picture: /local/Bilder/KlimaAN.png
                - value: "off"
                  entity_picture: /local/Bilder/KlimaAUS.png
              styles:
                card:
                  - width: 50px
                  - height: 50px
                  - border-radius: 4px
                  - background: transparent
                  - box-shadow: none
                  - margin-right: "-3px"
                  - margin-top: 0px
                entity_picture:
                  - width: 50px
                  - height: 50px
            - type: custom:button-card
              entity: switch.shellyplusplugs_64b7080e02e0_switch_0
              show_name: false
              tap_action:
                action: toggle
              show_entity_picture: true
              state:
                - value: "on"
                  entity_picture: /local/Bilder/Rollladen unten.png
                - value: "off"
                  entity_picture: /local/Bilder/Rollladen oben.png
              styles:
                card:
                  - width: 50px
                  - height: 50px
                  - border-radius: 4px
                  - background: transparent
                  - box-shadow: none
                  - margin-right: "-3px"
                  - margin-top: 0px
                entity_picture:
                  - width: 50px
                  - height: 50px
            - type: custom:button-card
              entity: switch.shellyplusplugs_64b7080e02e0_switch_0
              show_name: false
              tap_action:
                action: toggle
              show_entity_picture: true
              state:
                - value: "on"
                  entity_picture: /local/Bilder/Fenster offen1.png
                - value: "off"
                  entity_picture: /local/Bilder/Fenster geschlossen.png
              styles:
                card:
                  - width: 50px
                  - height: 50px
                  - border-radius: 4px
                  - background: transparent
                  - box-shadow: none
                  - margin-top: 0px
                  - margin-right: 7px
                entity_picture:
                  - width: 50px
                  - height: 50px
          card_mod:
            style: |
              ha-card {
                height: 65px !important;
                width: 400px !important;
                display: flex !important;
                align-items: center !important;
                background: transparent !important;
                box-shadow: none !important;
                padding: 0 5px !important;
                margin: 0 !important;
              }
              :host {
                margin: 0 !important;
              }
        - type: horizontal-stack
          cards:
            - type: markdown
              content: "**Küche**"
              card_mod:
                style: |
                  ha-card {
                    background: transparent !important;
                    border-radius: 0px !important;
                    padding: 0 !important;
                    margin: 0 !important;
                    box-shadow: none !important;
                    border: none !important;
                    height: 50px !important;
                    width: 140px !important;
                    display: flex !important;
                    align-items: center !important;
                  }
                  ha-markdown {
                    font-size: 18px !important;
                    padding: 0 10px !important;
                    white-space: nowrap !important;
                  }
                  ha-markdown p {
                    margin: 0 !important;
                  }
            - type: custom:button-card
              color_type: blank-card
              styles:
                card:
                  - width: 50px
                  - height: 50px
                  - background: transparent
                  - box-shadow: none
                  - margin-right: "-3px"
                  - margin-top: 0px
            - type: custom:button-card
              color_type: blank-card
              styles:
                card:
                  - width: 50px
                  - height: 50px
                  - background: transparent
                  - box-shadow: none
                  - margin-right: "-3px"
                  - margin-top: 0px
            - type: custom:button-card
              entity: switch.shellyplusplugs_64b7080e02e0_switch_0
              show_name: false
              tap_action:
                action: toggle
              show_entity_picture: true
              state:
                - value: "on"
                  entity_picture: /local/Bilder/Licht an1.png
                - value: "off"
                  entity_picture: /local/Bilder/Licht aus.png
              styles:
                card:
                  - width: 50px
                  - height: 50px
                  - border-radius: 4px
                  - background: transparent
                  - box-shadow: none
                  - margin-right: "-3px"
                  - margin-top: 0px
                entity_picture:
                  - width: 50px
                  - height: 50px
            - type: custom:button-card
              entity: switch.shellyplusplugs_64b7080e02e0_switch_0
              show_name: false
              tap_action:
                action: toggle
              show_entity_picture: true
              state:
                - value: "on"
                  entity_picture: /local/Bilder/Rollladen unten.png
                - value: "off"
                  entity_picture: /local/Bilder/Rollladen oben.png
              styles:
                card:
                  - width: 50px
                  - height: 50px
                  - border-radius: 4px
                  - background: transparent
                  - box-shadow: none
                  - margin-right: "-3px"
                  - margin-top: 0px
                entity_picture:
                  - width: 50px
                  - height: 50px
            - type: custom:button-card
              entity: switch.shellyplusplugs_64b7080e02e0_switch_0
              show_name: false
              tap_action:
                action: toggle
              show_entity_picture: true
              state:
                - value: "on"
                  entity_picture: /local/Bilder/Fenster offen1.png
                - value: "off"
                  entity_picture: /local/Bilder/Fenster geschlossen.png
              styles:
                card:
                  - width: 50px
                  - height: 50px
                  - border-radius: 4px
                  - background: transparent
                  - box-shadow: none
                  - margin-top: 0px
                  - margin-right: 7px
                entity_picture:
                  - width: 50px
                  - height: 50px
          card_mod:
            style: |
              ha-card {
                height: 65px !important;
                width: 400px !important;
                display: flex !important;
                align-items: center !important;
                background: transparent !important;
                box-shadow: none !important;
                padding: 0 5px !important;
                margin: 0 !important;
              }
              :host {
                margin: 0 !important;
              }
        - type: horizontal-stack
          cards:
            - type: markdown
              content: "**Gäste WC**"
              card_mod:
                style: |
                  ha-card {
                    background: transparent !important;
                    border-radius: 0px !important;
                    padding: 0 !important;
                    margin: 0 !important;
                    box-shadow: none !important;
                    border: none !important;
                    height: 50px !important;
                    width: 140px !important;
                    display: flex !important;
                    align-items: center !important;
                  }
                  ha-markdown {
                    font-size: 18px !important;
                    padding: 0 10px !important;
                    white-space: nowrap !important;
                  }
                  ha-markdown p {
                    margin: 0 !important;
                  }
            - type: custom:button-card
              color_type: blank-card
              styles:
                card:
                  - width: 50px
                  - height: 50px
                  - background: transparent
                  - box-shadow: none
                  - margin-right: "-3px"
                  - margin-top: 0px
            - type: custom:button-card
              color_type: blank-card
              styles:
                card:
                  - width: 50px
                  - height: 50px
                  - background: transparent
                  - box-shadow: none
                  - margin-right: "-3px"
                  - margin-top: 0px
            - type: custom:button-card
              color_type: blank-card
              styles:
                card:
                  - width: 50px
                  - height: 50px
                  - background: transparent
                  - box-shadow: none
                  - margin-right: "-3px"
                  - margin-top: 0px
            - type: custom:button-card
              entity: switch.shellyplusplugs_64b7080e02e0_switch_0
              show_name: false
              tap_action:
                action: toggle
              show_entity_picture: true
              state:
                - value: "on"
                  entity_picture: /local/Bilder/Rollladen unten.png
                - value: "off"
                  entity_picture: /local/Bilder/Rollladen oben.png
              styles:
                card:
                  - width: 50px
                  - height: 50px
                  - border-radius: 4px
                  - background: transparent
                  - box-shadow: none
                  - margin-right: "-3px"
                  - margin-top: 0px
                entity_picture:
                  - width: 50px
                  - height: 50px
            - type: custom:button-card
              entity: switch.shellyplusplugs_64b7080e02e0_switch_0
              show_name: false
              tap_action:
                action: toggle
              show_entity_picture: true
              state:
                - value: "on"
                  entity_picture: /local/Bilder/Fenster offen1.png
                - value: "off"
                  entity_picture: /local/Bilder/Fenster geschlossen.png
              styles:
                card:
                  - width: 50px
                  - height: 50px
                  - border-radius: 4px
                  - background: transparent
                  - box-shadow: none
                  - margin-top: 0px
                  - margin-right: 7px
                entity_picture:
                  - width: 50px
                  - height: 50px
          card_mod:
            style: |
              ha-card {
                height: 65px !important;
                width: 400px !important;
                display: flex !important;
                align-items: center !important;
                background: transparent !important;
                box-shadow: none !important;
                padding: 0 5px !important;
                margin: 0 !important;
              }
              :host {
                margin: 0 !important;
              }
        - type: horizontal-stack
          cards:
            - type: markdown
              content: "**Garten**"
              card_mod:
                style: |
                  ha-card {
                    background: transparent !important;
                    border-radius: 0px !important;
                    padding: 0 !important;
                    margin: 0 !important;
                    box-shadow: none !important;
                    border: none !important;
                    height: 50px !important;
                    width: 140px !important;
                    display: flex !important;
                    align-items: center !important;
                  }
                  ha-markdown {
                    font-size: 18px !important;
                    padding: 0 10px !important;
                    white-space: nowrap !important;
                  }
                  ha-markdown p {
                    margin: 0 !important;
                  }
            - type: custom:button-card
              color_type: blank-card
              styles:
                card:
                  - width: 50px
                  - height: 50px
                  - background: transparent
                  - box-shadow: none
                  - margin-right: "-3px"
                  - margin-top: 0px
            - type: custom:button-card
              color_type: blank-card
              styles:
                card:
                  - width: 50px
                  - height: 50px
                  - background: transparent
                  - box-shadow: none
                  - margin-right: "-3px"
                  - margin-top: 0px
            - type: custom:button-card
              entity: switch.shellyplusplugs_64b7080e02e0_switch_0
              show_name: false
              tap_action:
                action: toggle
              show_entity_picture: true
              state:
                - value: "on"
                  entity_picture: /local/Bilder/pool1.png
                - value: "off"
                  entity_picture: /local/Bilder/pool1.png
              styles:
                card:
                  - width: 50px
                  - height: 50px
                  - border-radius: 4px
                  - background: transparent
                  - box-shadow: none
                  - margin-right: "-3px"
                  - margin-top: 0px
                entity_picture:
                  - width: 50px
                  - height: 50px
            - type: custom:button-card
              entity: switch.shellyplusplugs_64b7080e02e0_switch_0
              show_name: false
              tap_action:
                action: toggle
              show_entity_picture: true
              state:
                - value: "on"
                  entity_picture: /local/Bilder/BWM richtig.png
                - value: "off"
                  entity_picture: /local/Bilder/BWM falsch.png
              styles:
                card:
                  - width: 50px
                  - height: 50px
                  - border-radius: 4px
                  - background: transparent
                  - box-shadow: none
                  - margin-right: "-3px"
                  - margin-top: 0px
                entity_picture:
                  - width: 50px
                  - height: 50px
            - type: custom:button-card
              entity: switch.shellyplusplugs_64b7080e02e0_switch_0
              show_name: false
              tap_action:
                action: toggle
              show_entity_picture: true
              state:
                - value: "on"
                  entity_picture: /local/Bilder/Tur offen.png
                - value: "off"
                  entity_picture: /local/Bilder/Tur geschlossen.png
              styles:
                card:
                  - width: 50px
                  - height: 50px
                  - border-radius: 4px
                  - background: transparent
                  - box-shadow: none
                  - margin-top: 0px
                  - margin-right: 7px
                entity_picture:
                  - width: 50px
                  - height: 50px
          card_mod:
            style: |
              ha-card {
                height: 65px !important;
                width: 400px !important;
                display: flex !important;
                align-items: center !important;
                background: transparent !important;
                box-shadow: none !important;
                padding: 0 5px !important;
                margin: 0 !important;
              }
              :host {
                margin: 0 !important;
              }
  - type: custom:mod-card
    card_mod:
      style: |
        ha-card {
          background: #202020 !important;
          padding: 0px !important;
          border-radius: 0px !important;
          box-shadow: none !important;
          height: 158px !important;
          width: 410px !important;
        }
    card:
      type: vertical-stack
      card_mod:
        style: |
          ha-card {
            gap: 0px !important;
          }
          #root {
            margin: 0px !important;
          }
          #root > * {
            margin: 0px !important;
          }
      cards:
        - type: markdown
          content: "**Untergeschoss**"
          card_mod:
            style: |
              ha-card {
                background: transparent !important;
                box-shadow: none !important;
                border-radius: 0px !important;
                border: none !important;
                padding: 0 !important;
                margin: 0 !important;
                height: 35px !important;
                width: 410px !important;
                overflow: hidden !important;
              }
              ha-markdown {
                padding: 0 10px !important;
                height: 35px !important;
                display: flex !important;
                align-items: center !important;
                font-size: 28px !important;
                overflow: hidden !important;
              }
              ha-markdown p {
                margin: 0 !important;
                text-align: left !important;
              }
              ha-markdown-element {
                width: 100% !important;
              }
        - type: horizontal-stack
          cards:
            - type: markdown
              content: "**Zimmer Anna**"
              card_mod:
                style: |
                  ha-card {
                    background: transparent !important;
                    border-radius: 0px !important;
                    padding: 0 !important;
                    margin: 0 !important;
                    box-shadow: none !important;
                    border: none !important;
                    height: 50px !important;
                    width: 140px !important;
                    display: flex !important;
                    align-items: center !important;
                    }
                  ha-markdown {
                    font-size: 18px !important;
                    padding: 0 10px !important;
                    white-space: nowrap !important;            
                    }
                  ha-markdown p {
                    margin: 0 !important;
                  }
                  :host {
                    margin: 0 !important;
                  }
            - type: custom:button-card
              entity: switch.shellyplusplugs_64b7080e02e0_switch_0
              show_name: false
              tap_action:
                action: toggle
              show_entity_picture: true
              state:
                - value: "on"
                  entity_picture: /local/Bilder/Licht an1.png
                - value: "off"
                  entity_picture: /local/Bilder/Licht aus.png
              styles:
                card:
                  - width: 50px
                  - height: 50px
                  - border-radius: 4px
                  - background: transparent
                  - box-shadow: none
                  - margin-right: "-3px"
                  - margin-top: 0px
                entity_picture:
                  - width: 50px
                  - height: 50px
            - type: custom:button-card
              entity: switch.shellyplusplugs_64b7080e02e0_switch_0
              show_name: false
              tap_action:
                action: toggle
              show_entity_picture: true
              state:
                - value: "on"
                  entity_picture: /local/Bilder/Entfeuchten AN.png
                - value: "off"
                  entity_picture: /local/Bilder/Entfeuchten AUS.png
              styles:
                card:
                  - width: 50px
                  - height: 50px
                  - border-radius: 4px
                  - background: transparent
                  - box-shadow: none
                  - margin-right: "-3px"
                  - margin-top: 0px
                entity_picture:
                  - width: 50px
                  - height: 50px
            - type: custom:button-card
              entity: switch.shellyplusplugs_64b7080e02e0_switch_0
              show_name: false
              tap_action:
                action: toggle
              show_entity_picture: true
              state:
                - value: "on"
                  entity_picture: /local/Bilder/KlimaAN.png
                - value: "off"
                  entity_picture: /local/Bilder/KlimaAUS.png
              styles:
                card:
                  - width: 50px
                  - height: 50px
                  - border-radius: 4px
                  - background: transparent
                  - box-shadow: none
                  - margin-right: "-3px"
                  - margin-top: 0px
                entity_picture:
                  - width: 50px
                  - height: 50px
            - type: custom:button-card
              entity: switch.shellyplusplugs_64b7080e02e0_switch_0
              show_name: false
              tap_action:
                action: toggle
              show_entity_picture: true
              state:
                - value: "on"
                  entity_picture: /local/Bilder/Rollladen unten.png
                - value: "off"
                  entity_picture: /local/Bilder/Rollladen oben.png
              styles:
                card:
                  - width: 50px
                  - height: 50px
                  - border-radius: 4px
                  - background: transparent
                  - box-shadow: none
                  - margin-right: "-3px"
                  - margin-top: 0px
                entity_picture:
                  - width: 50px
                  - height: 50px
            - type: custom:button-card
              entity: switch.shellyplusplugs_64b7080e02e0_switch_0
              show_name: false
              tap_action:
                action: toggle
              show_entity_picture: true
              state:
                - value: "on"
                  entity_picture: /local/Bilder/Fenster offen1.png
                - value: "off"
                  entity_picture: /local/Bilder/Fenster geschlossen.png
              styles:
                card:
                  - width: 50px
                  - height: 50px
                  - border-radius: 4px
                  - background: transparent
                  - box-shadow: none
                  - margin-top: 0px
                  - margin-right: 7px
                entity_picture:
                  - width: 50px
                  - height: 50px
          card_mod:
            style: |
              ha-card {
                height: 65px !important;
                width: 400px !important;
                display: flex !important;
                align-items: center !important;
                background: transparent !important;
                box-shadow: none !important;
                padding: 0 5px !important;
                margin: 0 !important;
              }
              :host {
                margin: 0 !important;
              }
        - type: horizontal-stack
          cards:
            - type: markdown
              content: "**HWR/Schrank**"
              card_mod:
                style: |
                  ha-card {
                    background: transparent !important;
                    border-radius: 0px !important;
                    padding: 0 !important;
                    margin: 0 !important;
                    box-shadow: none !important;
                    border: none !important;
                    height: 50px !important;
                    width: 140px !important;
                    display: flex !important;
                    align-items: center !important;
                  }
                  ha-markdown {
                    font-size: 18px !important;
                    padding: 0 10px !important;
                    white-space: nowrap !important;
                  }
                  ha-markdown p {
                    margin: 0 !important;
                  }
            - type: custom:button-card
              color_type: blank-card
              styles:
                card:
                  - width: 50px
                  - height: 50px
                  - background: transparent
                  - box-shadow: none
                  - margin-right: "-3px"
                  - margin-top: 0px
            - type: custom:button-card
              color_type: blank-card
              styles:
                card:
                  - width: 50px
                  - height: 50px
                  - background: transparent
                  - box-shadow: none
                  - margin-right: "-3px"
                  - margin-top: 0px
            - type: custom:button-card
              entity: switch.shellyplusplugs_64b7080e02e0_switch_0
              show_name: false
              tap_action:
                action: toggle
              show_entity_picture: true
              state:
                - value: "on"
                  entity_picture: /local/Bilder/Waschmaschine FERTIG.png
                - value: "off"
                  entity_picture: /local/Bilder/Waschmaschine AUS.png
              styles:
                card:
                  - width: 50px
                  - height: 50px
                  - border-radius: 4px
                  - background: transparent
                  - box-shadow: none
                  - margin-right: "-3px"
                  - margin-top: 0px
                entity_picture:
                  - width: 50px
                  - height: 50px
            - type: custom:button-card
              entity: switch.shellyplusplugs_64b7080e02e0_switch_0
              show_name: false
              tap_action:
                action: toggle
              show_entity_picture: true
              state:
                - value: "on"
                  entity_picture: /local/Bilder/Schrank AN.png
                - value: "off"
                  entity_picture: /local/Bilder/Schrank AUS.png
              styles:
                card:
                  - width: 50px
                  - height: 50px
                  - border-radius: 4px
                  - background: transparent
                  - box-shadow: none
                  - margin-right: "-3px"
                  - margin-top: 0px
                entity_picture:
                  - width: 50px
                  - height: 50px
            - type: custom:button-card
              entity: switch.shellyplusplugs_64b7080e02e0_switch_0
              show_name: false
              tap_action:
                action: toggle
              show_entity_picture: true
              state:
                - value: "on"
                  entity_picture: /local/Bilder/Entfeuchten AN.png
                - value: "off"
                  entity_picture: /local/Bilder/Entfeuchten AUS.png
              styles:
                card:
                  - width: 50px
                  - height: 50px
                  - border-radius: 4px
                  - background: transparent
                  - box-shadow: none
                  - margin-top: 0px
                  - margin-right: 7px
                entity_picture:
                  - width: 50px
                  - height: 50px
          card_mod:
            style: |
              ha-card {
                height: 65px !important;
                width: 400px !important;
                display: flex !important;
                align-items: center !important;
                background: transparent !important;
                box-shadow: none !important;
                padding: 0 5px !important;
                margin: 0 !important;
              }
              :host {
                margin: 0 !important;
              }

Als nächsten mache ich mich an die Uhr mit Sonnen Auf- und Untergang sowie der Ampel für neue Statusmeldungen.

1 „Gefällt mir“

Zeitfenster ist fertig. Hatte extreme Schwierigkeiten die einzelnen Kachel zu platzieren, da immer wieder Abstände hinzugefügt wurden.

Hier der Code:

type: custom:mod-card
card_mod:
  style: |
    ha-card {
      background: #202020 !important;
      padding: 0px !important;
      border-radius: 0px !important;
      border-width: 0px !important;
      box-shadow: none !important;
      height: 160px !important;
      width: 410px !important;
    }
card:
  type: vertical-stack
  card_mod:
    style: |
      ha-card {
        gap: 0px !important;
        padding: 0px !important;
      }
      ha-card > * {
        margin: 0px !important;
      }
      #root {
        margin: 0px !important;
        gap: 0px !important;
        display: flex !important;
        flex-direction: column !important;
      }
      #root > hui-horizontal-stack-card {
        margin-top: -8px !important;
      }
      #root > hui-markdown-card {
        margin-bottom: -8px !important;
      }
  cards:
    - type: markdown
      content: "**Zeit**"
      card_mod:
        style: |
          :host {
            display: block !important;
            margin: 0 !important;
          }
          ha-card {
            background: transparent !important;
            box-shadow: none !important;
            border-radius: 0px !important;
            border: none !important;
            padding: 0 !important;
            margin: 0 !important;
            height: 35px !important;
            width: 410px !important;
            overflow: hidden !important;
          }
          ha-markdown {
            padding: 0 10px !important;
            height: 35px !important;
            display: flex !important;
            align-items: center !important;
            font-size: 28px !important;
            overflow: hidden !important;
          }
          ha-markdown p {
            margin: 0 !important;
            text-align: left !important;
          }
    - type: horizontal-stack
      card_mod:
        style: |
          :host {
            display: block !important;
            margin: -8px 0 0 0 !important;
          }
          ha-card {
            gap: 0px !important;
            margin-top: -8px !important;
          }
          #root {
            gap: 0px !important;
          }
      cards:
        - type: vertical-stack
          cards:
            - type: markdown
              content: >-
                {{ state_attr('sun.sun', 'next_rising') | as_timestamp |
                timestamp_custom('%H:%M') }}
              card_mod:
                style: |
                  ha-card {
                    background: transparent !important;
                    box-shadow: none !important;
                    border-radius: 0px !important;
                    border: none !important;
                    padding: 0 !important;
                    margin: 0 !important;
                    margin-top: 10px !important;
                    height: 25px !important;
                    width: 100px !important;
                  }
                  ha-markdown {
                    font-size: 20px !important;
                    font-weight: normal !important;
                    color: white !important;
                    text-align: center !important;
                    line-height: 25px !important;
                    padding: 0 !important;
                    margin: 0 !important;
                  }
                  ha-markdown p {
                    margin: 0 !important;
                  }
            - type: picture
              image: /local/Bilder/Sonnenaufgang.png
              tap_action:
                action: none
              hold_action:
                action: none
              card_mod:
                style: |
                  ha-card {
                    background: transparent !important;
                    border: none !important;
                    border-radius: 0px !important;
                    box-shadow: none !important;
                    padding: 0 !important;
                    margin: 0 auto 0 auto !important;
                    height: 21px !important;
                    width: 55px !important;
                  }
                  img {
                    width: 55px !important;
                    height: 21px !important;
                    object-fit: contain !important;
                  }
          card_mod:
            style: |
              ha-card {
                background: transparent !important;
                box-shadow: none !important;
                padding: 0 !important;
                margin: 0 !important;
                height: 80px !important;
                width: 100px !important;
                max-width: 100px !important;
                min-width: 100px !important;
              }
              :host {
                width: 100px !important;
                max-width: 100px !important;
                min-width: 100px !important;
              }
        - type: markdown
          content: "{{ now().strftime('%H:%M') }}"
          card_mod:
            style: |
              ha-card {
                background: transparent !important;
                width: 210px !important;
                height: 80px !important;
                padding: 0 !important;
                margin: 0 !important;
                box-shadow: none !important;
                border-radius: 0px !important;
                border: none !important;
              }
              ha-markdown {
                font-size: 80px !important;
                font-weight: 400 !important;
                color: white !important;
                text-align: center !important;
                line-height: 80px !important;
                padding: 0 !important;
                margin: 0 !important;
              }
              ha-markdown p {
                font-size: 100px !important;
                color: black !important;
                margin: 0 !important;
                line-height: 80px !important;
              }
        - type: vertical-stack
          cards:
            - type: markdown
              content: >-
                {{ state_attr('sun.sun', 'next_setting') | as_timestamp |
                timestamp_custom('%H:%M') }}
              card_mod:
                style: |
                  ha-card {
                    background: transparent !important;
                    box-shadow: none !important;
                    border-radius: 0px !important;
                    border: none !important;
                    padding: 0 !important;
                    margin: 0 !important;
                    margin-top: 10px !important;
                    height: 25px !important;
                    width: 100px !important;
                  }
                  ha-markdown {
                    font-size: 20px !important;
                    font-weight: normal !important;
                    color: white !important;
                    text-align: center !important;
                    line-height: 25px !important;
                    padding: 0 !important;
                    margin: 0 !important;
                  }
                  ha-markdown p {
                    margin: 0 !important;
                  }
            - type: picture
              image: /local/Bilder/Sonnenuntergang.png
              tap_action:
                action: none
              hold_action:
                action: none
              card_mod:
                style: |
                  ha-card {
                    background: transparent !important;
                    border: none !important;
                    border-radius: 0px !important;
                    box-shadow: none !important;
                    padding: 0 !important;
                    margin: 0 auto 0 auto !important;
                    height: 21px !important;
                    width: 55px !important;
                  }
                  img {
                    width: 55px !important;
                    height: 21px !important;
                    object-fit: contain !important;
                  }
          card_mod:
            style: |
              ha-card {
                background: transparent !important;
                box-shadow: none !important;
                padding: 0 !important;
                margin: 0 !important;
                height: 80px !important;
                width: 100px !important;
                max-width: 100px !important;
                min-width: 100px !important;
              }
              :host {
                width: 100px !important;
                max-width: 100px !important;
                min-width: 100px !important;
              }
    - type: horizontal-stack
      card_mod:
        style: |
          :host {
            display: block !important;
            margin: -8px 0 0 0 !important;
          }
          ha-card {
            gap: 0px !important;
            margin-top: -8px !important;
          }
          #root {
            gap: 0px !important;
          }
      cards:
        - type: custom:button-card
          entity: switch.shellyplusplugs_64b7080e02e0_switch_0
          show_state: false
          show_name: false
          show_icon: false
          tap_action:
            action: none
          hold_action:
            action: none
          state:
            - value: "off"
              styles:
                card:
                  - background-image: url("/local/Bilder/status_off.png")
                  - background-size: 49px 21px
                  - background-repeat: no-repeat
                  - background-position: center
            - value: "on"
              styles:
                card:
                  - background-image: url("/local/Bilder/Status_on.png")
                  - background-size: 49px 21px
                  - background-repeat: no-repeat
                  - background-position: center
          styles:
            card:
              - background: transparent
              - width: 100px
              - min-width: 100px
              - max-width: 100px
              - height: 45px
              - padding: 0
              - margin: 0
              - box-shadow: none
              - border-radius: 0px
              - border: none
        - type: markdown
          content: >
            {% set days = {'Monday': 'Montag', 'Tuesday': 'Dienstag',
            'Wednesday': 'Mittwoch', 'Thursday': 'Donnerstag', 'Friday':
            'Freitag', 'Saturday': 'Samstag', 'Sunday': 'Sonntag'} %}

            {% set months = {'January': 'Januar', 'February': 'Februar',
            'March': 'März', 'April': 'April', 'May': 'Mai', 'June': 'Juni',
            'July': 'Juli', 'August': 'August', 'September': 'September',
            'October': 'Oktober', 'November': 'November', 'December':
            'Dezember'} %}

            {{ days[now().strftime('%A')] }}, {{ now().strftime('%d') }}. {{
            months[now().strftime('%B')] }} {{ now().strftime('%Y') }}
          card_mod:
            style: |
              ha-card {
                background: transparent !important;
                width: 210px !important;
                height: 45px !important;
                padding: 0 !important;
                margin: 0 !important;
                box-shadow: none !important;
                border-radius: 0px !important;
                border: none !important;
              }
              ha-markdown {
                font-size: 14px !important;
                font-weight: normal !important;
                color: white !important;
                text-align: center !important;
                line-height: 45px !important;
                padding: 0 !important;
                margin: 0 !important;
              }
              ha-markdown p {
                margin: 0 !important;
                line-height: 45px !important;
              }
        - type: custom:button-card
          color_type: blank-card
          styles:
            card:
              - background: transparent
              - width: 100px
              - height: 45px
              - padding: 0
              - margin: 0
              - box-shadow: none
              - border-radius: 0px