Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expander dont use Card_mod #385

Open
duczz opened this issue Jan 7, 2025 · 0 comments
Open

Expander dont use Card_mod #385

duczz opened this issue Jan 7, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@duczz
Copy link

duczz commented Jan 7, 2025

Expander nutzt scheinbar die card_mods nicht mehr. - Entfernt man den Expander Abschnitt (dick markiert) greifen die Card_mods sofort wieder, scheint also am Expander zu liegen.

Aktuelle Version von Expander & Card_mod
HomeAsssitant 2025.1

Code:

type: custom:expander-card
gap: 0.0em
expanded-gap: 0.6em
padding: 0.0em
clear: false
title: Erweiterte Einstellungen
overlay-margin: 0.0em
child-padding: 0.0em
child-margin-top: 0.0em
button-background: transparent
expander-card-background: transparent
expander-card-background-expanded: "#2a2a2a"
header-color: var(--primary-text-color,#fff)
arrow-color: "var(--paper-item-icon-color, #aaa)"
expander-card-display: block
title-card-clickable: false
title-card-button-overlay: false
card_mod:
  style: |
    ha-card .header {
      height: 43px;
    }
cards:
  - type: entities
    entities:
      - entity: input_boolean.heizperiode
        name: Heizperiode
        icon: mdi:thermostat-box-auto
        show_state: false
        state_color: true
        tap_action:
          action: none
        type: custom:multiple-entity-row
        entities:
          - entity: automation.advanced_heating_control_wohnzimmer
            name: Automatik
            toggle: true
            styles:
              width: 85px
          - entity: input_boolean.heizperiode
            name: Heizperiode
            toggle: true
        card_mod:
          style:
            hui-generic-entity-row .entities-row div.entity:
              ha-entity-toggle:
                $: |
                  ha-switch {
                    padding-top: 5px !important;
                    padding-bottom: 10px !important;
                  }
      - type: custom:mushroom-select-card
        entity: input_select.advanced_heating_control_scheduler
        name: Scheduler
        icon: mdi:calendar-month-outline
        layout: horizontal
        secondary_info: none
        card_mod:
          style: |
            ha-card {
              --ha-card-border-width: 0px;
              --card-primary-font-weight: normal;
              padding: 0px !important;
            }
            mushroom-shape-icon {
              --shape-color: none !important;
              --icon-color: #44739e !important;
            }
            ha-state-icon {
              width: 36px;
            }
      - entity: input_number.advanced_heating_control_wohnzimmer_comfort_temperatur
        name: Komfort
        card_mod:
          style: |
            hui-generic-entity-row {
              padding-top: 5px;
            }
      - entity: input_number.advanced_heating_control_wohnzimmer_eco_temperatur
        name: Eco
        card_mod:
          style: |
            hui-generic-entity-row {
              padding-top: 5px;
            }
      - entity: sun.sun
        name: Modus
        icon: mdi:auto-mode
        show_state: false
        tap_action:
          action: none
        type: custom:multiple-entity-row
        entities:
          - entity: input_boolean.advanced_heating_control_wohnzimmer_guest_mode
            name: Gast
            toggle: true
            styles:
              width: 100px
          - entity: input_boolean.advanced_heating_control_wohnzimmer_party_mode
            name: Party
            toggle: true
        card_mod:
          style:
            hui-generic-entity-row .entities-row div.entity:
              ha-entity-toggle:
                $: |
                  ha-switch {
                    padding-top: 5px !important;
                    padding-bottom: 15px !important;
                  }
      - entity: climate.wohnzimmer_comet_dect
        name: Comet DECT *Manuell*
    state_color: true
    show_header_toggle: false
    card_mod:
      style: |
        .card-content div {
          padding: 0px;
        }
        .card-content {
          padding: 8px !important;
        }
        div {
          margin: 0px !important;
        }

@duczz duczz added the bug Something isn't working label Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant