views:
  - type: sections
    max_columns: 3
    icon: mdi:heating-coil
    path: heizung
    sections:
      - type: grid
        cards:
          - type: heading
            heading: Temperaturen
            heading_style: subtitle
          - type: custom:apexcharts-card
            header:
              show: true
              show_states: true
              colorize_states: true
            apex_config:
              legend:
                show: false
              chart:
                height: 120
              grid:
                padding:
                  top: 0
                  right: 8
                  left: 8
                  bottom: 0
            all_series_config:
              stroke_width: 1.5
            series:
              - entity: sensor.wohnzimmer_wandthermostat_temperatur
                name: Wohnzimmer
              - entity: sensor.badezimmer_wandthermostat_temperatur
                name: Badezimmer
              - entity: sensor.karell_wandthermostat_temperatur
                name: Karell
              - entity: sensor.martha_wandthermostat_temperatur
                name: Martha
          - type: entities
            show_header_toggle: false
            state_color: true
            entities:
              - entity: sensor.heizung_vaillant_aurocompact_outsidetemp_temp
                name: Außentemperatur
              - type: custom:fold-entity-row
                head:
                  type: custom:template-entity-row
                  name: >
                    FBH (VL {{
                    states('sensor.heizung_vaillant_aurocompact_hc_vorlauftemperatur')
                    }} > {{
                    states('sensor.heizung_vaillant_aurocompact_hc_vorlauftemperatur_soll')
                    }} {{
                    state_attr('sensor.heizung_vaillant_aurocompact_hc_vorlauftemperatur',
                    'unit_of_measurement') }} | RL {{
                    states('sensor.heizung_vaillant_aurocompact_hc_rucklauftemperatur')
                    }} {{
                    state_attr('sensor.heizung_vaillant_aurocompact_hc_rucklauftemperatur',
                    'unit_of_measurement') }})
                  icon: mdi:home-thermometer
                items:
                  - entity: sensor.heizung_vaillant_aurocompact_hc_vorlauftemperatur
                  - entity: >-
                      sensor.heizung_vaillant_aurocompact_hc_vorlauftemperatur_soll
                  - entity: sensor.heizung_vaillant_aurocompact_hc_rucklauftemperatur
              - type: custom:fold-entity-row
                head:
                  type: custom:template-entity-row
                  name: >
                    Warmwasser ({{
                    states('sensor.heizung_vaillant_aurocompact_warmwasser_ist_temperatur')
                    }} {{
                    state_attr('sensor.heizung_vaillant_aurocompact_warmwasser_ist_temperatur',
                    'unit_of_measurement') }})
                  icon: mdi:water-boiler
                items:
                  - entity: >-
                      sensor.heizung_vaillant_aurocompact_warmwasser_ist_temperatur
                    name:
                      type: entity
                  - entity: >-
                      sensor.heizung_vaillant_aurocompact_ww_speicher_solltemperatur
                  - entity: >-
                      sensor.heizung_vaillant_aurocompact_warmwasser_ist_temperatur
                    name:
                      type: entity
              - type: custom:fold-entity-row
                head:
                  type: custom:template-entity-row
                  name: >
                    Solarthermie ({{
                    states('sensor.heizung_vaillant_aurocompact_ww_speicher_unten')
                    }} {{
                    state_attr('sensor.heizung_vaillant_aurocompact_ww_speicher_unten',
                    'unit_of_measurement') }})
                  icon: mdi:sun-thermometer
                items:
                  - entity: sensor.heizung_vaillant_aurocompact_ww_speicher_unten
                  - entity: >-
                      sensor.heizung_vaillant_aurocompact_solarkollektor_temperatur
                  - entity: >-
                      sensor.heizung_vaillant_aurocompact_solar_rucklauf_temperatur
          - type: heading
            icon: ""
            heading: Verbräuche
            heading_style: subtitle
          - type: custom:apexcharts-card
            header:
              show: true
              show_states: true
              colorize_states: true
            apex_config:
              legend:
                show: false
              chart:
                height: 120
              grid:
                padding:
                  top: 0
                  right: 8
                  left: 8
                  bottom: 0
            all_series_config:
              stroke_width: 1.5
            series:
              - entity: sensor.gas_smartmeterreader_gasverbrauch
                name: Gasverbrauch
                float_precision: 2
                show:
                  in_chart: false
                  in_header: true
                  legend_value: true
              - entity: sensor.gas_smartmeterreader_gasverbrauch
                name: Letzte Stunde
                float_precision: 2
                type: line
                statistics:
                  type: change
                  period: hour
                show:
                  in_chart: true
                  in_header: true
                  legend_value: true
              - entity: sensor.gas_smartmeterreader_gasverbrauch
                name: Heute Gesamt
                float_precision: 2
                type: line
                statistics:
                  type: change
                  period: day
                show:
                  in_chart: false
                  in_header: true
                  legend_value: true
          - type: custom:apexcharts-card
            header:
              show: true
              show_states: true
              colorize_states: true
            graph_span: 6h
            apex_config:
              legend:
                show: false
              chart:
                height: 120
              grid:
                padding:
                  top: 0
                  right: 8
                  left: 8
                  bottom: 0
            all_series_config:
              stroke_width: 1.5
            series:
              - entity: sensor.heizung_power
                name: Leistung (Aktuell)
                float_precision: 2
                show:
                  in_chart: true
                  in_header: true
                  legend_value: true
              - entity: sensor.heizung_power
                name: Min (Heute)
                float_precision: 2
                type: line
                statistics:
                  type: min
                  period: day
                show:
                  in_chart: false
                  in_header: true
                  legend_value: true
              - entity: sensor.heizung_power
                name: Max (Heute)
                float_precision: 2
                type: line
                statistics:
                  type: max
                  period: day
                show:
                  in_chart: false
                  in_header: true
                  legend_value: true
              - entity: sensor.heizung_energy
                name: Verbrauch (Heute)
                float_precision: 2
                type: line
                statistics:
                  type: change
                  period: day
                show:
                  in_chart: false
                  in_header: true
                  legend_value: true
        column_span: 1
      - type: grid
        cards:
          - type: heading
            heading_style: subtitle
            heading: Thermostate
          - type: horizontal-stack
            cards:
              - type: thermostat
                entity: climate.wohnzimmer_wandthermostat
                name:
                  type: area
                show_current_as_primary: true
                features:
                  - type: climate-hvac-modes
              - type: thermostat
                name:
                  type: area
                show_current_as_primary: true
                features:
                  - type: climate-hvac-modes
                entity: climate.badezimmer_wandthermostat
          - type: horizontal-stack
            cards:
              - type: thermostat
                name:
                  type: area
                show_current_as_primary: true
                features:
                  - type: climate-hvac-modes
                entity: climate.martha_wandthermostat
              - type: thermostat
                name:
                  type: area
                show_current_as_primary: true
                features:
                  - type: climate-hvac-modes
                entity: climate.karell_wandthermostat
          - type: heading
            icon: ""
            heading: Taupunkt Spreizung
            heading_style: subtitle
          - type: custom:apexcharts-card
            header:
              show: true
              show_states: true
              colorize_states: true
            apex_config:
              legend:
                show: false
              chart:
                height: 120
              grid:
                padding:
                  top: 0
                  right: 8
                  left: 8
                  bottom: 0
            all_series_config:
              stroke_width: 1.5
            series:
              - entity: sensor.wohnzimmer_wandthermostat_taupunkt_spreizung
                name: Wohnzimmer
              - entity: sensor.badezimmer_wandthermostat_taupunkt_spreizung
                name: Badezimmer
              - entity: sensor.karell_wandthermostat_taupunkt_spreizung
                name: Karell
              - entity: sensor.martha_wandthermostat_taupunkt_spreizung
                name: Martha
        column_span: 1
      - type: grid
        cards:
          - type: heading
            heading: Steuerung
            heading_style: subtitle
          - type: entities
            show_header_toggle: false
            state_color: true
            entities:
              - entity: select.heizung_vaillant_aurocompact_hc_modus
                name: Heizmodus
              - type: custom:fold-entity-row
                head:
                  type: custom:template-entity-row
                  name: >
                    HWC Ziel Temperatur ({{
                    states('sensor.heizung_vaillant_aurocompact_hwcactualtempdesired')
                    }} {{
                    state_attr('sensor.heizung_vaillant_aurocompact_hwcactualtempdesired',
                    'unit_of_measurement') }})
                  icon: mdi:thermometer
                items:
                  - entity: number.heizung_vaillant_aurocompact_hwc_ziel_temperatur
                    icon: mdi:thermometer-water
              - type: custom:fold-entity-row
                head:
                  type: custom:template-entity-row
                  name: >
                    Solltemperatur (Tag {{
                    states('number.heizung_vaillant_aurocompact_hc_raumtemperatur_tag')
                    }} {{
                    state_attr('number.heizung_vaillant_aurocompact_hc_raumtemperatur_tag',
                    'unit_of_measurement') }} | Nacht {{
                    states('number.heizung_vaillant_aurocompact_hc_raumtemperatur_nacht')
                    }} {{
                    state_attr('number.heizung_vaillant_aurocompact_hc_raumtemperatur_nacht',
                    'unit_of_measurement') }})
                  icon: mdi:thermometer
                items:
                  - entity: number.heizung_vaillant_aurocompact_hc_raumtemperatur_tag
                    name: Tag-Solltemperatur
                  - entity: >-
                      number.heizung_vaillant_aurocompact_hc_raumtemperatur_nacht
                    name: Nacht-Solltemperatur
              - type: section
                label: Status
              - entity: select.heizung_vaillant_aurocompact_hc_modus
                name: Heizkreis 1 – Modus
              - entity: sensor.heizung_vaillant_aurocompact_hwcopmode
                name: Warmwasser – Modus
              - entity: sensor.heizung_vaillant_aurocompact_hc_heizkurve
                name: Heizkurve
                icon: ""
                secondary_info: last-changed
              - type: divider
              - entity: sensor.heizung_vaillant_aurocompact_statuscirpump
                name: Warmwasser Ladepumpe
                secondary_info: last-changed
              - entity: sensor.heizung_vaillant_aurocompact_status01_pumpstate
                name: Heizkreispumpe
                secondary_info: last-changed
              - type: divider
              - entity: input_boolean.geschirrspuler_warmwasser
                name: Geschirrspüler an Warmwasser
          - type: heading
            heading: Wartung
            heading_style: subtitle
          - type: entities
            show_header_toggle: false
            state_color: true
            entities:
              - entity: input_datetime.heizung_letzte_wartung
                name: Heizung – letzte Wartung
              - entity: input_datetime.solarthermie_letzte_wartung
                name: Solarthermie – letzte Wartung
              - entity: input_datetime.pufferspeicher_letzte_wartung
                name: Pufferspeicher – letzte Wartung
      - type: grid
        cards:
          - type: heading
            heading: Notizen
            heading_style: subtitle
          - type: markdown
            content: >
              <details>

              <summary><strong>🔥 Heizungsanlage</strong></summary>


              ### Heizgerät

              - **Modell:** Vaillant AuroCompact VSC S 196/3-5 200 R3  

              - **Heizkurve:** 0.60  

              - **Regelung:** Außentemperaturgeführt  

              - **Warmwasser:** 200 L + Solarthermie  

              - **Betriebsmodus:** Dauerbetrieb (kein Zeitprogramm)  

              - **Gasgerät:** modulierend  

              - **eBUS Integration:** ebusd + MQTT  

              - **Haus Baujahr:** 2013  


              </details>


              ---


              <details>

              <summary><strong>🌡️ Thermostate & Stellantriebe (alle
              Räume)</strong></summary>


              ## 🟩 Räume mit **HmIP-BWTH** (elektronische Wandthermostate +
              elektrische Stellantriebe)

              Diese 4 Räume sind **voll integriert** in OpenCCU:


              - **Wohnzimmer** – 3 Heizkreise  

              - **Badezimmer** – 1 Heizkreis  

              - **Kinderzimmer Karell** – 2 Heizkreise  

              - **Kinderzimmer Martha** – 2 Heizkreise  


              ### Einstellungen (einheitlich gesetzt)

              - **Thermostat:** Homematic IP – HmIP-BWTH  

              - **Regelung:** Zweipunkt  

              - **Profil:** Niedrigenergie-Fußbodenheizung  

              - **Hysterese:** 0.6 K  

              - **Offset:** 0.0 K  

              - **Antriebstyp:** NC  


              ---


              ## 🟨 Räume mit **mechanischen Danfoss-Bimetall-Reglern**

              Diese Räume haben **keine digitalen Thermostate**,  

              aber die **Stellantriebe sind trotzdem elektrisch (NC)** und
              werden  

              durch **Danfoss-Raumregler** (Bimetall-Schaltkontakt) geschaltet:


              - **Küche** – 2 Kreise  

              - **Diele** – 1 Kreis  

              - **Gäste-WC** – 1 Kreis  

              - **Schlafzimmer** – 2 Kreise  


              ### Eigenschaften:

              - Elektrischer Antrieb: ja  

              - Thermostat: mechanisch (Bimetall)  

              - Keine Integration in Home Assistant


              ---


              ## 🟦 Ankleide / Gästezimmer (Sonderfall)

              - **Thermostat:** Einfaches No-Name Digitalthermostat  

              - **Sollwert:** fix 18°C  

              - **Heizkreise:** 1  

              - **Elektrischer Antrieb:** Danfoss TWA-K NC  

              - **Keine HA/OpenCCU Integration**


              ---


              ## 🔧 Stellantriebe (alle FBH-Kreise)

              - **Modell:** Danfoss TWA-K NC (088H3142)  

              - **Typ:** Elektrothermisch, 230V, NC  

              - **Montage:** Heizkreisverteiler EG & OG  

              - **Öffnen bei Spannung, Schließen stromlos**


              </details>


              ---


              <details>

              <summary><strong>🧰 Reparaturen & Wartung (mit
              Preisen)</strong></summary>


              - **04/2020:** Austausch Ausgleichsbehälter Solarthermie – **150
              €**  

              - **07/2025:** Austausch Solarthermie-Pumpe – **400 €**  

              - **11/2025:** AuroCompact Steuerplatine – Elkos erneuert – **20 €
              Material**  

              - **11/2025:** Badezimmer – Stellantrieb defekt – **35 €**  

              - *(Weitere Einträge hier ergänzen…)*


              </details>


              ---


              <details>

              <summary><strong>📌 Hinweise / Systemlogik</strong></summary>


              - Heizkreis läuft dauerhaft (FBH → träge, kein Zeitprogramm).  

              - Temperaturführung erfolgt über Raumthermostate.  

              - Keine Nachtabsenkung an der Heizung.  

              - Nachtabsenkung über Thermostate: **max. 0.3–0.5°C**.  

              - FBH reagiert langsam → stabile Sollwerte wichtig.  

              - Elektrische Stellantriebe einsetzen, alle funktionstüchtig
              halten.  

              - Wohnzimmer mit 3 Kreisen hat größten Einfluss auf Gesamtwärme.  

              - Ankleide bleibt bewusst auf 18°C (Energiemanagement).  

              - Vaillant: keine direkte Raumtemperaturaufschaltung.  

              - AuroCompact regelt rein nach Außentemperatur + Heizkurve.  


              </details>
            grid_options:
              columns: full
        column_span: 3
        visibility:
          - condition: screen
            media_query: "(min-width: 768px)"
    header:
      layout: center
      badges_position: top
      badges_wrap: scroll
    dense_section_placement: true
    cards: []
    title: Heizung
    badges: []
  - title: Solar
    path: solar
    icon: mdi:solar-power-variant
    type: sections
    max_columns: 4
    sections:
      - type: grid
        cards:
          - type: custom:sun-position-card
            entity: sun.sun
            animate_images: true
            show_image: true
            state_position: in_list
            show_dividers: true
            show_degrees: true
            show_degrees_in_list: true
            times_to_show:
              - next_rising
              - next_setting
            time_position: right
            time_list_format: block
            morning_azimuth: 155
            dusk_elevation: 5
            noon_azimuth: 200
            afternoon_azimuth: 255
            sun_size: 50
            hide_moon_phase_on_day: false
            show_moon_icon_in_text: false
            show_night_arc: false
            use_12h_format: false
            weather_entity: weather.forecast_home
            temp_entity: sensor.ebusd_lueftung_wtw04_tempinletair_sai
            solar_entity: sensor.solarbank_3_e2700_pro_solarleistung
            view_mode: arc
            show_weather_badge: true
            show_solar_badge: true
            language: de
          - type: heading
            heading: Statistiken
            heading_style: subtitle
            icon: mdi:chart-bell-curve
          - type: custom:apexcharts-card
            header:
              show: true
              show_states: true
              colorize_states: true
            graph_span: 3h
            apex_config:
              legend:
                show: false
              chart:
                type: bar
                height: 120
              grid:
                padding:
                  top: 0
                  right: 8
                  left: 8
                  bottom: 0
            all_series_config:
              stroke_width: 1.5
            series:
              - entity: sensor.system_home_hausbedarf
                name: Hausbedarf
                type: area
                opacity: 0.1
                color: "#42a5f5"
              - entity: sensor.solarbank_3_e2700_pro_solarleistung
                name: PV Leistung
                color: "#ffb300"
              - entity: sensor.system_home_sb_akkuleistung
                name: Akkuleistung
                type: area
                opacity: 0.1
                color: "#66bb6a"
              - entity: sensor.system_home_sb_einspeiseleistung
                name: Einspeisung
                type: area
                opacity: 0.1
                color: "#ab47bc"
              - entity: sensor.system_home_sb_ladestand
                name: Ladestand
                show:
                  in_chart: false
                  in_header: true
                  legend_value: true
          - type: custom:apexcharts-card
            header:
              show: true
              show_states: true
              colorize_states: true
            graph_span: 14d
            span:
              end: day
              offset: "-1d"
            all_series_config:
              type: column
              stroke_width: 1.5
              group_by:
                duration: 1d
                func: max
            apex_config:
              legend:
                show: false
              chart:
                height: 160
              grid:
                padding:
                  top: 0
                  right: 8
                  left: 8
                  bottom: 0
            series:
              - entity: sensor.system_home_taglicher_solarertrag
                name: Täglicher Solarertrag
                statistics:
                  type: change
                  period: day
                show:
                  in_chart: true
                  in_header: false
              - entity: sensor.system_home_taglicher_solarertrag
                name: Ø Solarertrag (14 Tage)
                statistics:
                  type: change
                  period: day
                group_by:
                  duration: 14d
                  func: avg
                float_precision: 1
                show:
                  in_chart: false
                  in_header: true
          - type: entities
            entities:
              - entity: sensor.strom_smr_e_in
                secondary_info: last-changed
              - entity: sensor.strom_smr_e_out
              - entity: sensor.strom_smr_p_in
                secondary_info: last-changed
            title: Stromzähler
      - type: grid
        cards:
          - type: heading
            heading: Batterie
            heading_style: subtitle
            icon: mdi:battery
          - type: custom:apexcharts-card
            header:
              show: true
              show_states: true
              colorize_states: true
            apex_config:
              legend:
                show: false
              chart:
                height: 120
              grid:
                padding:
                  top: 0
                  right: 8
                  left: 8
                  bottom: 0
            all_series_config:
              stroke_width: 1.5
            series:
              - entity: sensor.solarbank_3_e2700_pro_ladestand
                name: Ladestand (letzte 24h)
                curve: smooth
              - entity: sensor.solarbank_3_e2700_pro_ladestand
                name: Max (Heute)
                float_precision: 2
                type: line
                statistics:
                  type: max
                  period: day
                show:
                  in_chart: false
                  in_header: true
                  legend_value: true
          - type: custom:apexcharts-card
            header:
              show: true
              show_states: true
              colorize_states: true
            apex_config:
              legend:
                show: false
              chart:
                height: 120
              grid:
                padding:
                  top: 0
                  right: 8
                  left: 8
                  bottom: 0
            all_series_config:
              stroke_width: 1.5
            series:
              - entity: sensor.solarbank_3_e2700_pro_temperatur
                name: Solarbank 3
                curve: smooth
              - entity: sensor.solarbank_3_e2700_pro_erw_1_temperatur
                name: Zusatz Akku 1
                curve: smooth
          - type: entities
            entities:
              - entity: sensor.system_home_sb_akkuleistung
                name: Akkuleistung
              - entity: sensor.system_home_sb_ladestand
                name: Ladestand
              - entity: sensor.solarbank_3_e2700_pro_akkuenergie
                name: Akkuenergie
              - type: divider
              - entity: binary_sensor.system_home_akkuheizung
              - entity: sensor.solarbank_3_e2700_pro_heizleistung
                name: Heizleistung
          - type: gauge
            entity: sensor.solarbank_3_e2700_pro_ladestand
            min: 0
            needle: true
            severity:
              green: 65
              yellow: 10
              red: 0
      - type: grid
        cards:
          - type: heading
            heading: Solaranlage
            heading_style: subtitle
            icon: mdi:solar-power-variant
          - type: custom:apexcharts-card
            header:
              show: true
              show_states: true
              colorize_states: true
            apex_config:
              legend:
                show: false
              chart:
                height: 120
              grid:
                padding:
                  top: 0
                  right: 8
                  left: 8
                  bottom: 0
            all_series_config:
              stroke_width: 1.5
            series:
              - entity: sensor.solarbank_3_e2700_pro_solarleistung
                name: Gesamtleistung (24h)
                curve: smooth
              - entity: sensor.system_home_taglicher_solarertrag
                name: Heute
                float_precision: 2
                type: line
                statistics:
                  type: change
                  period: day
                show:
                  in_chart: false
                  in_header: true
                  legend_value: true
          - type: distribution
            entities:
              - entity: sensor.solarbank_3_e2700_pro_solar_pv1
                name: PV1
              - entity: sensor.solarbank_3_e2700_pro_solar_pv2
                name: PV2
              - entity: sensor.solarbank_3_e2700_pro_solar_pv3
                name: PV3
              - entity: sensor.solarbank_3_e2700_pro_solar_pv4
                name: PV4
          - type: custom:apexcharts-card
            header:
              show: true
              show_states: true
              colorize_states: true
            graph_span: 1h
            apex_config:
              legend:
                show: false
              chart:
                type: bar
                height: 120
              grid:
                padding:
                  top: 0
                  right: 8
                  left: 8
                  bottom: 0
            all_series_config:
              stroke_width: 1.5
            series:
              - entity: sensor.solarbank_3_e2700_pro_solar_pv1
                name: PV1
                color: "#ffb300"
                type: column
              - entity: sensor.solarbank_3_e2700_pro_solar_pv2
                name: PV2
                color: "#ffa726"
                type: column
              - entity: sensor.solarbank_3_e2700_pro_solar_pv3
                name: PV3
                color: "#fb8c00"
                type: column
              - entity: sensor.solarbank_3_e2700_pro_solar_pv4
                name: PV4
                color: "#f57c00"
                type: column
          - type: heading
            heading: Ertrag je Modul (heute)
            heading_style: subtitle
            icon: mdi:solar-panel
          - type: entities
            entities:
              - entity: sensor.system_home_tagliche_pv_1
                name: PV1 (Ost)
              - entity: sensor.system_home_tagliche_pv_2
                name: PV2 (Ost)
              - entity: sensor.system_home_tagliche_pv_3
                name: PV3 (West)
              - entity: sensor.system_home_tagliche_pv_4
                name: PV4 (West)
              - type: custom:template-entity-row
                name: Summe Ost (PV1+PV2)
                entity: sensor.system_home_tagliche_pv_1
                state: >
                  {% set pv1 =
                  states('sensor.system_home_tagliche_pv_1')|float(0) %} {% set
                  pv2 = states('sensor.system_home_tagliche_pv_2')|float(0) %}
                  {{ (pv1 + pv2) | round(2) }} kWh
              - type: custom:template-entity-row
                name: Summe West (PV3+PV4)
                entity: sensor.system_home_tagliche_pv_3
                state: >
                  {% set pv3 =
                  states('sensor.system_home_tagliche_pv_3')|float(0) %} {% set
                  pv4 = states('sensor.system_home_tagliche_pv_4')|float(0) %}
                  {{ (pv3 + pv4) | round(2) }} kWh
      - type: grid
        cards:
          - type: heading
            heading: Betriebszustand
            heading_style: subtitle
            icon: mdi:cog-outline
          - type: entities
            entities:
              - entity: sensor.system_home_aktiver_benutzermodus
                name: Aktiver Modus
              - entity: sensor.solarbank_3_e2700_pro_betriebszustand
                name: Betriebszustand
                secondary_info: last-changed
              - entity: sensor.solarbank_3_e2700_pro_cloud_zustand
                name: Cloud Zustand
                secondary_info: last-changed
              - entity: button.solarbank_3_e2700_pro_mqtt_echtzeitdaten
                name:
                  type: entity
              - type: divider
              - entity: input_boolean.solix_akkureserve_individuell
              - entity: input_number.solix_akkureserve_soc_min
          - type: heading
            heading: Wirtschaft & CO₂
            heading_style: subtitle
            icon: mdi:currency-eur
          - type: entities
            entities:
              - entity: sensor.system_home_ertrag_gesamt
                name: Ertrag gesamt
              - entity: sensor.system_home_kostenersparnis
                name: Kostenersparnis
              - type: custom:fold-entity-row
                head:
                  type: custom:template-entity-row
                  name: >
                    Armortisation ({% set anschaffung = 1600 %} {% set ersparnis
                    = states('sensor.system_home_kostenersparnis')|float(0) %}
                    {% set rest = (anschaffung - ersparnis) | round(2) %} {% set
                    prozent = ((ersparnis/anschaffung)*100) | round(1) %} {{
                    prozent }} % )
                  icon: mdi:hand-coin
                items:
                  - type: custom:template-entity-row
                    entity: sensor.system_home_kostenersparnis
                    name: Anschaffung - Förderung
                    state: 2300 € - 700 €
                  - type: custom:template-entity-row
                    entity: sensor.system_home_kostenersparnis
                    name: Amortisation m. Förderung
                    state: >
                      {% set anschaffung = 2300 %} {% set foerderung = 700 %} {%
                      set ersparnis =
                      states('sensor.system_home_kostenersparnis')|float(0) %}
                      {% set rest = (anschaffung - (ersparnis + foerderung)) |
                      round(2) %} {% set prozent = (((foerderung +
                      ersparnis)/anschaffung)*100) | round(1) %} {{ rest }} € /
                      {{ prozent }} %
                  - type: custom:template-entity-row
                    entity: sensor.system_home_kostenersparnis
                    name: Amortisation o. Förderung
                    state: >
                      {% set anschaffung = 1600 %} {% set ersparnis =
                      states('sensor.system_home_kostenersparnis')|float(0) %}
                      {% set rest = (anschaffung - ersparnis) | round(2) %} {%
                      set prozent = ((ersparnis/anschaffung)*100) | round(1) %}
                      {{ rest }} € / {{ prozent }} %
              - entity: sensor.system_home_co2_einsparung
                name: CO₂-Einsparung
          - type: heading
            icon: mdi:wrench-clock
            heading: Wartung
            heading_style: subtitle
          - type: entities
            entities:
              - entity: input_datetime.solaranlage_letzte_reinigung
                name: Letzte Reinigung
                secondary_info: none
              - entity: input_datetime.solaranlage_letzte_kontrolle
                name: Letzte Kontrolle
                secondary_info: none
    cards: []
    dense_section_placement: true
    badges:
      - type: entity
        show_name: false
        show_state: true
        show_icon: true
        entity: sensor.solarbank_3_e2700_pro_ladestand
        show_entity_picture: false
      - type: entity
        show_name: false
        show_state: true
        show_icon: true
        entity: sensor.system_home_taglicher_solarertrag
      - type: entity
        show_name: false
        show_state: true
        show_icon: true
        entity: sensor.system_home_hausbedarf
      - type: entity
        show_name: false
        show_state: true
        show_icon: true
        entity: sensor.solarbank_3_e2700_pro_solarleistung
      - type: entity
        entity: sensor.solarbank_3_e2700_pro_akkuleistung
        view_layout:
          grid-area: header
        card_mod:
          style: |
            :host {
              --card-mod-icon-color:
                {% set val = states(config.entity) | float(0) %}
                {% if val > 0 %}
                  green
                {% elif val < 0 %}
                  red
                {% else %}
                  grey
                {% endif %};
            }
  - type: sections
    max_columns: 3
    icon: mdi:fan
    path: luftung
    title: Lüftung
    sections:
      - type: grid
        cards:
          - type: heading
            icon: ""
            heading: Temperaturen
            heading_style: subtitle
          - type: entities
            entities:
              - type: conditional
                conditions:
                  - condition: screen
                    media_query: "(min-width: 768px)"
                row:
                  type: custom:hui-element
                  card_type: picture-elements
                  card_mod:
                    style: |
                      ha-card img {
                        width: 75% !important;
                        margin: 0 auto !important;
                        display: block !important;
                      }
                  elements:
                    - type: state-label
                      entity: sensor.ebusd_lueftung_wtw04_airinlettemp
                      style:
                        left: 13%
                        top: 50%
                        font-weight: bold
                        font-size: 110%
                    - type: state-label
                      entity: sensor.ebusd_lueftung_wtw04_airoutgoingtemp
                      style:
                        left: 65%
                        top: 19%
                        font-weight: bold
                        font-size: 110%
                    - type: state-label
                      entity: sensor.ebusd_lueftung_wtw04_airexhausttemp
                      style:
                        left: 18%
                        top: 85%
                        font-weight: bold
                        font-size: 110%
                    - type: state-label
                      entity: sensor.ebusd_lueftung_wtw04_airoutlettemp
                      style:
                        left: 82%
                        top: 85%
                        font-weight: bold
                        font-size: 110%
                  image:
                    media_content_id: >-
                      media-source://image_upload/553e50103c2073295e51c1047fb5d94d
                    media_content_type: image/png
              - entity: sensor.ebusd_lueftung_wtw04_airinlettemp
                secondary_info: last-updated
              - entity: sensor.ebusd_lueftung_wtw04_airoutlettemp
                secondary_info: last-updated
              - entity: sensor.ebusd_lueftung_wtw04_airexhausttemp
                secondary_info: last-updated
              - entity: sensor.ebusd_lueftung_wtw04_airoutgoingtemp
                secondary_info: last-updated
          - type: custom:apexcharts-card
            header:
              show: true
              show_states: true
              colorize_states: true
            apex_config:
              legend:
                show: false
              chart:
                height: 120
              grid:
                padding:
                  top: 0
                  right: 8
                  left: 8
                  bottom: 0
            all_series_config:
              stroke_width: 1.5
            series:
              - entity: sensor.ebusd_lueftung_wtw04_airinlettemp
              - entity: sensor.ebusd_lueftung_wtw04_airoutlettemp
              - entity: sensor.ebusd_lueftung_wtw04_airexhausttemp
              - entity: sensor.ebusd_lueftung_wtw04_airoutgoingtemp
      - type: grid
        cards:
          - type: heading
            heading_style: subtitle
            heading: Status
          - type: entities
            entities:
              - entity: sensor.intensivmodus_countdown
                name: Intensivmodus
              - entity: sensor.luftungsmodus_anzeige
                name: Lüftungsmodus
              - entity: sensor.ebusd_lueftung_vai00_bypass_status
              - entity: sensor.ebusd_lueftung_wtw04_bypassstellung_status
              - entity: sensor.ebusd_lueftung_wtw04_unterdruckschutz_mode
              - entity: sensor.luftung_volumenstrom_m3_h
                name: Volumenstrom aktuell
          - type: heading
            heading: Steuerung
            heading_style: subtitle
          - type: entities
            entities:
              - entity: switch.luftung
              - entity: sensor.luftung_switch_0_power
              - entity: automation.luftung_frostschutz_abschaltung_package
                name: Lüftung abtauen
                icon: mdi:snowflake-melt
              - type: divider
              - entity: select.ebusd_lueftung_vai00_lueftungsstufe_status
                name: Lüftungsmodus
              - type: custom:fold-entity-row
                head:
                  type: custom:template-entity-row
                  name: Bypass
                  icon: mdi:valve
                  state: >-
                    {{ 'Aktiv' if is_state('input_boolean.bypass_aktiv', 'on')
                    else 'Inaktiv' }}
                entities:
                  - entity: input_boolean.bypass_aktiv
                    name: Sommerkühlung
                  - entity: input_boolean.bypass_force
                    name: Force
                  - type: divider
                  - entity: input_number.luftung_bypass_min_innentemperatur
                    name: Ab Innentemp
                  - entity: input_number.luftung_bypass_min_aussentemperatur
                    name: Ab Außentemp (Min)
                    icon: mdi:thermometer-low
                  - entity: input_number.luftung_bypass_max_aussentemperatur
                    name: Bis Außentemp (Max)
                    icon: mdi:thermometer-high
              - entity: select.ebusd_lueftung_vai00_lueftung_hi_status
              - type: divider
              - type: custom:fold-entity-row
                head:
                  type: custom:template-entity-row
                  name: Luftgeschwindigkeiten
                  icon: mdi:air-filter
                  state: >-
                    ☀️{{ states('number.ebusd_lueftung_vai00_normalflow') | int
                    }} 🌙{{ states('number.ebusd_lueftung_vai00_reducedflow') |
                    int }} 🔀{{ states('number.ebusd_lueftung_vai00_bypassflow')
                    | int }} m³/h
                entities:
                  - entity: number.ebusd_lueftung_vai00_normalflow
                    name: Volumenstrom Tag
                    icon: mdi:weather-sunny
                  - entity: number.ebusd_lueftung_vai00_reducedflow
                    name: Volumenstrom Nacht
                    icon: mdi:weather-night
                  - entity: number.ebusd_lueftung_vai00_intenseflow
                    name: Volumenstrom Intensiv
                    icon: mdi:fan-speed-3
                  - entity: number.ebusd_lueftung_vai00_bypassflow
                    name: Volumenstrom Bypass
                    icon: mdi:valve-open
              - type: divider
              - type: custom:fold-entity-row
                head:
                  type: custom:template-entity-row
                  name: Lüftung Automatik
                  icon: mdi:fan-auto
                  state: >-
                    {{ 'Aktiv' if
                    is_state('input_boolean.luftung_automatik_aktiv', 'on') else
                    'Inaktiv' }}
                entities:
                  - entity: input_boolean.luftung_automatik_aktiv
                    name: Automatik aktiv
                  - type: divider
                  - entity: input_datetime.luftung_start_wochentag
                    name: Start Wochentag
                    icon: mdi:clock-start
                  - entity: input_datetime.luftung_start_wochenende
                    name: Start Wochenende
                    icon: mdi:clock-start
                  - entity: input_datetime.luftung_ende
                    name: Ende
                    icon: mdi:clock-end
                  - type: divider
                  - entity: input_number.luftung_bad_feuchte_schwelle
                    name: Bad Feuchte Schwelle
                    icon: mdi:water-percent
                  - entity: input_number.luftung_bad_luftungsdauer
                    name: Bad Lüftungsdauer
                    icon: mdi:timer-outline
                  - entity: timer.luftung_bad_timer
                    name: Bad Timer
                    icon: mdi:shower
      - type: grid
        cards:
          - type: heading
            heading: Statistik
            heading_style: subtitle
          - type: custom:apexcharts-card
            header:
              show: true
              show_states: true
              colorize_states: true
            apex_config:
              legend:
                show: false
              chart:
                height: 120
              grid:
                padding:
                  top: 0
                  right: 8
                  left: 8
                  bottom: 0
            all_series_config:
              stroke_width: 1.5
            series:
              - entity: sensor.luftung_switch_0_power
              - entity: sensor.luftung_switch_0_power
                name: Min (Heute)
                float_precision: 2
                type: line
                statistics:
                  type: min
                  period: day
                show:
                  in_chart: false
                  in_header: true
                  legend_value: true
              - entity: sensor.luftung_switch_0_power
                name: Max (Heute)
                float_precision: 2
                type: line
                statistics:
                  type: max
                  period: day
                show:
                  in_chart: false
                  in_header: true
                  legend_value: true
              - entity: sensor.luftung_switch_0_energy
                name: Verbrauch (Heute)
                float_precision: 2
                type: line
                statistics:
                  type: change
                  period: day
                show:
                  in_chart: false
                  in_header: true
                  legend_value: true
          - type: custom:apexcharts-card
            header:
              show: true
              show_states: true
              colorize_states: true
            graph_span: 14d
            span:
              end: day
              offset: "-1d"
            all_series_config:
              type: column
              stroke_width: 1.5
              group_by:
                duration: 1d
                func: max
            apex_config:
              legend:
                show: false
              chart:
                height: 160
              grid:
                padding:
                  top: 0
                  right: 8
                  left: 8
                  bottom: 0
            series:
              - entity: sensor.luftung_switch_0_energy
                name: Täglicher Solarertrag
                statistics:
                  type: change
                  period: day
                show:
                  in_chart: true
                  in_header: false
              - entity: sensor.luftung_switch_0_energy
                name: Ø Verbrauch kWh (14 Tage)
                statistics:
                  type: change
                  period: day
                group_by:
                  duration: 14d
                  func: avg
                float_precision: 1
                show:
                  in_chart: false
                  in_header: true
          - type: heading
            icon: ""
            heading: Wartung
            heading_style: subtitle
          - type: entities
            entities:
              - entity: sensor.luftung_filterstatus
                name: Filterstatus
                icon: mdi:air-filter
              - type: divider
              - entity: input_datetime.luftung_letzte_reinigung
                name: Gerätereinigung
              - entity: input_datetime.luftung_letzter_filtertausch
                name: Filtertausch - Raum
              - entity: input_datetime.luftung_letzter_filtertausch_gerat
                name: Filtertausch - Gerät
              - entity: input_select.luftung_filtertyp
                name: Installierter Filter
              - type: divider
              - type: custom:fold-entity-row
                head:
                  type: custom:template-entity-row
                  name: Schwellwerte
                  icon: mdi:tune
                  state: >-
                    Tag: {{ states('input_number.luftung_schwelle_warnung_tag')
                    | int }}/{{
                    states('input_number.luftung_schwelle_kritisch_tag') | int
                    }} W
                entities:
                  - entity: input_number.luftung_schwelle_warnung_tag
                    name: Tag – Prüfen ab
                    icon: mdi:weather-sunny
                  - entity: input_number.luftung_schwelle_kritisch_tag
                    name: Tag – Reinigen ab
                    icon: mdi:weather-sunny
                  - entity: input_number.luftung_schwelle_warnung_nacht
                    name: Nacht – Prüfen ab
                    icon: mdi:weather-night
                  - entity: input_number.luftung_schwelle_kritisch_nacht
                    name: Nacht – Reinigen ab
                    icon: mdi:weather-night
      - type: grid
        cards:
          - type: heading
            heading: Notizen
            heading_style: subtitle
          - type: markdown
            content: >-
              01.03.2026 - Anlage zerlegt. Wärmetauscher und Lüfter gereinigt.

              08.03.2026 - Kugellager in beiden Lüftern getauscht - 4x SKF
              626-2RSH
            grid_options:
              columns: full
          - type: logbook
            target:
              entity_id: []
              area_id: luftung
        column_span: 3
    cards: []
  - type: sections
    title: Beschattung
    path: beschattung
    icon: mdi:sun-thermometer
    max_columns: 3
    dense_section_placement: true
    cards: []
    badges:
      - type: entity
        entity: input_select.beschattung_betriebsmodus
        icon: mdi:sun-thermometer
        show_name: false
        show_state: true
      - type: entity
        show_name: false
        show_state: true
        show_icon: true
        entity: sensor.beschattung_aussentemperatur
      - type: entity
        show_name: false
        show_state: true
        show_icon: true
        entity: input_number.beschattung_forecast_maxtemp_heute
        color: orange
        icon: mdi:sun-thermometer
      - type: entity
        entity: binary_sensor.beschattung_hitzeschutz_noetig
        icon: mdi:fire
        show_name: false
        show_state: false
        color: deep-orange
      - type: entity
        show_name: false
        show_state: false
        show_icon: true
        entity: binary_sensor.jemand_zuhause
        icon: mdi:account-group
      - type: entity
        show_name: true
        show_state: false
        show_icon: true
        entity: binary_sensor.sonne_auf_vorderseite
        icon: mdi:weather-sunny
        name: Vorne
      - type: entity
        show_name: true
        show_state: false
        show_icon: true
        entity: binary_sensor.sonne_auf_gartenseite
        icon: mdi:weather-sunny
        name: Garten
      - type: entity
        show_name: true
        show_state: false
        show_icon: true
        entity: binary_sensor.sonnenschutz_vorderseite_noetig
        icon: mdi:shield-sun
        name: Vorne
      - type: entity
        show_name: true
        show_state: false
        show_icon: true
        entity: binary_sensor.sonnenschutz_gartenseite_noetig
        icon: mdi:shield-sun
        name: Garten
    sections:
      - type: grid
        cards:
          - type: heading
            heading: Räume
            heading_style: subtitle
          - type: vertical-stack
            cards:
              - type: heading
                heading: Terrasse
                heading_style: subtitle
                badges:
                  - type: entity
                    entity: input_boolean.beschattung_sperre_markise
                    icon: mdi:hand-back-right
                    show_name: false
                    show_state: false
                    color: red
                    tap_action:
                      action: call-service
                      service: timer.cancel
                      service_data:
                        entity_id: timer.beschattung_sperre_markise
                  - type: entity
                    entity: binary_sensor.sonnenschutz_gartenseite_noetig
                    icon: mdi:weather-sunny
                    show_name: false
                    show_state: false
                    color: amber
                  - type: entity
                    entity: binary_sensor.jemand_zuhause
                    icon: mdi:account
                    show_name: false
                    show_state: false
                    color: green
                  - type: entity
                    entity: binary_sensor.beschattung_markise_elevation_ok
                    icon: mdi:angle-acute
                    show_name: false
                    show_state: false
                    color: green
                grid_options:
                  columns: 24
              - type: entities
                show_header_toggle: false
                entities:
                  - type: custom:template-entity-row
                    entity: cover.markise
                    icon: mdi:awning
                    name: >-
                      Markise {{
                      state_attr('cover.markise','current_position')|int }}%  · 
                      FM {{
                      state_attr('cover.markise_vorne','current_position')|int
                      }}%
                  - type: custom:fold-entity-row
                    head:
                      type: custom:template-entity-row
                      entity: cover.markise
                      name: Einstellungen
                      icon: mdi:tune
                      state: ""
                    items:
                      - entity: cover.markise
                        name: Markise
                      - entity: cover.markise_vorne
                        name: Frontmarkise
                      - entity: input_boolean.beschattung_sperre_markise
                        name: Sperre
                      - entity: sensor.markise_device_temperature
                        name: Geräte Temperatur
            grid_options:
              columns: 12
              rows: auto
          - type: vertical-stack
            cards:
              - type: heading
                heading: Wohnzimmer
                heading_style: subtitle
                badges:
                  - type: entity
                    entity: input_boolean.beschattung_sperre_wohnzimmer_links
                    icon: mdi:hand-back-right
                    show_name: false
                    show_state: false
                    color: red
                    tap_action:
                      action: call-service
                      service: timer.cancel
                      service_data:
                        entity_id: timer.beschattung_sperre_wohnzimmer_links
                  - type: entity
                    entity: input_boolean.beschattung_sperre_wohnzimmer_rechts
                    icon: mdi:hand-back-right
                    show_name: false
                    show_state: false
                    color: red
                    tap_action:
                      action: call-service
                      service: timer.cancel
                      service_data:
                        entity_id: timer.beschattung_sperre_wohnzimmer_rechts
                  - type: entity
                    entity: binary_sensor.terrassentur_links_window
                    icon: mdi:window-open
                    show_name: false
                    show_state: false
                    color: blue
                  - type: entity
                    entity: binary_sensor.terrassentur_rechts_window
                    icon: mdi:window-open
                    show_name: false
                    show_state: false
                    color: blue
                  - type: entity
                    entity: binary_sensor.sonnenschutz_gartenseite_noetig
                    icon: mdi:weather-sunny
                    show_name: false
                    show_state: false
                    color: amber
                  - type: entity
                    entity: binary_sensor.beschattung_hitzeschutz_noetig
                    icon: mdi:fire
                    show_name: false
                    show_state: false
                    color: deep-orange
                  - type: entity
                    entity: binary_sensor.jemand_zuhause
                    icon: mdi:account
                    show_name: false
                    show_state: false
                    color: green
              - type: entities
                show_header_toggle: false
                entities:
                  - type: custom:template-entity-row
                    entity: input_boolean.beschattung_wohnzimmer_aktiv
                    icon: mdi:sofa
                    toggle: true
                    name: >-
                      Links {{
                      state_attr('cover.terrassentur_links','current_position')|int
                      }}%  ·  Rechts {{
                      state_attr('cover.terrassentur_rechts','current_position')|int
                      }}%
                  - type: custom:fold-entity-row
                    head:
                      type: custom:template-entity-row
                      entity: input_select.beschattung_wohnzimmer_profil
                      name: Einstellungen
                      icon: mdi:tune
                      state: >-
                        {{ states('input_select.beschattung_wohnzimmer_profil')
                        }}
                    items:
                      - entity: input_boolean.beschattung_party_modus_wohnzimmer
                        name: Party-Modus
                        icon: mdi:party-popper
                      - entity: input_datetime.beschattung_wohnzimmer_morgens_werktag
                        name: Morgens Werktag
                      - entity: >-
                          input_datetime.beschattung_wohnzimmer_morgens_wochenende
                        name: Morgens Wochenende/Feiertag
                      - entity: input_datetime.beschattung_wohnzimmer_abends_zeit
                        name: Abends (Fallback)
                      - entity: input_select.beschattung_wohnzimmer_profil
                        name: Profil
                      - type: custom:template-entity-row
                        entity: input_boolean.beschattung_sperre_wohnzimmer_links
                        name: Sperre Links
                        icon: mdi:hand-back-right
                        toggle: true
                        state_color: true
                        secondary: >-
                          {% if
                          is_state('timer.beschattung_sperre_wohnzimmer_links','active')
                          %}{{
                          state_attr('timer.beschattung_sperre_wohnzimmer_links','remaining')
                          }}{% else %}–{% endif %}
                      - type: conditional
                        conditions:
                          - condition: state
                            entity: timer.beschattung_sperre_wohnzimmer_links
                            state: active
                        row:
                          entity: timer.beschattung_sperre_wohnzimmer_links
                          name: ""
                      - type: custom:template-entity-row
                        entity: input_boolean.beschattung_sperre_wohnzimmer_rechts
                        name: Sperre Rechts
                        icon: mdi:hand-back-right
                        toggle: true
                        state_color: true
                        secondary: >-
                          {% if
                          is_state('timer.beschattung_sperre_wohnzimmer_rechts','active')
                          %}{{
                          state_attr('timer.beschattung_sperre_wohnzimmer_rechts','remaining')
                          }}{% else %}–{% endif %}
                      - type: conditional
                        conditions:
                          - condition: state
                            entity: timer.beschattung_sperre_wohnzimmer_rechts
                            state: active
                        row:
                          entity: timer.beschattung_sperre_wohnzimmer_rechts
                          name: ""
                      - entity: sensor.terrassentur_links
                        name: Tür Links
                      - entity: sensor.terrassentur_rechts
                        name: Tür Rechts
                      - entity: sensor.wohnzimmer_wandthermostat_temperatur
                        name: Temperatur
          - type: vertical-stack
            cards:
              - type: heading
                heading: Martha
                heading_style: subtitle
                badges:
                  - type: entity
                    entity: input_boolean.beschattung_sperre_martha
                    icon: mdi:hand-back-right
                    show_name: false
                    show_state: false
                    color: red
                    tap_action:
                      action: call-service
                      service: timer.cancel
                      service_data:
                        entity_id: timer.beschattung_sperre_martha
                  - type: entity
                    entity: binary_sensor.martha_fenster_links_window
                    icon: mdi:window-open
                    show_name: false
                    show_state: false
                    color: blue
                  - type: entity
                    entity: binary_sensor.martha_fenster_rechts_window
                    icon: mdi:window-open
                    show_name: false
                    show_state: false
                    color: blue
                  - type: entity
                    entity: binary_sensor.sonnenschutz_gartenseite_noetig
                    icon: mdi:weather-sunny
                    show_name: false
                    show_state: false
                    color: amber
                  - type: entity
                    entity: binary_sensor.beschattung_hitzeschutz_noetig
                    icon: mdi:fire
                    show_name: false
                    show_state: false
                    color: deep-orange
                  - type: entity
                    entity: person.martha
                    icon: mdi:human-child
                    show_name: false
                    show_state: false
                    color: green
              - type: entities
                show_header_toggle: false
                entities:
                  - type: custom:template-entity-row
                    entity: input_boolean.beschattung_martha_aktiv
                    icon: mdi:teddy-bear
                    toggle: true
                    name: "{{ state_attr('cover.martha','current_position')|int }}%"
                  - type: custom:fold-entity-row
                    head:
                      type: custom:template-entity-row
                      entity: input_select.beschattung_martha_profil
                      name: Einstellungen
                      icon: mdi:tune
                      state: "{{ states('input_select.beschattung_martha_profil') }}"
                    items:
                      - entity: input_select.beschattung_martha_profil
                        name: Profil
                      - entity: input_number.martha_rollo_hitzeschutz_position
                        name: Position Komfort anwesend
                      - entity: input_boolean.martha_rollo_morgens_aktiv
                        name: Morgens aktiv
                      - entity: input_datetime.martha_rollo_morgens_zeit
                        name: Morgens Werktag
                      - entity: input_boolean.martha_rollo_wochenende_aktiv
                        name: Wochenende aktiv
                      - entity: input_datetime.martha_rollo_wochenende_zeit
                        name: Morgens WE/Feiertag
                      - entity: input_boolean.martha_rollo_abends_aktiv
                        name: Abends aktiv
                      - entity: input_datetime.martha_rollo_abends_zeit
                        name: Abends Uhrzeit
                      - entity: input_number.martha_rollo_morgens_position
                        name: Position morgens
                      - entity: input_number.martha_rollo_abends_position
                        name: Position abends
                      - type: custom:template-entity-row
                        entity: input_boolean.beschattung_sperre_martha
                        name: Komfortsperre
                        icon: mdi:hand-back-right
                        toggle: true
                        state_color: true
                        secondary: >-
                          {% if
                          is_state('timer.beschattung_sperre_martha','active')
                          %}{{
                          state_attr('timer.beschattung_sperre_martha','remaining')
                          }}{% else %}–{% endif %}
                      - type: conditional
                        conditions:
                          - condition: state
                            entity: timer.beschattung_sperre_martha
                            state: active
                        row:
                          entity: timer.beschattung_sperre_martha
                          name: ""
                      - entity: sensor.martha_fenster_links
                        name: Fenster Links
                      - entity: sensor.martha_fenster_rechts
                        name: Fenster Rechts
                      - entity: sensor.martha_wandthermostat_temperatur
                        name: Temperatur
          - type: vertical-stack
            cards:
              - type: heading
                heading: Schlafzimmer
                heading_style: subtitle
                badges:
                  - type: entity
                    entity: input_boolean.beschattung_sperre_schlafzimmer
                    icon: mdi:hand-back-right
                    show_name: false
                    show_state: false
                    color: red
                    tap_action:
                      action: call-service
                      service: timer.cancel
                      service_data:
                        entity_id: timer.beschattung_sperre_schlafzimmer
                  - type: entity
                    entity: binary_sensor.schlafzimmer_fenster_links_window
                    icon: mdi:window-open
                    show_name: false
                    show_state: false
                    color: blue
                  - type: entity
                    entity: binary_sensor.schlafzimmer_fenster_rechts_window
                    icon: mdi:window-open
                    show_name: false
                    show_state: false
                    color: blue
                  - type: entity
                    entity: binary_sensor.sonnenschutz_gartenseite_noetig
                    icon: mdi:weather-sunny
                    show_name: false
                    show_state: false
                    color: amber
                  - type: entity
                    entity: binary_sensor.beschattung_hitzeschutz_noetig
                    icon: mdi:fire
                    show_name: false
                    show_state: false
                    color: deep-orange
                  - type: entity
                    entity: binary_sensor.jemand_zuhause
                    icon: mdi:account
                    show_name: false
                    show_state: false
                    color: green
              - type: entities
                show_header_toggle: false
                entities:
                  - type: custom:template-entity-row
                    entity: input_boolean.beschattung_schlafzimmer_aktiv
                    icon: mdi:bed-king
                    toggle: true
                    name: >-
                      {{ state_attr('cover.schlafzimmer','current_position')|int
                      }}%{% if
                      is_state('input_boolean.beschattung_schlafzimmer_fenstersteuerung','on')
                      %}  🔄{% endif %}
                  - type: custom:fold-entity-row
                    head:
                      type: custom:template-entity-row
                      entity: input_select.beschattung_schlafzimmer_profil
                      name: Einstellungen
                      icon: mdi:tune
                      state: >-
                        {{
                        states('input_select.beschattung_schlafzimmer_profil')
                        }}
                    items:
                      - entity: input_select.beschattung_schlafzimmer_profil
                        name: Profil
                      - entity: >-
                          input_boolean.beschattung_schlafzimmer_fenstersteuerung
                        name: Fenstersteuerung
                      - entity: input_number.beschattung_schlafzimmer_luftungsposition
                        name: Lüftungsposition
                      - entity: input_boolean.beschattung_sperre_schlafzimmer
                        name: Komfortsperre
                        icon: mdi:hand-back-right
                      - type: conditional
                        conditions:
                          - condition: state
                            entity: timer.beschattung_sperre_schlafzimmer
                            state: active
                        row:
                          entity: timer.beschattung_sperre_schlafzimmer
                          name: ""
                      - entity: sensor.schlafzimmer_fenster_links
                        name: Fenster Links
                      - entity: sensor.schlafzimmer_fenster_rechts
                        name: Fenster Rechts
          - type: vertical-stack
            cards:
              - type: heading
                heading: Küche
                heading_style: subtitle
                badges:
                  - type: entity
                    entity: input_boolean.beschattung_sperre_kueche
                    icon: mdi:hand-back-right
                    show_name: false
                    show_state: false
                    color: red
                    tap_action:
                      action: call-service
                      service: timer.cancel
                      service_data:
                        entity_id: timer.beschattung_sperre_kuche
                  - type: entity
                    entity: binary_sensor.kuchenfenster_window
                    icon: mdi:window-open
                    show_name: false
                    show_state: false
                    color: blue
                  - type: entity
                    entity: binary_sensor.sonnenschutz_vorderseite_noetig
                    icon: mdi:weather-sunny
                    show_name: false
                    show_state: false
                    color: amber
                  - type: entity
                    entity: binary_sensor.beschattung_hitzeschutz_noetig
                    icon: mdi:fire
                    show_name: false
                    show_state: false
                    color: deep-orange
                  - type: entity
                    entity: binary_sensor.jemand_zuhause
                    icon: mdi:account
                    show_name: false
                    show_state: false
                    color: green
              - type: entities
                show_header_toggle: false
                entities:
                  - type: custom:template-entity-row
                    entity: input_boolean.beschattung_kueche_aktiv
                    icon: mdi:fridge-outline
                    toggle: true
                    name: >-
                      {{ state_attr('cover.kueche','current_position')|int }}% 
                      ·  PV1 {{
                      states('sensor.solarbank_3_e2700_pro_solar_pv1')|int }}W
                  - type: custom:fold-entity-row
                    head:
                      type: custom:template-entity-row
                      entity: input_select.beschattung_kueche_profil
                      name: Einstellungen
                      icon: mdi:tune
                      state: "{{ states('input_select.beschattung_kueche_profil') }}"
                    items:
                      - entity: input_select.beschattung_kueche_profil
                        name: Profil
                      - entity: input_boolean.beschattung_sperre_kueche
                        name: Komfortsperre
                        icon: mdi:hand-back-right
                      - type: conditional
                        conditions:
                          - condition: state
                            entity: timer.beschattung_sperre_kuche
                            state: active
                        row:
                          entity: timer.beschattung_sperre_kuche
                          name: ""
                      - entity: sensor.kuchenfenster
                        name: Fenster
                      - entity: input_number.beschattung_pv1_schwelle_kuche
                        name: PV1 Schwelle
          - type: vertical-stack
            cards:
              - type: heading
                heading: Karell (geplant)
                heading_style: subtitle
                badges:
                  - type: entity
                    entity: binary_sensor.karell_fenster
                    icon: mdi:window-open
                    show_name: false
                    show_state: false
                    color: blue
                  - type: entity
                    entity: binary_sensor.sonnenschutz_gartenseite_noetig
                    icon: mdi:weather-sunny
                    show_name: false
                    show_state: false
                    color: amber
                  - type: entity
                    entity: binary_sensor.beschattung_hitzeschutz_noetig
                    icon: mdi:fire
                    show_name: false
                    show_state: false
                    color: deep-orange
                  - type: entity
                    entity: person.karell
                    icon: mdi:account
                    show_name: false
                    show_state: false
                    color: green
              - type: entities
                show_header_toggle: false
                entities:
                  - type: custom:template-entity-row
                    entity: input_boolean.beschattung_karell_aktiv
                    icon: mdi:clock-outline
                    toggle: true
                    name: –
                  - type: custom:fold-entity-row
                    head:
                      type: custom:template-entity-row
                      entity: input_boolean.beschattung_karell_aktiv
                      name: Einstellungen
                      icon: mdi:tune
                      state: ""
                    items:
                      - entity: sensor.karell_fenster
                        name: Fenster
                      - entity: sensor.karell_wandthermostat_temperatur
                        name: Temperatur
        column_span: 2
      - type: grid
        cards:
          - type: custom:sun-position-card
            entity: sun.sun
            animate_images: true
            show_image: true
            state_position: in_list
            show_dividers: true
            show_degrees: true
            show_degrees_in_list: true
            times_to_show:
              - next_rising
              - next_setting
            time_position: right
            time_list_format: block
            morning_azimuth: 135
            noon_azimuth: 180
            afternoon_azimuth: 260
            sun_size: 50
            hide_moon_phase_on_day: false
            show_moon_icon_in_text: false
            show_night_arc: false
            use_12h_format: false
            weather_entity: weather.forecast_home
            temp_entity: sensor.ebusd_lueftung_wtw04_tempoutsideair_sao
            view_mode: arc
            show_weather_badge: true
            language: de
            solar_entity: sensor.solarbank_3_e2700_pro_solarleistung
            show_solar_badge: true
          - type: heading
            heading: Betrieb
            heading_style: subtitle
          - type: tile
            entity: script.beschattung_komfortsperren_loeschen
            name: Sperren löschen
            icon: mdi:lock-open-remove
          - type: heading
            heading: Feinjustierung
            heading_style: subtitle
          - type: entities
            show_header_toggle: false
            entities:
              - type: custom:fold-entity-row
                head:
                  type: custom:template-entity-row
                  name: Sonnenstand
                  icon: mdi:compass
                  entity: binary_sensor.sonne_auf_gartenseite
                  state: >-
                    V: {{
                    states('input_number.beschattung_vorderseite_azimut_min')|int
                    }}–{{
                    states('input_number.beschattung_vorderseite_azimut_max')|int
                    }}°  G: {{
                    states('input_number.beschattung_gartenseite_azimut_min')|int
                    }}–{{
                    states('input_number.beschattung_gartenseite_azimut_max')|int
                    }}°
                items:
                  - entity: input_number.beschattung_vorderseite_azimut_min
                    name: V Az. Min
                  - entity: input_number.beschattung_vorderseite_azimut_max
                    name: V Az. Max
                  - entity: input_number.beschattung_vorderseite_elevation_min
                    name: V El. Min
                  - entity: input_number.beschattung_gartenseite_azimut_min
                    name: G Az. Min
                  - entity: input_number.beschattung_gartenseite_azimut_max
                    name: G Az. Max
                  - entity: input_number.beschattung_gartenseite_elevation_min
                    name: G El. Min
                  - entity: input_number.beschattung_markise_elevation_max
                    name: Markise Grenzwert
          - type: entities
            show_header_toggle: false
            entities:
              - type: custom:fold-entity-row
                head:
                  type: custom:template-entity-row
                  name: Schwellen
                  icon: mdi:thermometer
                  entity: sensor.beschattung_aussentemperatur
                  state: >-
                    ☀️ {{
                    states('input_number.beschattung_schwelle_aussen_sonnenschutz')|int
                    }}°  🔥 {{
                    states('input_number.beschattung_schwelle_aussen_hitzeschutz')|int
                    }}°
                items:
                  - entity: input_number.beschattung_schwelle_aussen_sonnenschutz
                    name: Sonnenschutz ab
                  - entity: input_number.beschattung_schwelle_aussen_hitzeschutz
                    name: Hitzeschutz ab (Außen)
                  - entity: input_number.beschattung_forecast_maxtemp_heute
                    name: Prognose Max
                  - entity: input_number.beschattung_pv1_schwelle_kuche
                    name: PV1 Schwelle Küche
                  - entity: input_number.beschattung_garten_temperaturschwelle
                    name: Garten Temperaturschwelle
                  - entity: input_select.beschattung_garten_sonnensensor
                    name: Garten Sonnensensor
          - type: entities
            show_header_toggle: false
            entities:
              - type: custom:fold-entity-row
                head:
                  type: custom:template-entity-row
                  name: Positionen Komfort
                  icon: mdi:window-shutter
                  entity: input_number.beschattung_pos_komfort_hitzeschutz_anwesend
                  state: >-
                    Hitze: {{
                    states('input_number.beschattung_pos_komfort_hitzeschutz_anwesend')|int
                    }}% / {{
                    states('input_number.beschattung_pos_komfort_hitzeschutz_abwesend')|int
                    }}%
                items:
                  - entity: input_number.beschattung_pos_komfort_sonnenschutz_anwesend
                    name: Sonne Anwesend
                  - entity: input_number.beschattung_pos_komfort_hitzeschutz_anwesend
                    name: Hitze Anwesend
                  - entity: input_number.beschattung_pos_komfort_sonnenschutz_abwesend
                    name: Sonne Abwesend
                  - entity: input_number.beschattung_pos_komfort_hitzeschutz_abwesend
                    name: Hitze Abwesend
          - type: entities
            show_header_toggle: false
            entities:
              - type: custom:fold-entity-row
                head:
                  type: custom:template-entity-row
                  name: Positionen Hitzeschutz
                  icon: mdi:window-shutter-alert
                  entity: input_number.beschattung_pos_hitze_hitzeschutz_anwesend
                  state: >-
                    Hitze: {{
                    states('input_number.beschattung_pos_hitze_hitzeschutz_anwesend')|int
                    }}% / {{
                    states('input_number.beschattung_pos_hitze_hitzeschutz_abwesend')|int
                    }}%
                items:
                  - entity: input_number.beschattung_pos_hitze_sonnenschutz_anwesend
                    name: Sonne Anwesend
                  - entity: input_number.beschattung_pos_hitze_hitzeschutz_anwesend
                    name: Hitze Anwesend
                  - entity: input_number.beschattung_pos_hitze_sonnenschutz_abwesend
                    name: Sonne Abwesend
                  - entity: input_number.beschattung_pos_hitze_hitzeschutz_abwesend
                    name: Hitze Abwesend
          - type: entities
            show_header_toggle: false
            entities:
              - type: custom:fold-entity-row
                head:
                  type: custom:template-entity-row
                  name: Zeitparameter
                  icon: mdi:timer-outline
                  entity: input_number.beschattung_mindestabstand
                  state: >-
                    Rücknahme {{
                    states('input_number.beschattung_ruecknahme_verzoegerung')|int
                    }} min
                items:
                  - entity: input_number.beschattung_komfortsperre_dauer
                    name: Komfortsperre Dauer
                  - entity: input_number.beschattung_ruecknahme_verzoegerung
                    name: Rücknahme
                  - entity: input_number.beschattung_tuer_wartezeit
                    name: Tür-Wartezeit
                  - entity: input_number.beschattung_mindestabstand
                    name: Mindestabstand
                  - entity: input_number.beschattung_neustart_wartezeit
                    name: Neustart-Wartezeit
                  - entity: input_number.beschattung_abwesenheit_benachrichtigung_verz
                    name: Nachricht nach
                  - entity: input_number.beschattung_abwesenheit_antwort_timeout
                    name: Timeout
                  - entity: >-
                      input_number.beschattung_hitzeschutz_sonnenuntergang_puffer
                    name: Hitzeschutz endet vor Untergang
                  - entity: input_number.beschattung_schlafzimmer_luftungsposition
                    name: Schlafzimmer Lüftungsposition
        column_span: 1
    background:
      opacity: 10
      alignment: center
      size: cover
      repeat: repeat
      attachment: fixed
  - type: sections
    max_columns: 4
    title: SmartHome
    path: smarthome
    icon: mdi:home-assistant
    sections:
      - type: grid
        cards:
          - type: heading
            heading: Router
            heading_style: subtitle
          - type: entities
            entities:
              - entity: sensor.router_power
              - entity: sensor.router_energy
              - type: divider
              - entity: sensor.fritz_box_6890_lte_download_durchsatz
              - entity: sensor.fritz_box_6890_lte_upload_durchsatz
              - entity: >-
                  sensor.fritz_box_6890_lte_maximaler_download_durchsatz_der_verbindung
              - entity: >-
                  sensor.fritz_box_6890_lte_maximaler_upload_durchsatz_der_verbindung
              - entity: sensor.fritz_box_6890_lte_link_download_durchsatz
              - entity: sensor.fritz_box_6890_lte_link_upload_durchsatz
              - entity: sensor.fritz_box_6890_lte_letzter_neustart
              - entity: binary_sensor.fritz_box_6890_lte_verbindung
          - type: custom:apexcharts-card
            header:
              show: true
              title: Fritz!Box – WAN-Durchsatz (6h)
              show_states: false
              colorize_states: true
            graph_span: 6h
            all_series_config:
              stroke_width: 2
            apex_config:
              legend:
                show: true
              yaxis:
                decimalsInFloat: 1
            series:
              - entity: sensor.fritz_box_6890_lte_download_durchsatz
                name: Download
                type: line
              - entity: sensor.fritz_box_6890_lte_upload_durchsatz
                name: Upload
                type: line
              - entity: sensor.fritz_box_6890_lte_link_download_durchsatz
                name: Link Download
                type: area
                opacity: 0.15
              - entity: sensor.fritz_box_6890_lte_link_upload_durchsatz
                name: Link Upload
                type: area
                opacity: 0.15
      - type: grid
        cards:
          - type: custom:apexcharts-card
            header:
              show: true
              title: Proxmox – Node pve Ressourcen (24h)
              show_states: true
              colorize_states: true
            graph_span: 24h
            span:
              start: day
            all_series_config:
              stroke_width: 2
            apex_config:
              legend:
                show: true
              yaxis:
                min: 0
                max: 100
            series:
              - entity: sensor.node_pve_cpu_auslastung
                name: CPU %
                type: line
              - entity: sensor.node_pve_prozentsatz_genutzter_arbeitsspeicher
                name: RAM genutzt %
                type: area
                opacity: 0.25
              - entity: sensor.node_pve_prozentsatz_belegter_speicherplatz
                name: Disk belegt %
                type: area
                opacity: 0.25
          - type: custom:apexcharts-card
            header:
              show: true
              title: Proxmox – CPU-Auslastung VMs & Container (6h)
              show_states: false
              colorize_states: true
            graph_span: 6h
            all_series_config:
              stroke_width: 2
            apex_config:
              legend:
                show: true
            series:
              - entity: sensor.qemu_homeassistant_101_cpu_auslastung
                name: HA VM (101)
                type: line
              - entity: sensor.qemu_openccu_103_cpu_auslastung
                name: OpenCCU (103)
                type: line
              - entity: sensor.lxc_cloudflared_102_cpu_auslastung
                name: cloudflared (102)
                type: line
              - entity: sensor.lxc_ebusd_lueftung_107_cpu_auslastung
                name: ebusd-lueftung (107)
                type: line
              - entity: sensor.lxc_influxdb_104_cpu_auslastung
                name: influxdb (104)
                type: line
          - type: custom:apexcharts-card
            header:
              show: true
              title: Proxmox – RAM-Auslastung VMs & Container (6h)
              show_states: false
              colorize_states: true
            graph_span: 6h
            all_series_config:
              stroke_width: 2
            apex_config:
              legend:
                show: true
              yaxis:
                min: 0
                max: 100
            series:
              - entity: >-
                  sensor.qemu_homeassistant_101_prozentsatz_genutzter_arbeitsspeicher
                name: HA VM (101)
                type: line
              - entity: sensor.qemu_openccu_103_prozentsatz_genutzter_arbeitsspeicher
                name: OpenCCU (103)
                type: line
              - entity: >-
                  sensor.lxc_cloudflared_102_prozentsatz_genutzter_arbeitsspeicher
                name: cloudflared (102)
                type: line
              - entity: >-
                  sensor.lxc_ebusd_lueftung_107_prozentsatz_genutzter_arbeitsspeicher
                name: ebusd-lueftung (107)
                type: line
              - entity: sensor.lxc_influxdb_104_prozentsatz_genutzter_arbeitsspeicher
                name: influxdb (104)
                type: line
          - type: entities
            title: Proxmox – Disk pve INTENSO SSD
            state_color: true
            entities:
              - entity: binary_sensor.disk_pve_intenso_ssd_gesundheit
                name: Gesundheit
              - entity: sensor.disk_pve_intenso_ssd_temperatur
                name: Temperatur
              - entity: sensor.disk_pve_intenso_ssd_verschleiss
                name: Verschleiß
              - type: divider
              - entity: sensor.disk_pve_intenso_ssd_betriebsstunden
                name: Betriebsstunden
              - entity: sensor.disk_pve_intenso_ssd_leistungszyklen
                name: Leistungszyklen
              - entity: sensor.disk_pve_intenso_ssd_grosse
                name: Größe
              - entity: sensor.disk_pve_intenso_ssd_knoten
                name: Knoten
          - type: entities
            title: Proxmox – Storage-Pools
            state_color: true
            entities:
              - type: custom:fold-entity-row
                head:
                  entity: sensor.storage_pve_local_prozentsatz_belegter_speicherplatz
                  name: Storage pve/local
                  secondary_info: last-changed
                items:
                  - entity: >-
                      sensor.storage_pve_local_prozentsatz_belegter_speicherplatz
                    name: Belegt %
                  - entity: sensor.storage_pve_local_knoten
                    name: Knoten
              - type: custom:fold-entity-row
                head:
                  entity: >-
                    sensor.storage_pve_local_backup_prozentsatz_belegter_speicherplatz
                  name: Storage pve/local-backup
                  secondary_info: last-changed
                items:
                  - entity: >-
                      sensor.storage_pve_local_backup_prozentsatz_belegter_speicherplatz
                    name: Belegt %
                  - entity: sensor.storage_pve_local_backup_knoten
                    name: Knoten
              - type: custom:fold-entity-row
                head:
                  entity: >-
                    sensor.storage_pve_local_lvm_prozentsatz_belegter_speicherplatz
                  name: Storage pve/local-lvm
                  secondary_info: last-changed
                items:
                  - entity: >-
                      sensor.storage_pve_local_lvm_prozentsatz_belegter_speicherplatz
                    name: Belegt %
                  - entity: sensor.storage_pve_local_lvm_knoten
                    name: Knoten
      - type: grid
        cards:
          - type: heading
            heading_style: subtitle
            heading: Energiemanagement
          - type: entities
            entities:
              - type: custom:fold-entity-row
                head:
                  type: custom:template-entity-row
                  name: Strom abschalten
                  icon: mdi:power
                items:
                  - type: custom:template-entity-row
                    entity: switch.router
                    icon: mdi:router-network-wireless
                    name: Router
                    toggle: false
                    secondary: |
                      Schaltet sich nach 10 Sekunden wieder an.
                  - type: custom:template-entity-row
                    entity: switch.proxmox_host
                    icon: mdi:server
                    name: ProxMox Host (mit HomeAssistant)
                    toggle: false
                    secondary: |
                      Schaltet sich nach 10 Sekunden wieder an.
                  - entity: switch.drucker
                    icon: mdi:printer
                  - entity: switch.steckdose_4
                    icon: mdi:power-plug
      - type: grid
        cards:
          - type: heading
            heading: ProxMox Host
            heading_style: subtitle
          - type: entities
            entities:
              - entity: sensor.proxmox_host_power
              - entity: sensor.proxmox_host_energy
          - type: heading
            icon: ""
            heading: ProxMox (VM & Container)
            heading_style: subtitle
          - type: entities
            state_color: true
            entities:
              - type: custom:fold-entity-row
                head:
                  entity: binary_sensor.qemu_homeassistant_101_status
                  name: QEMU homeassistant (101)
                  secondary_info: last-changed
                items:
                  - entity: binary_sensor.qemu_homeassistant_101_gesundheit
                    name: Gesundheit
                  - entity: sensor.qemu_homeassistant_101_cpu_auslastung
                    name: CPU-Auslastung
                  - entity: >-
                      sensor.qemu_homeassistant_101_prozentsatz_genutzter_arbeitsspeicher
                    name: RAM genutzt %
                  - entity: >-
                      sensor.qemu_homeassistant_101_prozentsatz_belegter_speicherplatz
                    name: Disk belegt %
                  - type: divider
                  - entity: sensor.qemu_homeassistant_101_genutzter_arbeitsspeicher
                    name: Genutzter Arbeitsspeicher
                  - entity: sensor.qemu_homeassistant_101_freier_arbeitsspeicher
                    name: Freier Arbeitsspeicher
                  - entity: sensor.qemu_homeassistant_101_knoten
                    name: Knoten
                  - entity: sensor.qemu_homeassistant_101_letzter_start
                    name: Letzter Start
                  - entity: sensor.qemu_homeassistant_101_status
                    name: Status (Text)
              - type: custom:fold-entity-row
                head:
                  entity: binary_sensor.qemu_openccu_103_status
                  name: QEMU OpenCCU (103)
                  secondary_info: last-changed
                items:
                  - entity: binary_sensor.qemu_openccu_103_gesundheit
                    name: Gesundheit
                  - entity: sensor.qemu_openccu_103_cpu_auslastung
                    name: CPU-Auslastung
                  - entity: >-
                      sensor.qemu_openccu_103_prozentsatz_genutzter_arbeitsspeicher
                    name: RAM genutzt %
                  - entity: sensor.qemu_openccu_103_prozentsatz_belegter_speicherplatz
                    name: Disk belegt %
                  - type: divider
                  - entity: sensor.qemu_openccu_103_genutzter_arbeitsspeicher
                    name: Genutzter Arbeitsspeicher
                  - entity: sensor.qemu_openccu_103_freier_arbeitsspeicher
                    name: Freier Arbeitsspeicher
                  - entity: sensor.qemu_openccu_103_knoten
                    name: Knoten
                  - entity: sensor.qemu_openccu_103_letzter_start
                    name: Letzter Start
                  - entity: sensor.qemu_openccu_103_status
                    name: Status (Text)
              - type: custom:fold-entity-row
                head:
                  entity: binary_sensor.lxc_cloudflared_102_status
                  name: LXC cloudflared (102)
                  secondary_info: last-changed
                items:
                  - entity: sensor.lxc_cloudflared_102_cpu_auslastung
                    name: CPU-Auslastung
                  - entity: >-
                      sensor.lxc_cloudflared_102_prozentsatz_genutzter_arbeitsspeicher
                    name: RAM genutzt %
                  - entity: >-
                      sensor.lxc_cloudflared_102_prozentsatz_belegter_speicherplatz
                    name: Disk belegt %
                  - type: divider
                  - entity: sensor.lxc_cloudflared_102_genutzter_arbeitsspeicher
                    name: Genutzter Arbeitsspeicher
                  - entity: sensor.lxc_cloudflared_102_freier_arbeitsspeicher
                    name: Freier Arbeitsspeicher
                  - entity: sensor.lxc_cloudflared_102_node
                    name: Node
                  - entity: sensor.lxc_cloudflared_102_letzter_start
                    name: Letzter Start
              - type: custom:fold-entity-row
                head:
                  entity: binary_sensor.lxc_ebusd_lueftung_107_status
                  name: LXC ebusd-lueftung (107)
                  secondary_info: last-changed
                items:
                  - entity: sensor.lxc_ebusd_lueftung_107_cpu_auslastung
                    name: CPU-Auslastung
                  - entity: >-
                      sensor.lxc_ebusd_lueftung_107_prozentsatz_genutzter_arbeitsspeicher
                    name: RAM genutzt %
                  - entity: >-
                      sensor.lxc_ebusd_lueftung_107_prozentsatz_belegter_speicherplatz
                    name: Disk belegt %
                  - type: divider
                  - entity: sensor.lxc_ebusd_lueftung_107_genutzter_arbeitsspeicher
                    name: Genutzter Arbeitsspeicher
                  - entity: sensor.lxc_ebusd_lueftung_107_freier_arbeitsspeicher
                    name: Freier Arbeitsspeicher
                  - entity: sensor.lxc_ebusd_lueftung_107_node
                    name: Node
                  - entity: sensor.lxc_ebusd_lueftung_107_letzter_start
                    name: Letzter Start
              - type: custom:fold-entity-row
                head:
                  entity: binary_sensor.lxc_influxdb_104_status
                  name: LXC influxdb (104)
                  secondary_info: last-changed
                items:
                  - entity: sensor.lxc_influxdb_104_cpu_auslastung
                    name: CPU-Auslastung
                  - entity: >-
                      sensor.lxc_influxdb_104_prozentsatz_genutzter_arbeitsspeicher
                    name: RAM genutzt %
                  - entity: sensor.lxc_influxdb_104_prozentsatz_belegter_speicherplatz
                    name: Disk belegt %
                  - type: divider
                  - entity: sensor.lxc_influxdb_104_genutzter_arbeitsspeicher
                    name: Genutzter Arbeitsspeicher
                  - entity: sensor.lxc_influxdb_104_freier_arbeitsspeicher
                    name: Freier Arbeitsspeicher
                  - entity: sensor.lxc_influxdb_104_node
                    name: Node
                  - entity: sensor.lxc_influxdb_104_letzter_start
                    name: Letzter Start
          - type: heading
            icon: ""
            heading: ProxMox - PVE
            heading_style: subtitle
          - type: entities
            state_color: true
            entities:
              - entity: binary_sensor.node_pve_status
                name: Node Status
              - entity: sensor.node_pve_cpu_auslastung
                name: CPU-Auslastung
              - entity: sensor.node_pve_prozentsatz_genutzter_arbeitsspeicher
                name: RAM genutzt %
              - entity: sensor.node_pve_prozentsatz_belegter_speicherplatz
                name: Disk belegt %
              - type: divider
              - entity: sensor.node_pve_virtual_machines_running
                name: Virtuelle Maschinen (running)
              - entity: sensor.node_pve_container_laufen
                name: Container laufen
              - type: divider
              - entity: sensor.node_pve_gesamte_updates
                name: Gesamte Updates
              - entity: binary_sensor.node_pve_pakete_aktualisieren
                name: Pakete aktualisieren nötig?
              - entity: sensor.node_pve_letzter_start
                name: Letzter Start
    badges:
      - type: entity
        show_name: true
        show_state: true
        show_icon: true
        entity: sensor.router_power
        name:
          type: device
      - type: entity
        show_name: true
        show_state: true
        show_icon: true
        entity: sensor.proxmox_host_power
        name:
          type: device
      - type: entity
        show_name: true
        show_state: true
        show_icon: true
        entity: sensor.drucker_power
        name:
          type: device
    cards: []
  - type: sections
    max_columns: 4
    icon: mdi:counter
    path: ""
    sections:
      - type: grid
        cards:
          - type: heading
            heading: Strom
            heading_style: subtitle
            badges: []
          - type: entities
            entities:
              - entity: sensor.zahlerstand
                secondary_info: last-changed
              - type: custom:template-entity-row
                icon: mdi:numeric
                name: Zählernummer
                state: 1ISK0196056989
              - entity: input_datetime.strom_letzter_zahlerwechsel
                name: Eingebaut am
            header:
              type: graph
              entity: sensor.zahlerstand
              detail: 2
              hours_to_show: 24
          - type: entities
            entities:
              - entity: sensor.strom_smr_e_out
                name: Strom Zählerstand (Einspeisung)
                secondary_info: last-changed
              - type: custom:template-entity-row
                icon: mdi:numeric
                name: Zählernummer
                state: 1ISK0196056989
              - entity: input_datetime.strom_letzter_zahlerwechsel
                name: Eingebaut am
            header:
              type: graph
              entity: sensor.strom_smr_e_out
              detail: 2
              hours_to_show: 24
      - type: grid
        cards:
          - type: heading
            icon: ""
            heading: Gas
            heading_style: subtitle
            badges: []
          - type: entities
            entities:
              - entity: sensor.gas_smartmeterreader_gasverbrauch
                name: Zählerstand
                secondary_info: last-changed
              - type: custom:template-entity-row
                icon: mdi:numeric
                name: Zählernummer
                state: 7ELS2540913297
              - entity: input_datetime.gas_letzter_zahlerwechsel
                name: Eingebaut am
            state_color: false
            header:
              type: graph
              entity: sensor.gas_smartmeterreader_gasverbrauch
              detail: 2
      - type: grid
        cards:
          - type: heading
            icon: ""
            heading: Wasser
            heading_style: subtitle
          - type: entities
            entities:
              - entity: sensor.wasser_zahlerstand
                name: Zählerstand
                secondary_info: last-changed
              - type: custom:template-entity-row
                icon: mdi:numeric
                name: Wasserzähler
                state: WZ 53672535
              - entity: input_datetime.wasser_letzter_zahlerwechsel
                name: Eingebaut am
            state_color: false
            header:
              type: graph
              entity: sensor.wasser_zahlerstand
              detail: 2
      - type: grid
        cards:
          - type: heading
            icon: ""
            heading: Wasser (Gartenzähler)
            heading_style: subtitle
          - type: entities
            entities:
              - entity: sensor.gartenwasser_zahlerstand
                name: Zählerstand
              - type: custom:template-entity-row
                icon: mdi:numeric
                name: Gartenwasser
                state: GZ 2000024537
              - entity: input_datetime.gartenwasser_letzter_zahlerwechsel
                name: Eingebaut am
            state_color: false
            header:
              type: graph
              entity: sensor.gartenwasser_zahlerstand
    dense_section_placement: true
    cards: []
    title: Zählerstände
  - type: sections
    max_columns: 4
    title: Fenster & Türen
    path: fenster-turen
    icon: mdi:window-open-variant
    sections:
      - type: grid
        cards:
          - type: heading
            heading: Neuer Abschnitt
  - title: Home
    sections:
      - type: grid
        cards:
          - type: heading
            heading: Haus Allgemein
            heading_style: title
            icon: mdi:home-outline
        column_span: 3
      - type: grid
        cards:
          - type: entities
            title: Waschmaschine
            show_header_toggle: false
            entities:
              - entity: sensor.waschmaschine_aktuelle_phase
                name: Aktuelle Phase
              - entity: sensor.waschmaschine_zustand
                name: Zustand
              - entity: binary_sensor.waschmaschine_lauft_2
                name: Läuft
              - entity: sensor.waschmaschine_fortschritt
                name: Fortschritt
              - entity: sensor.waschmaschine_verbleibende_zeit
                name: Verbleibende Zeit
              - type: custom:fold-entity-row
                head:
                  type: section
                  label: Weitere Details
                entities:
                  - entity: sensor.waschmaschine_aktuelle_leistung
                    name: Aktuelle Leistung
                  - entity: sensor.waschmaschine_programm
                    name: Programm
                  - entity: sensor.waschmaschine_gesamtdauer
                    name: Gesamtdauer
                  - entity: sensor.waschmaschine_verstrichene_zeit
                    name: Verstrichene Zeit
                  - entity: sensor.waschmaschine_zyklusanzahl
                    name: Zyklusanzahl
          - type: entities
            title: Geschirrspüler
            show_header_toggle: false
            entities:
              - entity: sensor.geschirrspuler_aktuelle_phase
                name: Aktuelle Phase
              - entity: sensor.geschirrspuler_zustand
                name: Zustand
              - entity: binary_sensor.geschirrspuler_lauft_2
                name: Läuft
              - entity: sensor.geschirrspuler_fortschritt
                name: Fortschritt
              - entity: sensor.geschirrspuler_verbleibende_zeit
                name: Verbleibende Zeit
              - type: custom:fold-entity-row
                head:
                  type: section
                  label: Weitere Details
                entities:
                  - entity: sensor.geschirrspuler_aktuelle_leistung
                    name: Aktuelle Leistung
                  - entity: sensor.geschirrspuler_programm
                    name: Programm
                  - entity: sensor.geschirrspuler_gesamtdauer
                    name: Gesamtdauer
                  - entity: sensor.geschirrspuler_verstrichene_zeit
                    name: Verstrichene Zeit
                  - entity: sensor.geschirrspuler_zyklusanzahl
                    name: Zyklusanzahl
          - type: heading
            heading: Lüftungsanlage
            heading_style: title
            icon: mdi:air-filter
      - type: grid
        cards:
          - type: heading
            heading: AVIA XPress Wolfsacker 4
          - type: tile
            entity: sensor.avia_xpress_wolfsacker_4_diesel
    type: sections
    max_columns: 3
    cards: []
    icon: mdi:home-modern
    badges:
      - type: entity
        show_name: true
        show_state: true
        show_icon: true
        entity: sensor.zahlerstand
        name: Strom
      - type: entity
        show_name: true
        show_state: true
        show_icon: true
        name: Gas
        entity: sensor.gas_smartmeterreader_gasverbrauch
      - type: entity
        show_name: true
        show_state: true
        show_icon: true
        entity: sensor.wasser_zahlerstand
        name: Wasser
  - icon: mdi:monitor-dashboard
    type: sections
    subview: false
    cards:
      - type: custom:auto-entities
        card:
          show_header_toggle: false
          type: entities
          state_color: true
        filter:
          include:
            - sort:
                method: name
              label: Fenster
              state: Offen
              options:
                secondary_info: last-changed
            - label: Fenster
              state: Gekippt
              options:
                secondary_info: last-changed
            - label: Fenster
              state: "on"
          exclude:
            - entity_id: binary_sensor.fenster_state
        sort:
          method: friendly_name
          reverse: false
          numeric: false
          ignore_case: false
          ip: false
        show_empty: false
        unique: true
    visible:
      - user: c5f685dc82c147ae8ba800ce4b019fc0
    theme: Google Theme
    sections:
      - type: grid
        cards:
          - type: heading
            icon: mdi:monitor-dashboard
            heading: System Monitor
            heading_style: subtitle
            visibility:
              - condition: user
                users:
                  - c5f685dc82c147ae8ba800ce4b019fc0
          - chart_type: line
            period: 5minute
            type: statistics-graph
            entities:
              - sensor.home_assistant_core_cpu_percent
              - sensor.home_assistant_core_memory_percent
            stat_types:
              - max
              - mean
              - min
            days_to_show: 1
            visibility:
              - condition: user
                users:
                  - c5f685dc82c147ae8ba800ce4b019fc0
          - type: heading
            icon: mdi:cloud-outline
            heading: Internet
            heading_style: subtitle
          - type: tile
            features_position: bottom
            vertical: false
            entity: >-
              sensor.fritz_box_6890_lte_maximaler_download_durchsatz_der_verbindung
            name: Download
            visibility:
              - condition: user
                users:
                  - c5f685dc82c147ae8ba800ce4b019fc0
          - type: tile
            features_position: bottom
            vertical: false
            entity: >-
              sensor.fritz_box_6890_lte_maximaler_upload_durchsatz_der_verbindung
            name: Upload
            visibility:
              - condition: user
                users:
                  - c5f685dc82c147ae8ba800ce4b019fc0
          - chart_type: line
            period: 5minute
            type: statistics-graph
            entities:
              - sensor.fritz_box_6890_lte_download_durchsatz
              - sensor.fritz_box_6890_lte_upload_durchsatz
            stat_types:
              - max
            days_to_show: 1
            visibility:
              - condition: user
                users:
                  - c5f685dc82c147ae8ba800ce4b019fc0
          - type: tile
            features_position: bottom
            vertical: false
            name: Download
            visibility:
              - condition: user
                users:
                  - c5f685dc82c147ae8ba800ce4b019fc0
            entity: sensor.fritz_box_6890_lte_link_download_durchsatz
          - type: tile
            features_position: bottom
            vertical: false
            name: Upload
            visibility:
              - condition: user
                users:
                  - c5f685dc82c147ae8ba800ce4b019fc0
            entity: sensor.fritz_box_6890_lte_link_upload_durchsatz
          - type: tile
            features_position: bottom
            vertical: false
            name: Download
            visibility:
              - condition: user
                users:
                  - c5f685dc82c147ae8ba800ce4b019fc0
            entity: sensor.fritz_box_6890_lte_download_durchsatz
          - type: tile
            features_position: bottom
            vertical: false
            name: Upload
            visibility:
              - condition: user
                users:
                  - c5f685dc82c147ae8ba800ce4b019fc0
            entity: sensor.fritz_box_6890_lte_upload_durchsatz
      - type: grid
        cards:
          - type: heading
            heading: Fenster & Türen
            heading_style: subtitle
          - type: custom:auto-entities
            card:
              show_header_toggle: false
              type: entities
              state_color: true
            filter:
              include:
                - sort:
                    method: name
                  label: Fenster
                  state: Geschlossen
                  options:
                    secondary_info: last-changed
                - label: Fenster
                  state: "off"
                  options:
                    secondary_info: last-changed
              exclude:
                - entity_id: binary_sensor.fenster_state
            sort:
              method: friendly_name
              reverse: false
              numeric: false
              ignore_case: false
              ip: false
            show_empty: false
            unique: true
      - type: grid
        cards:
          - type: heading
            heading: Licht
            heading_style: subtitle
          - type: custom:auto-entities
            card:
              show_header_toggle: false
              type: entities
            filter:
              include:
                - domain: light
                  options:
                    secondary_info: last-changed
                  sort:
                    method: name
              exclude:
                - entity_id: light.licht_status
            sort:
              method: friendly_name
              reverse: false
              numeric: false
            show_empty: false
            unique: true
      - type: grid
        cards:
          - type: heading
            heading: Temperaturen
            heading_style: subtitle
            icon: mdi:temperature-celsius
          - type: entities
            entities:
              - entity: sensor.skoda_enyaq_aussentemperatur
              - entity: sensor.markise_vorne_device_temperature
              - entity: sensor.markise_device_temperature
          - type: heading
            icon: mdi:battery-alert
            heading: Batteriestände Tür- & Fensterkontakte
            heading_style: subtitle
            visibility:
              - condition: user
                users:
                  - c5f685dc82c147ae8ba800ce4b019fc0
          - type: custom:auto-entities
            filter:
              include:
                - entity_id: sensor.*battery
                  state: <=99
            sort:
              method: state
            card:
              type: custom:apexcharts-card
              update_interval: 5minute
              header:
                show: true
                title: Fensterkontakte unter 100%
                show_states: false
                colorize_states: true
                floating: false
              graph_span: 2day
              span:
                end: minute
              show:
                last_updated: false
              all_series_config:
                stroke_width: 2
              now:
                show: false
        visibility:
          - condition: user
            users:
              - c5f685dc82c147ae8ba800ce4b019fc0
    max_columns: 4
  - type: sections
    max_columns: 4
    title: Batteriestände
    path: batteriestande
    icon: mdi:battery-30
    sections:
      - type: grid
        cards:
          - type: heading
            heading: Shelly Blu Door - Fensterkontakte - CR3032
            heading_style: subtitle
          - type: custom:auto-entities
            card:
              type: entities
            filter:
              include:
                - entity_id: "*battery*"
                  device_model: BTHome sensor
                  options:
                    secondary_info: last-changed
              exclude: []
            sort:
              method: state
              numeric: true
            visibility:
              - condition: user
                users:
                  - c5f685dc82c147ae8ba800ce4b019fc0
  - type: sections
    max_columns: 3
    icon: mdi:video-wireless-outline
    path: ""
    sections:
      - type: grid
        cards:
          - type: heading
            heading: Eingangsbereich
            heading_style: title
          - type: vertical-stack
            cards:
              - type: entities
                title: Kamera – Eingangsbereich
                show_header_toggle: false
                entities:
                  - type: section
                    label: Aufnahme & Status
                  - entity: switch.eingangsbereich_aufzeichnen
                    name: Aufzeichnen
                  - entity: switch.eingangsbereich_audio_aufnehmen
                    name: Audio aufnehmen
                  - entity: binary_sensor.eingangsbereich_bewegung
                    name: Bewegung erkannt
                  - entity: binary_sensor.eingangsbereich_person
                    name: Person erkannt
                  - entity: binary_sensor.eingangsbereich_fahrzeug
                    name: Fahrzeug erkannt
                  - entity: binary_sensor.eingangsbereich_tier
                    name: Tier erkannt
                  - type: section
                    label: Intelligenz & Empfindlichkeit
                  - entity: number.eingangsbereich_bewegungsempfindlichkeit
                    name: Bewegung – Empfindlichkeit
                  - entity: number.eingangsbereich_ki_personen_empfindlichkeit
                    name: KI – Personen
                  - entity: number.eingangsbereich_ki_fahrzeug_empfindlichkeit
                    name: KI – Fahrzeuge
                  - entity: number.eingangsbereich_ki_tier_empfindlichkeit
                    name: KI – Tiere
                  - type: section
                    label: Beleuchtung & IR
                  - entity: light.eingangsbereich_scheinwerfer
                    name: Scheinwerfer
                  - entity: select.eingangsbereich_scheinwerfermodus
                    name: Scheinwerfermodus
                  - entity: switch.eingangsbereich_infrarotlicht_im_nachtmodus
                    name: IR-Licht im Nachtmodus
                  - entity: light.eingangsbereich_status_led
                    name: Status-LED
                  - type: section
                    label: Audio
                  - entity: number.eingangsbereich_lautstarke
                    name: Lautstärke (Mic/Speaker)
                  - type: section
                    label: PTZ – Einstellungen & Presets
                  - entity: switch.eingangsbereich_autofokus
                    name: Autofokus
                  - entity: number.eingangsbereich_fokus
                    name: Fokus
                  - entity: number.eingangsbereich_zoom
                    name: Zoom
                  - entity: switch.eingangsbereich_automatisch_zur_startposition
                    name: Auto zurück zur Startposition
                  - entity: switch.eingangsbereich_automatisches_tracking
                    name: Automatisches Tracking
                  - entity: button.eingangsbereich_gehe_zu_startposition
                    name: Gehe zu Startposition
                  - entity: sensor.eingangsbereich_ptz_schwenkposition
                    name: PTZ – Schwenk (Pan)
                  - entity: sensor.eingangsbereich_ptz_neigeposition
                    name: PTZ – Neige (Tilt)
    title: Kameras
    cards: []
  - type: sections
    max_columns: 3
    icon: mdi:information-box-outline
    path: ""
    sections:
      - type: grid
        cards:
          - type: heading
            heading: Informationen zu Geräten
            heading_style: title
          - type: markdown
            content: |-
              **Vaillant recoVair 275/3**

              Baujahr: 12/2013
              SN: 

              Gerätefilter: 
              G4 und F4

              Abluftfilter:
              Kegelfilter 100mm
          - type: markdown
            content: |-
              **Vaillant auroCompact VSC S 196/3-5 200 R3**
              mit Solarthermie

              Baujahr: 12/2013
              SN: 

              Reparaturen:
              - Ausgleichsbehälter (04/20) - 150€
              - Solarpumpe ersetzt (07/25) - 400€
              - Platine repariert (11/25) - 20€ (neue Elkos)
          - type: markdown
            content: |-
              **Anker Solix Solarbank 3 E2700 Pro**

              Baujahr: 05/2025

              Leistung: 2000Wp
              Speicher: 5,38kWh
              Module: 4x 500W (bifazial 550W)

              Rahmenmaße:
              Höhe 30mm
              Breite: 9,5mm
              Tiefe (Rahmen bis Glas): 3,6mm
          - type: markdown
            content: |-
              **Daten zum Haus**

              Dacheindeckung: Harzer Pfanne Big (7) in granit
              Mauerwerk: Wienerberger
              Fenster: 3-Fach Verglasung
        column_span: 3
    cards: []
    title: Info zum Haus
  - sections:
      - type: grid
        cards:
          - type: heading
            heading_style: title
            heading: Klimatisierung
            icon: mdi:home-thermometer-outline
          - type: tile
            entity: sensor.ebusd_lueftung_wtw04_airinlettemp
            name:
              type: entity
            vertical: false
            features:
              - type: trend-graph
            features_position: bottom
          - type: tile
            entity: weather.forecast_home
            name:
              type: device
            state_content:
              - temperature
              - wind_speed
              - state
            vertical: false
            features:
              - type: temperature-forecast
                forecast_type: hourly
                days_to_show: 7
            features_position: bottom
          - type: markdown
            content: " "
            text_only: true
            grid_options:
              columns: full
          - type: tile
            entity: sensor.badezimmer_wandthermostat_temperatur
            name:
              type: area
            vertical: false
            features:
              - type: trend-graph
            features_position: bottom
          - type: tile
            entity: sensor.wohnzimmer_wandthermostat_temperatur
            name:
              type: area
            hide_state: false
            vertical: false
            features:
              - type: trend-graph
                hours_to_show: 24
                detail: true
            features_position: bottom
          - type: tile
            entity: sensor.karell_wandthermostat_temperatur
            name:
              type: area
            vertical: false
            features:
              - type: trend-graph
            features_position: bottom
          - type: tile
            entity: sensor.martha_wandthermostat_temperatur
            name:
              type: area
            vertical: false
            features:
              - type: trend-graph
            features_position: bottom
      - type: grid
        cards:
          - type: heading
            heading_style: title
            heading: Energiemanagement
            icon: mdi:home-lightning-bolt-outline
      - type: grid
        cards:
          - type: heading
            heading: Beschattung
            heading_style: title
            icon: mdi:shield-sun-outline
      - type: grid
        cards:
          - type: heading
            heading: Räume
            heading_style: subtitle
          - type: vertical-stack
            cards:
              - type: heading
                heading: Terrasse
                heading_style: subtitle
                badges:
                  - type: entity
                    entity: input_boolean.beschattung_sperre_markise
                    icon: mdi:hand-back-right
                    show_name: false
                    show_state: false
                    color: red
                    tap_action:
                      action: call-service
                      service: timer.cancel
                      service_data:
                        entity_id: timer.beschattung_sperre_markise
                  - type: entity
                    entity: binary_sensor.sonnenschutz_gartenseite_noetig
                    icon: mdi:weather-sunny
                    show_name: false
                    show_state: false
                    color: amber
                  - type: entity
                    entity: binary_sensor.jemand_zuhause
                    icon: mdi:account
                    show_name: false
                    show_state: false
                    color: green
                  - type: entity
                    entity: binary_sensor.beschattung_markise_elevation_ok
                    icon: mdi:angle-acute
                    show_name: false
                    show_state: false
                    color: green
                grid_options:
                  columns: 24
              - type: entities
                show_header_toggle: false
                entities:
                  - type: custom:template-entity-row
                    entity: cover.markise
                    icon: mdi:awning
                    name: >-
                      Markise {{
                      state_attr('cover.markise','current_position')|int }}%  · 
                      FM {{
                      state_attr('cover.markise_vorne','current_position')|int
                      }}%
                  - type: custom:fold-entity-row
                    head:
                      type: custom:template-entity-row
                      entity: cover.markise
                      name: Einstellungen
                      icon: mdi:tune
                      state: ""
                    items:
                      - entity: cover.markise
                        name: Markise
                      - entity: cover.markise_vorne
                        name: Frontmarkise
                      - entity: input_boolean.beschattung_sperre_markise
                        name: Sperre
                      - entity: sensor.markise_device_temperature
                        name: Geräte Temperatur
            grid_options:
              columns: 12
              rows: auto
          - type: vertical-stack
            cards:
              - type: heading
                heading: Wohnzimmer
                heading_style: subtitle
                badges:
                  - type: entity
                    entity: input_boolean.beschattung_sperre_wohnzimmer_links
                    icon: mdi:hand-back-right
                    show_name: false
                    show_state: false
                    color: red
                    tap_action:
                      action: call-service
                      service: timer.cancel
                      service_data:
                        entity_id: timer.beschattung_sperre_wohnzimmer_links
                  - type: entity
                    entity: input_boolean.beschattung_sperre_wohnzimmer_rechts
                    icon: mdi:hand-back-right
                    show_name: false
                    show_state: false
                    color: red
                    tap_action:
                      action: call-service
                      service: timer.cancel
                      service_data:
                        entity_id: timer.beschattung_sperre_wohnzimmer_rechts
                  - type: entity
                    entity: binary_sensor.terrassentur_links_window
                    icon: mdi:window-open
                    show_name: false
                    show_state: false
                    color: blue
                  - type: entity
                    entity: binary_sensor.terrassentur_rechts_window
                    icon: mdi:window-open
                    show_name: false
                    show_state: false
                    color: blue
                  - type: entity
                    entity: binary_sensor.sonnenschutz_gartenseite_noetig
                    icon: mdi:weather-sunny
                    show_name: false
                    show_state: false
                    color: amber
                  - type: entity
                    entity: binary_sensor.beschattung_hitzeschutz_noetig
                    icon: mdi:fire
                    show_name: false
                    show_state: false
                    color: deep-orange
                  - type: entity
                    entity: binary_sensor.jemand_zuhause
                    icon: mdi:account
                    show_name: false
                    show_state: false
                    color: green
              - type: entities
                show_header_toggle: false
                entities:
                  - type: custom:template-entity-row
                    entity: input_boolean.beschattung_wohnzimmer_aktiv
                    icon: mdi:sofa
                    toggle: true
                    name: >-
                      Links {{
                      state_attr('cover.terrassentur_links','current_position')|int
                      }}%  ·  Rechts {{
                      state_attr('cover.terrassentur_rechts','current_position')|int
                      }}%
                  - type: custom:fold-entity-row
                    head:
                      type: custom:template-entity-row
                      entity: input_select.beschattung_wohnzimmer_profil
                      name: Einstellungen
                      icon: mdi:tune
                      state: >-
                        {{ states('input_select.beschattung_wohnzimmer_profil')
                        }}
                    items:
                      - entity: input_boolean.beschattung_party_modus_wohnzimmer
                        name: Party-Modus
                        icon: mdi:party-popper
                      - entity: input_datetime.beschattung_wohnzimmer_morgens_werktag
                        name: Morgens Werktag
                      - entity: >-
                          input_datetime.beschattung_wohnzimmer_morgens_wochenende
                        name: Morgens Wochenende/Feiertag
                      - entity: input_datetime.beschattung_wohnzimmer_abends_zeit
                        name: Abends (Fallback)
                      - entity: input_select.beschattung_wohnzimmer_profil
                        name: Profil
                      - type: custom:template-entity-row
                        entity: input_boolean.beschattung_sperre_wohnzimmer_links
                        name: Sperre Links
                        icon: mdi:hand-back-right
                        toggle: true
                        state_color: true
                        secondary: >-
                          {% if
                          is_state('timer.beschattung_sperre_wohnzimmer_links','active')
                          %}{{
                          state_attr('timer.beschattung_sperre_wohnzimmer_links','remaining')
                          }}{% else %}–{% endif %}
                      - type: conditional
                        conditions:
                          - condition: state
                            entity: timer.beschattung_sperre_wohnzimmer_links
                            state: active
                        row:
                          entity: timer.beschattung_sperre_wohnzimmer_links
                          name: ""
                      - type: custom:template-entity-row
                        entity: input_boolean.beschattung_sperre_wohnzimmer_rechts
                        name: Sperre Rechts
                        icon: mdi:hand-back-right
                        toggle: true
                        state_color: true
                        secondary: >-
                          {% if
                          is_state('timer.beschattung_sperre_wohnzimmer_rechts','active')
                          %}{{
                          state_attr('timer.beschattung_sperre_wohnzimmer_rechts','remaining')
                          }}{% else %}–{% endif %}
                      - type: conditional
                        conditions:
                          - condition: state
                            entity: timer.beschattung_sperre_wohnzimmer_rechts
                            state: active
                        row:
                          entity: timer.beschattung_sperre_wohnzimmer_rechts
                          name: ""
                      - entity: sensor.terrassentur_links
                        name: Tür Links
                      - entity: sensor.terrassentur_rechts
                        name: Tür Rechts
                      - entity: sensor.wohnzimmer_wandthermostat_temperatur
                        name: Temperatur
          - type: vertical-stack
            cards:
              - type: heading
                heading: Martha
                heading_style: subtitle
                badges:
                  - type: entity
                    entity: input_boolean.beschattung_sperre_martha
                    icon: mdi:hand-back-right
                    show_name: false
                    show_state: false
                    color: red
                    tap_action:
                      action: call-service
                      service: timer.cancel
                      service_data:
                        entity_id: timer.beschattung_sperre_martha
                  - type: entity
                    entity: binary_sensor.martha_fenster_links_window
                    icon: mdi:window-open
                    show_name: false
                    show_state: false
                    color: blue
                  - type: entity
                    entity: binary_sensor.martha_fenster_rechts_window
                    icon: mdi:window-open
                    show_name: false
                    show_state: false
                    color: blue
                  - type: entity
                    entity: binary_sensor.sonnenschutz_gartenseite_noetig
                    icon: mdi:weather-sunny
                    show_name: false
                    show_state: false
                    color: amber
                  - type: entity
                    entity: binary_sensor.beschattung_hitzeschutz_noetig
                    icon: mdi:fire
                    show_name: false
                    show_state: false
                    color: deep-orange
                  - type: entity
                    entity: person.martha
                    icon: mdi:human-child
                    show_name: false
                    show_state: false
                    color: green
              - type: entities
                show_header_toggle: false
                entities:
                  - type: custom:template-entity-row
                    entity: input_boolean.beschattung_martha_aktiv
                    icon: mdi:teddy-bear
                    toggle: true
                    name: "{{ state_attr('cover.martha','current_position')|int }}%"
                  - type: custom:fold-entity-row
                    head:
                      type: custom:template-entity-row
                      entity: input_select.beschattung_martha_profil
                      name: Einstellungen
                      icon: mdi:tune
                      state: "{{ states('input_select.beschattung_martha_profil') }}"
                    items:
                      - entity: input_select.beschattung_martha_profil
                        name: Profil
                      - entity: input_number.martha_rollo_hitzeschutz_position
                        name: Position Komfort anwesend
                      - entity: input_boolean.martha_rollo_morgens_aktiv
                        name: Morgens aktiv
                      - entity: input_datetime.martha_rollo_morgens_zeit
                        name: Morgens Werktag
                      - entity: input_boolean.martha_rollo_wochenende_aktiv
                        name: Wochenende aktiv
                      - entity: input_datetime.martha_rollo_wochenende_zeit
                        name: Morgens WE/Feiertag
                      - entity: input_boolean.martha_rollo_abends_aktiv
                        name: Abends aktiv
                      - entity: input_datetime.martha_rollo_abends_zeit
                        name: Abends Uhrzeit
                      - entity: input_number.martha_rollo_morgens_position
                        name: Position morgens
                      - entity: input_number.martha_rollo_abends_position
                        name: Position abends
                      - type: custom:template-entity-row
                        entity: input_boolean.beschattung_sperre_martha
                        name: Komfortsperre
                        icon: mdi:hand-back-right
                        toggle: true
                        state_color: true
                        secondary: >-
                          {% if
                          is_state('timer.beschattung_sperre_martha','active')
                          %}{{
                          state_attr('timer.beschattung_sperre_martha','remaining')
                          }}{% else %}–{% endif %}
                      - type: conditional
                        conditions:
                          - condition: state
                            entity: timer.beschattung_sperre_martha
                            state: active
                        row:
                          entity: timer.beschattung_sperre_martha
                          name: ""
                      - entity: sensor.martha_fenster_links
                        name: Fenster Links
                      - entity: sensor.martha_fenster_rechts
                        name: Fenster Rechts
                      - entity: sensor.martha_wandthermostat_temperatur
                        name: Temperatur
          - type: vertical-stack
            cards:
              - type: heading
                heading: Schlafzimmer
                heading_style: subtitle
                badges:
                  - type: entity
                    entity: input_boolean.beschattung_sperre_schlafzimmer
                    icon: mdi:hand-back-right
                    show_name: false
                    show_state: false
                    color: red
                    tap_action:
                      action: call-service
                      service: timer.cancel
                      service_data:
                        entity_id: timer.beschattung_sperre_schlafzimmer
                  - type: entity
                    entity: binary_sensor.schlafzimmer_fenster_links_window
                    icon: mdi:window-open
                    show_name: false
                    show_state: false
                    color: blue
                  - type: entity
                    entity: binary_sensor.schlafzimmer_fenster_rechts_window
                    icon: mdi:window-open
                    show_name: false
                    show_state: false
                    color: blue
                  - type: entity
                    entity: binary_sensor.sonnenschutz_gartenseite_noetig
                    icon: mdi:weather-sunny
                    show_name: false
                    show_state: false
                    color: amber
                  - type: entity
                    entity: binary_sensor.beschattung_hitzeschutz_noetig
                    icon: mdi:fire
                    show_name: false
                    show_state: false
                    color: deep-orange
                  - type: entity
                    entity: binary_sensor.jemand_zuhause
                    icon: mdi:account
                    show_name: false
                    show_state: false
                    color: green
              - type: entities
                show_header_toggle: false
                entities:
                  - type: custom:template-entity-row
                    entity: input_boolean.beschattung_schlafzimmer_aktiv
                    icon: mdi:bed-king
                    toggle: true
                    name: >-
                      {{ state_attr('cover.schlafzimmer','current_position')|int
                      }}%{% if
                      is_state('input_boolean.beschattung_schlafzimmer_fenstersteuerung','on')
                      %}  🔄{% endif %}
                  - type: custom:fold-entity-row
                    head:
                      type: custom:template-entity-row
                      entity: input_select.beschattung_schlafzimmer_profil
                      name: Einstellungen
                      icon: mdi:tune
                      state: >-
                        {{
                        states('input_select.beschattung_schlafzimmer_profil')
                        }}
                    items:
                      - entity: input_select.beschattung_schlafzimmer_profil
                        name: Profil
                      - entity: >-
                          input_boolean.beschattung_schlafzimmer_fenstersteuerung
                        name: Fenstersteuerung
                      - entity: input_number.beschattung_schlafzimmer_luftungsposition
                        name: Lüftungsposition
                      - entity: input_boolean.beschattung_sperre_schlafzimmer
                        name: Komfortsperre
                        icon: mdi:hand-back-right
                      - type: conditional
                        conditions:
                          - condition: state
                            entity: timer.beschattung_sperre_schlafzimmer
                            state: active
                        row:
                          entity: timer.beschattung_sperre_schlafzimmer
                          name: ""
                      - entity: sensor.schlafzimmer_fenster_links
                        name: Fenster Links
                      - entity: sensor.schlafzimmer_fenster_rechts
                        name: Fenster Rechts
          - type: vertical-stack
            cards:
              - type: heading
                heading: Küche
                heading_style: subtitle
                badges:
                  - type: entity
                    entity: input_boolean.beschattung_sperre_kueche
                    icon: mdi:hand-back-right
                    show_name: false
                    show_state: false
                    color: red
                    tap_action:
                      action: call-service
                      service: timer.cancel
                      service_data:
                        entity_id: timer.beschattung_sperre_kuche
                  - type: entity
                    entity: binary_sensor.kuchenfenster_window
                    icon: mdi:window-open
                    show_name: false
                    show_state: false
                    color: blue
                  - type: entity
                    entity: binary_sensor.sonnenschutz_vorderseite_noetig
                    icon: mdi:weather-sunny
                    show_name: false
                    show_state: false
                    color: amber
                  - type: entity
                    entity: binary_sensor.beschattung_hitzeschutz_noetig
                    icon: mdi:fire
                    show_name: false
                    show_state: false
                    color: deep-orange
                  - type: entity
                    entity: binary_sensor.jemand_zuhause
                    icon: mdi:account
                    show_name: false
                    show_state: false
                    color: green
              - type: entities
                show_header_toggle: false
                entities:
                  - type: custom:template-entity-row
                    entity: input_boolean.beschattung_kueche_aktiv
                    icon: mdi:fridge-outline
                    toggle: true
                    name: >-
                      {{ state_attr('cover.kueche','current_position')|int }}% 
                      ·  PV1 {{
                      states('sensor.solarbank_3_e2700_pro_solar_pv1')|int }}W
                  - type: custom:fold-entity-row
                    head:
                      type: custom:template-entity-row
                      entity: input_select.beschattung_kueche_profil
                      name: Einstellungen
                      icon: mdi:tune
                      state: "{{ states('input_select.beschattung_kueche_profil') }}"
                    items:
                      - entity: input_select.beschattung_kueche_profil
                        name: Profil
                      - entity: input_boolean.beschattung_sperre_kueche
                        name: Komfortsperre
                        icon: mdi:hand-back-right
                      - type: conditional
                        conditions:
                          - condition: state
                            entity: timer.beschattung_sperre_kuche
                            state: active
                        row:
                          entity: timer.beschattung_sperre_kuche
                          name: ""
                      - entity: sensor.kuchenfenster
                        name: Fenster
                      - entity: input_number.beschattung_pv1_schwelle_kuche
                        name: PV1 Schwelle
          - type: vertical-stack
            cards:
              - type: heading
                heading: Karell (geplant)
                heading_style: subtitle
                badges:
                  - type: entity
                    entity: binary_sensor.karell_fenster
                    icon: mdi:window-open
                    show_name: false
                    show_state: false
                    color: blue
                  - type: entity
                    entity: binary_sensor.sonnenschutz_gartenseite_noetig
                    icon: mdi:weather-sunny
                    show_name: false
                    show_state: false
                    color: amber
                  - type: entity
                    entity: binary_sensor.beschattung_hitzeschutz_noetig
                    icon: mdi:fire
                    show_name: false
                    show_state: false
                    color: deep-orange
                  - type: entity
                    entity: person.karell
                    icon: mdi:account
                    show_name: false
                    show_state: false
                    color: green
              - type: entities
                show_header_toggle: false
                entities:
                  - type: custom:template-entity-row
                    entity: input_boolean.beschattung_karell_aktiv
                    icon: mdi:clock-outline
                    toggle: true
                    name: –
                  - type: custom:fold-entity-row
                    head:
                      type: custom:template-entity-row
                      entity: input_boolean.beschattung_karell_aktiv
                      name: Einstellungen
                      icon: mdi:tune
                      state: ""
                    items:
                      - entity: sensor.karell_fenster
                        name: Fenster
                      - entity: sensor.karell_wandthermostat_temperatur
                        name: Temperatur
        column_span: 1
    cards: []
    badges:
      - type: entity
        show_name: true
        show_state: true
        show_icon: true
        entity: sensor.zahlerstand
        name: Strom
      - type: entity
        show_name: true
        show_state: true
        show_icon: true
        name: Gas
        entity: sensor.gas_smartmeterreader_gasverbrauch
      - type: entity
        show_name: true
        show_state: true
        show_icon: true
        entity: sensor.wasser_zahlerstand
        name: Wasser
    type: sections
    max_columns: 4
    title: TEST
    show_icon_and_title: false
    header:
      layout: center
      badges_position: top
      badges_wrap: wrap
    dense_section_placement: true
