{
  "version": 1,
  "minor_version": 1,
  "key": "lovelace.dashboard_haustechnik",
  "data": {
    "config": {
      "views": [
        {
          "title": "PV & Speicher",
          "path": "pv-speicher",
          "icon": "mdi:solar-power",
          "type": "sections",
          "max_columns": 2,
          "cards": [],
          "badges": [
            {
              "type": "custom:mushroom-chips-card",
              "chips": [
                {
                  "type": "entity",
                  "entity": "sensor.powerocean_mpptpv_pwrtotal",
                  "icon": "mdi:solar-power",
                  "show_state": true,
                  "show_icon": true
                },
                {
                  "type": "entity",
                  "entity": "sensor.powerocean_bpsoc_2",
                  "icon": "mdi:battery",
                  "show_state": true,
                  "show_icon": true
                },
                {
                  "type": "entity",
                  "entity": "sensor.zuhause_strompreis",
                  "icon": "mdi:lightning-bolt",
                  "show_state": true,
                  "show_icon": true
                },
                {
                  "type": "entity",
                  "entity": "sensor.tibber_pulse_zuhause_kumulierte_kosten",
                  "icon": "mdi:currency-eur",
                  "show_state": true,
                  "show_icon": true
                }
              ]
            }
          ],
          "sections": [
            {
              "type": "grid",
              "cards": [
                {
                  "type": "custom:mushroom-title-card",
                  "title": "⚡ Energiefluss"
                },
                {
                  "type": "custom:mushroom-chips-card",
                  "alignment": "center",
                  "chips": [
                    {
                      "type": "entity",
                      "entity": "sensor.powerocean_hj37zdh5zg5w0109_solarertrag_mppt",
                      "icon": "mdi:solar-power",
                      "show_state": true,
                      "show_icon": true
                    },
                    {
                      "type": "entity",
                      "entity": "sensor.powerocean_hj37zdh5zg5w0109_netzleistung_system",
                      "icon": "mdi:home-lightning-bolt",
                      "show_state": true,
                      "show_icon": true
                    },
                    {
                      "type": "entity",
                      "entity": "sensor.tibber_pulse_zuhause_leistung",
                      "icon": "mdi:transmission-tower",
                      "show_state": true,
                      "show_icon": true
                    },
                    {
                      "type": "entity",
                      "entity": "sensor.tibber_pulse_zuhause_einspeiseleistung",
                      "icon": "mdi:transmission-tower-export",
                      "show_state": true,
                      "show_icon": true
                    }
                  ]
                },
                {
                  "type": "custom:apexcharts-card",
                  "header": {
                    "show": true,
                    "title": "Leistung – 24 h",
                    "show_states": true,
                    "standard_format": true
                  },
                  "graph_span": "24h",
                  "series": [
                    {
                      "entity": "sensor.powerocean_hj37zdh5zg5w0109_solarertrag_mppt",
                      "name": "Solar",
                      "color": "#f9a825"
                    },
                    {
                      "entity": "sensor.powerocean_hj37zdh5zg5w0109_netzleistung_system",
                      "name": "Eigenverbrauch",
                      "color": "#e53935"
                    },
                    {
                      "entity": "sensor.tibber_pulse_zuhause_leistung",
                      "name": "Netzbezug",
                      "color": "#1e88e5"
                    },
                    {
                      "entity": "sensor.tibber_pulse_zuhause_einspeiseleistung",
                      "name": "Einspeisung",
                      "color": "#43a047"
                    }
                  ]
                }
              ]
            },
            {
              "type": "grid",
              "cards": [
                {
                  "type": "custom:mushroom-title-card",
                  "title": "☀️ Prognose & Kosten"
                },
                {
                  "type": "custom:mushroom-chips-card",
                  "alignment": "center",
                  "chips": [
                    {
                      "type": "entity",
                      "entity": "sensor.energy_production_today_remaining",
                      "icon": "mdi:solar-power-variant",
                      "show_state": true,
                      "show_icon": true
                    },
                    {
                      "type": "entity",
                      "entity": "sensor.energy_production_tomorrow",
                      "icon": "mdi:weather-sunny",
                      "show_state": true,
                      "show_icon": true
                    },
                    {
                      "type": "entity",
                      "entity": "sensor.power_highest_peak_time_today",
                      "icon": "mdi:clock-fast",
                      "show_state": true,
                      "show_icon": true
                    }
                  ]
                },
                {
                  "type": "custom:mushroom-chips-card",
                  "alignment": "center",
                  "chips": [
                    {
                      "type": "entity",
                      "entity": "sensor.tibber_pulse_zuhause_kumulierte_kosten",
                      "icon": "mdi:currency-eur",
                      "show_state": true,
                      "show_icon": true
                    },
                    {
                      "type": "entity",
                      "entity": "sensor.tibber_pulse_zuhause_kumulierter_verbrauch",
                      "icon": "mdi:home-lightning-bolt",
                      "show_state": true,
                      "show_icon": true
                    },
                    {
                      "type": "entity",
                      "entity": "sensor.tibber_pulse_zuhause_kumulierte_einspeisung",
                      "icon": "mdi:transmission-tower-export",
                      "show_state": true,
                      "show_icon": true
                    }
                  ]
                },
                {
                  "type": "custom:apexcharts-card",
                  "header": {
                    "show": true,
                    "title": "Strompreis",
                    "show_states": false,
                    "standard_format": true,
                    "disable_actions": true
                  },
                  "apex_config": {
                    "legend": {
                      "show": false
                    }
                  },
                  "yaxis": [
                    {
                      "id": "price",
                      "min": "~0.1",
                      "max": "~0.4",
                      "align_to": 1,
                      "decimals": 2
                    }
                  ],
                  "chart_type": "line",
                  "graph_span": "1.5d",
                  "span": {
                    "start": "day"
                  },
                  "now": {
                    "show": true,
                    "label": "Jetzt"
                  },
                  "experimental": {
                    "color_threshold": true
                  },
                  "series": [
                    {
                      "entity": "sensor.epex_spot_data_total_price",
                      "yaxis_id": "price",
                      "stroke_width": 2,
                      "show": {
                        "legend_value": false
                      },
                      "type": "line",
                      "extend_to": false,
                      "data_generator": "return entity.attributes.data.map((entry) => {\n  return [new Date(entry.start_time), entry.price_per_kwh];\n});\n",
                      "curve": "stepline",
                      "color_threshold": [
                        {
                          "value": 0.1,
                          "color": "blue"
                        },
                        {
                          "value": 0.2,
                          "color": "cyan"
                        },
                        {
                          "value": 0.25,
                          "color": "green"
                        },
                        {
                          "value": 0.3,
                          "color": "yellow"
                        },
                        {
                          "value": 0.35,
                          "color": "orange"
                        },
                        {
                          "value": 0.4,
                          "color": "red"
                        }
                      ]
                    }
                  ]
                },
                {
                  "type": "custom:mushroom-chips-card",
                  "alignment": "center",
                  "chips": [
                    {
                      "type": "entity",
                      "entity": "sensor.electricity_maps_co2_intensitat",
                      "icon": "mdi:molecule-co2",
                      "show_state": true,
                      "show_icon": true
                    },
                    {
                      "type": "entity",
                      "entity": "sensor.electricity_maps_anteil_fossiler_brennstoffe_im_netz",
                      "icon": "mdi:factory",
                      "show_state": true,
                      "show_icon": true
                    }
                  ]
                }
              ]
            },
            {
              "type": "grid",
              "cards": [
                {
                  "type": "custom:mushroom-title-card",
                  "title": "⚡ Tibber"
                },
                {
                  "type": "custom:mushroom-chips-card",
                  "alignment": "center",
                  "chips": [
                    {
                      "type": "entity",
                      "entity": "sensor.zuhause_strompreis",
                      "icon": "mdi:lightning-bolt",
                      "show_state": true,
                      "show_icon": true
                    },
                    {
                      "type": "entity",
                      "entity": "sensor.tibber_pulse_zuhause_kumulierte_kosten",
                      "icon": "mdi:currency-eur",
                      "show_state": true,
                      "show_icon": true
                    },
                    {
                      "type": "entity",
                      "entity": "sensor.tibber_pulse_zuhause_kumulierter_verbrauch",
                      "icon": "mdi:home-lightning-bolt",
                      "show_state": true,
                      "show_icon": true
                    },
                    {
                      "type": "entity",
                      "entity": "sensor.tibber_pulse_zuhause_kumulierte_einspeisung",
                      "icon": "mdi:transmission-tower-export",
                      "show_state": true,
                      "show_icon": true
                    }
                  ]
                },
                {
                  "type": "custom:apexcharts-card",
                  "header": {
                    "show": true,
                    "title": "Netzbezug & Einspeisung – 24 h",
                    "show_states": true,
                    "standard_format": true
                  },
                  "graph_span": "24h",
                  "series": [
                    {
                      "entity": "sensor.tibber_pulse_zuhause_leistung",
                      "name": "Bezug (W)",
                      "color": "#e53935"
                    },
                    {
                      "entity": "sensor.tibber_pulse_zuhause_einspeiseleistung",
                      "name": "Einspeisung (W)",
                      "color": "#43a047"
                    }
                  ]
                },
                {
                  "type": "custom:mushroom-chips-card",
                  "alignment": "center",
                  "chips": [
                    {
                      "type": "entity",
                      "entity": "sensor.tibber_pulse_zuhause_spannung_l1",
                      "icon": "mdi:lightning-bolt-circle",
                      "show_state": true,
                      "show_icon": true
                    },
                    {
                      "type": "entity",
                      "entity": "sensor.tibber_pulse_zuhause_spannung_l2",
                      "icon": "mdi:lightning-bolt-circle",
                      "show_state": true,
                      "show_icon": true
                    },
                    {
                      "type": "entity",
                      "entity": "sensor.tibber_pulse_zuhause_spannung_l3",
                      "icon": "mdi:lightning-bolt-circle",
                      "show_state": true,
                      "show_icon": true
                    }
                  ]
                },
                {
                  "type": "custom:mushroom-chips-card",
                  "alignment": "center",
                  "chips": [
                    {
                      "type": "entity",
                      "entity": "sensor.tibber_pulse_zuhause_stromstarke_l1",
                      "icon": "mdi:current-ac",
                      "show_state": true,
                      "show_icon": true
                    },
                    {
                      "type": "entity",
                      "entity": "sensor.tibber_pulse_zuhause_stromstarke_l2",
                      "icon": "mdi:current-ac",
                      "show_state": true,
                      "show_icon": true
                    },
                    {
                      "type": "entity",
                      "entity": "sensor.tibber_pulse_zuhause_stromstarke_l3",
                      "icon": "mdi:current-ac",
                      "show_state": true,
                      "show_icon": true
                    }
                  ]
                }
              ]
            },
            {
              "type": "grid",
              "cards": [
                {
                  "type": "custom:mushroom-title-card",
                  "title": "🔋 Batteriespeicher"
                },
                {
                  "type": "custom:mushroom-chips-card",
                  "alignment": "center",
                  "chips": [
                    {
                      "type": "entity",
                      "entity": "sensor.powerocean_hj37zdh5zg5w0109_ladezustand_der_batterie",
                      "icon": "mdi:battery",
                      "show_state": true,
                      "show_icon": true
                    },
                    {
                      "type": "entity",
                      "entity": "sensor.powerocean_hj37zdh5zg5w0109_emsbppower",
                      "icon": "mdi:flash",
                      "show_state": true,
                      "show_icon": true
                    }
                  ]
                },
                {
                  "type": "custom:apexcharts-card",
                  "header": {
                    "show": true,
                    "title": "Batterieladung – 24 h",
                    "show_states": true,
                    "standard_format": true
                  },
                  "graph_span": "24h",
                  "yaxis": [
                    {
                      "id": "soc",
                      "min": 0,
                      "max": 100,
                      "decimals": 0
                    },
                    {
                      "id": "power",
                      "opposite": true,
                      "decimals": 0
                    }
                  ],
                  "series": [
                    {
                      "entity": "sensor.powerocean_hj37zdh5zg5w0109_ladezustand_der_batterie",
                      "name": "Ladestand (%)",
                      "yaxis_id": "soc",
                      "color": "#43a047"
                    },
                    {
                      "entity": "sensor.powerocean_hj37zdh5zg5w0109_emsbppower",
                      "name": "Leistung (W)",
                      "yaxis_id": "power",
                      "color": "#1e88e5"
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "title": "Wärmepumpe",
          "path": "waermepumpe",
          "icon": "mdi:heat-pump",
          "type": "sections",
          "max_columns": 2,
          "cards": [],
          "badges": [
            {
              "type": "custom:mushroom-chips-card",
              "chips": [
                {
                  "type": "template",
                  "icon": "mdi:wifi",
                  "icon_color": "{{ 'green' if is_state('binary_sensor.nibe_s1255_6_e_em_3x400v_konnektivitat','on') else 'red' }}\n",
                  "content": "{{ 'Online' if is_state('binary_sensor.nibe_s1255_6_e_em_3x400v_konnektivitat','on') else 'Offline' }}\n"
                },
                {
                  "type": "template",
                  "icon": "mdi:alert-circle-outline",
                  "icon_color": "{{ 'red' if is_state('binary_sensor.nibe_s1255_6_e_em_3x400v_alarm','on') else 'green' }}\n",
                  "content": "{{ 'Alarm!' if is_state('binary_sensor.nibe_s1255_6_e_em_3x400v_alarm','on') else 'Kein Alarm' }}\n"
                },
                {
                  "type": "entity",
                  "entity": "sensor.nibe_energy_cop_total_last_hour",
                  "icon": "mdi:gauge-full",
                  "show_state": true,
                  "show_icon": true
                },
                {
                  "type": "entity",
                  "entity": "sensor.nibe_s1255_6_e_em_3x400v_current_outdoor_temperature_bt1",
                  "icon": "mdi:thermometer",
                  "show_state": true,
                  "show_icon": true
                }
              ]
            }
          ],
          "sections": [
            {
              "type": "grid",
              "cards": [
                {
                  "type": "custom:mushroom-title-card",
                  "title": "🌡️ Heizkreis"
                },
                {
                  "type": "custom:mushroom-chips-card",
                  "alignment": "center",
                  "chips": [
                    {
                      "type": "entity",
                      "entity": "sensor.nibe_s1255_6_e_em_3x400v_supply_line_bt2",
                      "icon": "mdi:thermometer-chevron-up",
                      "show_state": true,
                      "show_icon": true
                    },
                    {
                      "type": "entity",
                      "entity": "sensor.nibe_s1255_6_e_em_3x400v_return_line_bt3",
                      "icon": "mdi:thermometer-chevron-down",
                      "show_state": true,
                      "show_icon": true
                    },
                    {
                      "type": "entity",
                      "entity": "sensor.nibe_s1255_6_e_em_3x400v_calculated_supply_climate_system_1",
                      "icon": "mdi:calculator-variant",
                      "show_state": true,
                      "show_icon": true
                    }
                  ]
                },
                {
                  "type": "custom:mushroom-entity-card",
                  "entity": "sensor.nibe_s1255_6_e_em_3x400v_temperatur_klimatisierungssyste",
                  "name": "Raumtemperatur Ist",
                  "icon": "mdi:home-thermometer",
                  "layout": "horizontal",
                  "fill_container": true
                },
                {
                  "type": "custom:mushroom-entity-card",
                  "entity": "number.nibe_s1255_6_e_em_3x400v_raumfuhler_sollwert_klimatisierungssyste",
                  "name": "Raumtemperatur Soll",
                  "icon": "mdi:home-thermometer-outline",
                  "layout": "horizontal",
                  "fill_container": true,
                  "tap_action": {
                    "action": "more-info"
                  }
                },
                {
                  "type": "custom:mushroom-entity-card",
                  "entity": "number.nibe_s1255_6_e_em_3x400v_degree_minutes",
                  "name": "Degree Minutes",
                  "icon": "mdi:timer-outline",
                  "layout": "horizontal",
                  "fill_container": true,
                  "tap_action": {
                    "action": "more-info"
                  }
                },
                {
                  "type": "custom:apexcharts-card",
                  "header": {
                    "show": true,
                    "title": "Heizkreis – 24 h",
                    "show_states": true,
                    "standard_format": true
                  },
                  "graph_span": "24h",
                  "series": [
                    {
                      "entity": "sensor.nibe_s1255_6_e_em_3x400v_supply_line_bt2",
                      "name": "Vorlauf (BT2)"
                    },
                    {
                      "entity": "sensor.nibe_s1255_6_e_em_3x400v_return_line_bt3",
                      "name": "Rücklauf (BT3)"
                    },
                    {
                      "entity": "sensor.nibe_s1255_6_e_em_3x400v_current_outdoor_temperature_bt1",
                      "name": "Außen (BT1)"
                    }
                  ]
                }
              ]
            },
            {
              "type": "grid",
              "cards": [
                {
                  "type": "custom:mushroom-title-card",
                  "title": "🚿 Warmwasser"
                },
                {
                  "type": "custom:mushroom-chips-card",
                  "alignment": "center",
                  "chips": [
                    {
                      "type": "entity",
                      "entity": "sensor.nibe_s1255_6_e_em_3x400v_hot_water_top_bt7",
                      "icon": "mdi:water-thermometer",
                      "show_state": true,
                      "show_icon": true
                    },
                    {
                      "type": "entity",
                      "entity": "sensor.nibe_s1255_6_e_em_3x400v_hot_water_charging_bt6",
                      "icon": "mdi:water-sync",
                      "show_state": true,
                      "show_icon": true
                    }
                  ]
                },
                {
                  "type": "custom:apexcharts-card",
                  "header": {
                    "show": true,
                    "title": "Warmwasser – 24 h",
                    "show_states": true,
                    "standard_format": true
                  },
                  "graph_span": "24h",
                  "series": [
                    {
                      "entity": "sensor.nibe_s1255_6_e_em_3x400v_hot_water_top_bt7",
                      "name": "Oben (BT7)"
                    },
                    {
                      "entity": "sensor.nibe_s1255_6_e_em_3x400v_hot_water_charging_bt6",
                      "name": "Ladung (BT6)"
                    }
                  ]
                }
              ]
            },
            {
              "type": "grid",
              "cards": [
                {
                  "type": "custom:mushroom-title-card",
                  "title": "💨 Lüftung (AZ30)"
                },
                {
                  "type": "custom:mushroom-entity-card",
                  "entity": "select.nibe_s1255_6_e_em_3x400v_ventilation_mode",
                  "name": "Lüftungsmodus",
                  "icon": "mdi:fan",
                  "layout": "horizontal",
                  "fill_container": true,
                  "tap_action": {
                    "action": "more-info"
                  }
                },
                {
                  "type": "custom:mushroom-chips-card",
                  "alignment": "center",
                  "chips": [
                    {
                      "type": "entity",
                      "entity": "sensor.nibe_s1255_6_e_em_3x400v_abluft_az30_bt20",
                      "icon": "mdi:arrow-up-circle-outline",
                      "show_state": true,
                      "show_icon": true
                    },
                    {
                      "type": "entity",
                      "entity": "sensor.nibe_s1255_6_e_em_3x400v_fortluft_az30_bt21",
                      "icon": "mdi:arrow-right-circle-outline",
                      "show_state": true,
                      "show_icon": true
                    },
                    {
                      "type": "entity",
                      "entity": "sensor.nibe_s1255_6_e_em_3x400v_supp_air_az30_bt22",
                      "icon": "mdi:arrow-down-circle-outline",
                      "show_state": true,
                      "show_icon": true
                    }
                  ]
                },
                {
                  "type": "custom:apexcharts-card",
                  "header": {
                    "show": true,
                    "title": "Lüftung – 24 h",
                    "show_states": true,
                    "standard_format": true
                  },
                  "graph_span": "24h",
                  "series": [
                    {
                      "entity": "sensor.nibe_s1255_6_e_em_3x400v_abluft_az30_bt20",
                      "name": "Abluft BT20"
                    },
                    {
                      "entity": "sensor.nibe_s1255_6_e_em_3x400v_fortluft_az30_bt21",
                      "name": "Fortluft BT21"
                    },
                    {
                      "entity": "sensor.nibe_s1255_6_e_em_3x400v_supp_air_az30_bt22",
                      "name": "Zuluft BT22"
                    }
                  ]
                }
              ]
            },
            {
              "type": "grid",
              "cards": [
                {
                  "type": "custom:mushroom-title-card",
                  "title": "🧊 Sole / Erdkollektor"
                },
                {
                  "type": "custom:mushroom-chips-card",
                  "alignment": "center",
                  "chips": [
                    {
                      "type": "entity",
                      "entity": "sensor.nibe_s1255_6_e_em_3x400v_brine_in_bt10",
                      "icon": "mdi:arrow-right-circle",
                      "show_state": true,
                      "show_icon": true
                    },
                    {
                      "type": "entity",
                      "entity": "sensor.nibe_s1255_6_e_em_3x400v_brine_out_bt11",
                      "icon": "mdi:arrow-left-circle",
                      "show_state": true,
                      "show_icon": true
                    },
                    {
                      "type": "entity",
                      "entity": "sensor.nibe_s1255_6_e_em_3x400v_temperatur_bt50",
                      "icon": "mdi:thermometer",
                      "show_state": true,
                      "show_icon": true
                    }
                  ]
                },
                {
                  "type": "custom:apexcharts-card",
                  "header": {
                    "show": true,
                    "title": "Sole – 24 h",
                    "show_states": true,
                    "standard_format": true
                  },
                  "graph_span": "24h",
                  "series": [
                    {
                      "entity": "sensor.nibe_s1255_6_e_em_3x400v_brine_in_bt10",
                      "name": "Sole ein (BT10)"
                    },
                    {
                      "entity": "sensor.nibe_s1255_6_e_em_3x400v_brine_out_bt11",
                      "name": "Sole aus (BT11)"
                    }
                  ]
                }
              ]
            },
            {
              "type": "grid",
              "cards": [
                {
                  "type": "custom:mushroom-title-card",
                  "title": "📊 Effizienz & Energie"
                },
                {
                  "type": "custom:mushroom-chips-card",
                  "alignment": "center",
                  "chips": [
                    {
                      "type": "entity",
                      "entity": "sensor.nibe_energy_cop_total_last_hour",
                      "icon": "mdi:gauge-full",
                      "show_state": true,
                      "show_icon": true
                    },
                    {
                      "type": "entity",
                      "entity": "sensor.nibe_energy_cop_heating_last_hour",
                      "icon": "mdi:radiator",
                      "show_state": true,
                      "show_icon": true
                    },
                    {
                      "type": "entity",
                      "entity": "sensor.nibe_energy_cop_hot_water_last_hour",
                      "icon": "mdi:water-boiler",
                      "show_state": true,
                      "show_icon": true
                    }
                  ]
                },
                {
                  "type": "custom:mushroom-chips-card",
                  "alignment": "center",
                  "chips": [
                    {
                      "type": "entity",
                      "entity": "sensor.nibe_energy_produced_total_kwh",
                      "icon": "mdi:lightning-bolt",
                      "show_state": true,
                      "show_icon": true
                    },
                    {
                      "type": "entity",
                      "entity": "sensor.nibe_energy_used_total_kwh",
                      "icon": "mdi:home-lightning-bolt",
                      "show_state": true,
                      "show_icon": true
                    },
                    {
                      "type": "entity",
                      "entity": "sensor.nibe_energy_produced_heating_kwh",
                      "icon": "mdi:radiator",
                      "show_state": true,
                      "show_icon": true
                    },
                    {
                      "type": "entity",
                      "entity": "sensor.nibe_energy_produced_hot_water_kwh",
                      "icon": "mdi:water-boiler",
                      "show_state": true,
                      "show_icon": true
                    }
                  ]
                },
                {
                  "type": "custom:apexcharts-card",
                  "header": {
                    "show": true,
                    "title": "COP – 24 h",
                    "show_states": true,
                    "standard_format": true
                  },
                  "graph_span": "24h",
                  "series": [
                    {
                      "entity": "sensor.nibe_energy_cop_total_last_hour",
                      "name": "COP gesamt"
                    },
                    {
                      "entity": "sensor.nibe_energy_cop_heating_last_hour",
                      "name": "COP Heizung"
                    },
                    {
                      "entity": "sensor.nibe_energy_cop_hot_water_last_hour",
                      "name": "COP Warmwasser"
                    }
                  ]
                },
                {
                  "type": "custom:mushroom-entity-card",
                  "entity": "sensor.nibe_s1255_6_e_em_3x400v_tarifblockierung",
                  "name": "Tarifblockierung",
                  "icon": "mdi:currency-eur-off",
                  "layout": "horizontal",
                  "fill_container": true
                }
              ]
            },
            {
              "type": "grid",
              "cards": [
                {
                  "type": "custom:mushroom-title-card",
                  "title": "🗺️ Systemdiagramm"
                },
                {
                  "type": "picture-elements",
                  "image": "/api/image/serve/7ec7636ccf48b97c110d04ca4c281c6a/512x512",
                  "elements": [
                    {
                      "type": "state-label",
                      "entity": "sensor.power_internal_additional_heat_31028",
                      "prefix": "Heater: ",
                      "style": {
                        "top": "50%",
                        "left": "35%"
                      }
                    },
                    {
                      "type": "state-label",
                      "entity": "sensor.flow_sensor_bf1_30041",
                      "prefix": "BF1: ",
                      "style": {
                        "top": "75%",
                        "left": "51%"
                      }
                    },
                    {
                      "type": "state-label",
                      "entity": "sensor.current_outdoor_temperature_bt1_30002",
                      "prefix": "BT1: ",
                      "style": {
                        "top": "88%",
                        "left": "10%"
                      }
                    },
                    {
                      "type": "state-label",
                      "entity": "sensor.supply_line_bt2_30006",
                      "prefix": "BT2: ",
                      "style": {
                        "top": "6%",
                        "left": "40%"
                      }
                    },
                    {
                      "type": "state-label",
                      "entity": "sensor.return_line_bt3_30008",
                      "prefix": "BT3: ",
                      "style": {
                        "top": "10%",
                        "left": "10%"
                      }
                    },
                    {
                      "type": "state-label",
                      "entity": "sensor.hot_water_charging_bt6_30010",
                      "prefix": "BT6: ",
                      "style": {
                        "top": "30%",
                        "left": "30%"
                      }
                    },
                    {
                      "type": "state-label",
                      "entity": "sensor.hot_water_top_bt7_30009",
                      "prefix": "BT7: ",
                      "style": {
                        "top": "23%",
                        "left": "30%"
                      }
                    },
                    {
                      "type": "state-label",
                      "entity": "sensor.condenser_bt12_30013",
                      "prefix": "BT12: ",
                      "style": {
                        "top": "44%",
                        "left": "10%"
                      }
                    },
                    {
                      "type": "state-label",
                      "entity": "sensor.discharge_bt14_30014",
                      "prefix": "BT14: ",
                      "style": {
                        "top": "44%",
                        "left": "60%"
                      }
                    },
                    {
                      "type": "state-label",
                      "entity": "sensor.eb100_ep14_bt16_31627",
                      "prefix": "BT16: ",
                      "style": {
                        "top": "60%",
                        "left": "10%"
                      }
                    },
                    {
                      "type": "state-label",
                      "entity": "sensor.suction_gas_bt17_30017",
                      "prefix": "BT17: ",
                      "style": {
                        "top": "60%",
                        "left": "60%"
                      }
                    },
                    {
                      "type": "state-label",
                      "entity": "sensor.exh_air_az30_bt20_30020",
                      "prefix": "BT20: ",
                      "style": {
                        "top": "91%",
                        "left": "36%"
                      }
                    },
                    {
                      "type": "state-label",
                      "entity": "sensor.extr_air_az30_bt21_30021",
                      "prefix": "BT21: ",
                      "style": {
                        "top": "68%",
                        "left": "12%"
                      }
                    },
                    {
                      "type": "custom:numberbox-card",
                      "entity": "number.nibe_s1255_6_e_em_3x400v_raumfuhler_sollwert_klimatisierungssyste",
                      "name": false,
                      "icon": false,
                      "min": 16,
                      "max": 25,
                      "step": 0.5,
                      "card_mod": {
                        "style": "ha-card { background: grey; }\n"
                      },
                      "style": {
                        "top": "91%",
                        "left": "75%"
                      }
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "title": "IT & Server",
          "path": "it-server",
          "icon": "mdi:server",
          "type": "sections",
          "max_columns": 2,
          "cards": [],
          "badges": [
            {
              "type": "custom:mushroom-chips-card",
              "chips": [
                {
                  "type": "template",
                  "icon": "mdi:server",
                  "icon_color": "{{ 'green' if is_state('binary_sensor.node_nuc_status','on') else 'red' }}\n",
                  "content": "{{ 'NUC Online' if is_state('binary_sensor.node_nuc_status','on') else 'NUC Offline' }}\n"
                },
                {
                  "type": "entity",
                  "entity": "sensor.cloud_gateway_fiber_cloudflare_wan_latency",
                  "icon": "mdi:web",
                  "show_state": true,
                  "show_icon": true
                },
                {
                  "type": "entity",
                  "entity": "sensor.adguard_home_anteil_blockierter_dns_abfragen",
                  "icon": "mdi:shield-check",
                  "show_state": true,
                  "show_icon": true
                },
                {
                  "type": "conditional",
                  "conditions": [
                    {
                      "condition": "state",
                      "entity": "binary_sensor.node_nuc_pakete_aktualisieren",
                      "state": "on"
                    }
                  ],
                  "chip": {
                    "type": "template",
                    "icon": "mdi:update",
                    "icon_color": "orange",
                    "content": "{{ states('sensor.node_nuc_gesamte_updates') }} Updates\n"
                  }
                }
              ]
            },
            {
              "type": "entity",
              "show_name": false,
              "show_state": true,
              "show_icon": true,
              "entity": "binary_sensor.appdaemon_aktiv"
            }
          ],
          "sections": [
            {
              "type": "grid",
              "cards": [
                {
                  "type": "custom:mushroom-title-card",
                  "title": "🖥️ Proxmox NUC"
                },
                {
                  "type": "custom:mushroom-chips-card",
                  "alignment": "center",
                  "chips": [
                    {
                      "type": "template",
                      "icon": "mdi:server",
                      "icon_color": "{{ 'green' if is_state('binary_sensor.node_nuc_status','on') else 'red' }}\n",
                      "content": "{{ 'Online' if is_state('binary_sensor.node_nuc_status','on') else 'Offline' }}\n"
                    },
                    {
                      "type": "entity",
                      "entity": "sensor.node_nuc_cpu_auslastung",
                      "icon": "mdi:cpu-64-bit",
                      "show_state": true,
                      "show_icon": true
                    },
                    {
                      "type": "entity",
                      "entity": "sensor.node_nuc_prozentsatz_genutzter_arbeitsspeicher",
                      "icon": "mdi:memory",
                      "show_state": true,
                      "show_icon": true
                    },
                    {
                      "type": "entity",
                      "entity": "sensor.node_nuc_prozentsatz_belegter_speicherplatz",
                      "icon": "mdi:harddisk",
                      "show_state": true,
                      "show_icon": true
                    }
                  ]
                },
                {
                  "type": "custom:mushroom-chips-card",
                  "alignment": "center",
                  "chips": [
                    {
                      "type": "entity",
                      "entity": "sensor.node_nuc_virtual_machines_running",
                      "icon": "mdi:monitor",
                      "show_state": true,
                      "show_icon": true
                    },
                    {
                      "type": "entity",
                      "entity": "sensor.node_nuc_container_laufen",
                      "icon": "mdi:docker",
                      "show_state": true,
                      "show_icon": true
                    },
                    {
                      "type": "entity",
                      "entity": "sensor.node_nuc_letzter_start",
                      "icon": "mdi:clock-outline",
                      "show_state": true,
                      "show_icon": true
                    }
                  ]
                },
                {
                  "type": "conditional",
                  "conditions": [
                    {
                      "condition": "state",
                      "entity": "binary_sensor.node_nuc_pakete_aktualisieren",
                      "state": "on"
                    }
                  ],
                  "card": {
                    "type": "custom:mushroom-entity-card",
                    "entity": "sensor.node_nuc_gesamte_updates",
                    "name": "Updates verfügbar",
                    "icon": "mdi:update",
                    "icon_color": "orange",
                    "layout": "horizontal",
                    "fill_container": true
                  }
                },
                {
                  "type": "custom:mushroom-entity-card",
                  "entity": "sensor.node_nuc_genutzter_arbeitsspeicher",
                  "name": "RAM genutzt",
                  "icon": "mdi:memory",
                  "layout": "horizontal",
                  "fill_container": true
                },
                {
                  "type": "custom:mushroom-entity-card",
                  "entity": "sensor.node_nuc_freier_arbeitsspeicher",
                  "name": "RAM frei",
                  "icon": "mdi:memory",
                  "layout": "horizontal",
                  "fill_container": true
                },
                {
                  "type": "custom:apexcharts-card",
                  "header": {
                    "show": true,
                    "title": "CPU & RAM – 24 h",
                    "show_states": true,
                    "standard_format": true
                  },
                  "graph_span": "24h",
                  "yaxis": [
                    {
                      "id": "pct",
                      "min": 0,
                      "max": 100,
                      "decimals": 0
                    }
                  ],
                  "series": [
                    {
                      "entity": "sensor.node_nuc_cpu_auslastung",
                      "name": "CPU %",
                      "yaxis_id": "pct",
                      "color": "#1e88e5"
                    },
                    {
                      "entity": "sensor.node_nuc_prozentsatz_genutzter_arbeitsspeicher",
                      "name": "RAM %",
                      "yaxis_id": "pct",
                      "color": "#e53935"
                    }
                  ]
                }
              ]
            },
            {
              "type": "grid",
              "cards": [
                {
                  "type": "custom:mushroom-title-card",
                  "title": "🌐 UniFi Gateway"
                },
                {
                  "type": "custom:mushroom-chips-card",
                  "alignment": "center",
                  "chips": [
                    {
                      "type": "entity",
                      "entity": "sensor.cloud_gateway_fiber_cloudflare_wan_latency",
                      "icon": "mdi:web",
                      "show_state": true,
                      "show_icon": true
                    },
                    {
                      "type": "entity",
                      "entity": "sensor.cloud_gateway_fiber_cpu_utilization",
                      "icon": "mdi:cpu-64-bit",
                      "show_state": true,
                      "show_icon": true
                    },
                    {
                      "type": "entity",
                      "entity": "sensor.cloud_gateway_fiber_memory_utilization",
                      "icon": "mdi:memory",
                      "show_state": true,
                      "show_icon": true
                    },
                    {
                      "type": "entity",
                      "entity": "sensor.cloud_gateway_fiber_cloud_gateway_fiber_cpu_temperature",
                      "icon": "mdi:thermometer",
                      "show_state": true,
                      "show_icon": true
                    }
                  ]
                },
                {
                  "type": "custom:mushroom-entity-card",
                  "entity": "sensor.cloud_gateway_fiber_state",
                  "name": "Status",
                  "icon": "mdi:router-network",
                  "layout": "horizontal",
                  "fill_container": true
                },
                {
                  "type": "custom:mushroom-entity-card",
                  "entity": "sensor.cloud_gateway_fiber_uptime",
                  "name": "Uptime",
                  "icon": "mdi:clock-outline",
                  "layout": "horizontal",
                  "fill_container": true
                },
                {
                  "type": "custom:apexcharts-card",
                  "header": {
                    "show": true,
                    "title": "WAN Latenz – 24 h",
                    "show_states": true,
                    "standard_format": true
                  },
                  "graph_span": "24h",
                  "series": [
                    {
                      "entity": "sensor.cloud_gateway_fiber_cloudflare_wan_latency",
                      "name": "WAN Latenz (ms)",
                      "color": "#1e88e5"
                    }
                  ]
                }
              ]
            },
            {
              "type": "grid",
              "cards": [
                {
                  "type": "custom:mushroom-title-card",
                  "title": "🛡️ AdGuard Home"
                },
                {
                  "type": "custom:mushroom-chips-card",
                  "alignment": "center",
                  "chips": [
                    {
                      "type": "entity",
                      "entity": "sensor.adguard_home_anteil_blockierter_dns_abfragen",
                      "icon": "mdi:shield-check",
                      "show_state": true,
                      "show_icon": true
                    },
                    {
                      "type": "entity",
                      "entity": "sensor.adguard_home_dns_abfragen",
                      "icon": "mdi:dns",
                      "show_state": true,
                      "show_icon": true
                    },
                    {
                      "type": "entity",
                      "entity": "sensor.adguard_home_blockierte_dns_abfragen",
                      "icon": "mdi:shield-off",
                      "show_state": true,
                      "show_icon": true
                    }
                  ]
                },
                {
                  "type": "custom:mushroom-entity-card",
                  "entity": "sensor.adguard_home_durchschnittliche_verarbeitungsgeschwindigkeit",
                  "name": "Ø Antwortzeit",
                  "icon": "mdi:timer-outline",
                  "layout": "horizontal",
                  "fill_container": true
                },
                {
                  "type": "custom:mushroom-entity-card",
                  "entity": "sensor.adguard_home_durch_safe_browsing_blockiert",
                  "name": "Safe Browsing blockiert",
                  "icon": "mdi:web-off",
                  "layout": "horizontal",
                  "fill_container": true
                },
                {
                  "type": "custom:mushroom-entity-card",
                  "entity": "sensor.adguard_home_durch_jugendschutz_blockiert",
                  "name": "Jugendschutz blockiert",
                  "icon": "mdi:account-child",
                  "layout": "horizontal",
                  "fill_container": true
                }
              ]
            },
            {
              "type": "grid",
              "cards": [
                {
                  "type": "custom:mushroom-title-card",
                  "title": "📷 Immich Fotoverwaltung"
                },
                {
                  "type": "custom:mushroom-chips-card",
                  "alignment": "center",
                  "chips": [
                    {
                      "type": "entity",
                      "entity": "sensor.immich_anzahl_fotos",
                      "icon": "mdi:image-multiple",
                      "show_state": true,
                      "show_icon": true
                    },
                    {
                      "type": "entity",
                      "entity": "sensor.immich_anzahl_videos",
                      "icon": "mdi:video-box",
                      "show_state": true,
                      "show_icon": true
                    }
                  ]
                },
                {
                  "type": "custom:mushroom-entity-card",
                  "entity": "sensor.immich_gesamter_speicherplatz",
                  "name": "Gesamt Speicher",
                  "icon": "mdi:harddisk",
                  "layout": "horizontal",
                  "fill_container": true
                },
                {
                  "type": "custom:mushroom-entity-card",
                  "entity": "sensor.immich_verfugbarer_speicherplatz",
                  "name": "Verfügbar",
                  "icon": "mdi:harddisk-plus",
                  "layout": "horizontal",
                  "fill_container": true
                }
              ]
            },
            {
              "type": "grid",
              "cards": [
                {
                  "type": "custom:mushroom-title-card",
                  "title": "🎵 Music Assistant"
                },
                {
                  "type": "custom:mushroom-chips-card",
                  "alignment": "center",
                  "chips": [
                    {
                      "type": "template",
                      "icon": "mdi:music-circle",
                      "icon_color": "{{ 'green' if is_state('binary_sensor.music_assistant_server_aktiv','on') else 'red' }}\n",
                      "content": "{{ 'Aktiv' if is_state('binary_sensor.music_assistant_server_aktiv','on') else 'Inaktiv' }}\n"
                    },
                    {
                      "type": "entity",
                      "entity": "sensor.music_assistant_server_cpu_prozent",
                      "icon": "mdi:cpu-64-bit",
                      "show_state": true,
                      "show_icon": true
                    },
                    {
                      "type": "entity",
                      "entity": "sensor.music_assistant_server_arbeitsspeicher_in_prozent",
                      "icon": "mdi:memory",
                      "show_state": true,
                      "show_icon": true
                    }
                  ]
                },
                {
                  "type": "custom:mushroom-entity-card",
                  "entity": "sensor.music_assistant_server_version",
                  "name": "Version",
                  "icon": "mdi:tag-outline",
                  "layout": "horizontal",
                  "fill_container": true
                }
              ]
            },
            {
              "type": "grid",
              "cards": [
                {
                  "type": "custom:mushroom-title-card",
                  "title": "💾 Backup"
                },
                {
                  "type": "custom:mushroom-entity-card",
                  "entity": "sensor.backup_backup_manager_zustand",
                  "name": "Backup-Status",
                  "icon": "mdi:backup-restore",
                  "layout": "horizontal",
                  "fill_container": true
                },
                {
                  "type": "custom:mushroom-entity-card",
                  "entity": "sensor.backup_letztes_erfolgreiches_automatisches_backup",
                  "name": "Letztes erfolgreiches Backup",
                  "icon": "mdi:check-circle-outline",
                  "layout": "horizontal",
                  "fill_container": true
                },
                {
                  "type": "custom:mushroom-entity-card",
                  "entity": "sensor.backup_nachstes_geplantes_automatisches_backup",
                  "name": "Nächstes Backup",
                  "icon": "mdi:clock-outline",
                  "layout": "horizontal",
                  "fill_container": true
                }
              ]
            },
            {
              "type": "grid",
              "cards": [
                {
                  "type": "custom:mushroom-title-card",
                  "title": "📡 Zigbee2MQTT"
                },
                {
                  "type": "custom:mushroom-chips-card",
                  "alignment": "center",
                  "chips": [
                    {
                      "type": "template",
                      "icon": "mdi:zigbee",
                      "icon_color": "{{ 'green' if is_state('binary_sensor.zigbee2mqtt_bridge_connection_state','on') else 'red' }}\n",
                      "content": "{{ 'Verbunden' if is_state('binary_sensor.zigbee2mqtt_bridge_connection_state','on') else 'Getrennt' }}\n"
                    },
                    {
                      "type": "entity",
                      "entity": "sensor.zigbee2mqtt_bridge_version",
                      "icon": "mdi:tag-outline",
                      "show_state": true,
                      "show_icon": true
                    }
                  ]
                },
                {
                  "type": "custom:mushroom-entity-card",
                  "entity": "switch.zigbee2mqtt_bridge_permit_join",
                  "name": "Pairing erlauben",
                  "icon": "mdi:link-plus",
                  "tap_action": {
                    "action": "toggle"
                  },
                  "layout": "horizontal",
                  "fill_container": true
                },
                {
                  "type": "custom:mushroom-entity-card",
                  "entity": "button.zigbee2mqtt_bridge_restart",
                  "name": "Bridge neu starten",
                  "icon": "mdi:restart",
                  "layout": "horizontal",
                  "fill_container": true,
                  "tap_action": {
                    "action": "call-service",
                    "service": "button.press",
                    "target": {
                      "entity_id": "button.zigbee2mqtt_bridge_restart"
                    }
                  }
                }
              ]
            }
          ]
        },
        {
          "title": "Sicherheit",
          "path": "sicherheit",
          "icon": "mdi:shield-home",
          "type": "sections",
          "max_columns": 2,
          "cards": [],
          "badges": [
            {
              "type": "custom:mushroom-chips-card",
              "chips": [
                {
                  "type": "template",
                  "icon": "mdi:smoke-detector-variant",
                  "icon_color": "{{ 'red' if is_state('binary_sensor.buro_rauchmelder_smoke','on')\n        or is_state('binary_sensor.kinderzimmer_rauchmelder_smoke','on')\n        or is_state('binary_sensor.schlafzimmer_rauchmelder_smoke','on')\n        or is_state('binary_sensor.gastezimmer_rauchmelder_smoke','on')\n        or is_state('binary_sensor.technikraum_rauchmelder_smoke','on')\n        or is_state('binary_sensor.wohnzimmer_rauchmelder_smoke','on')\n   else 'green' }}\n",
                  "content": "{% set rooms = {\n  'Büro': 'binary_sensor.buro_rauchmelder_smoke',\n  'Kinderzimmer': 'binary_sensor.kinderzimmer_rauchmelder_smoke',\n  'Schlafzimmer': 'binary_sensor.schlafzimmer_rauchmelder_smoke',\n  'Gästezimmer': 'binary_sensor.gastezimmer_rauchmelder_smoke',\n  'Technikraum': 'binary_sensor.technikraum_rauchmelder_smoke',\n  'Wohnzimmer': 'binary_sensor.wohnzimmer_rauchmelder_smoke'\n} %} {% set alarm = namespace(room='') %} {% for name, entity in rooms.items() %}\n  {% if is_state(entity,'on') and alarm.room == '' %}\n    {% set alarm.room = name %}\n  {% endif %}\n{% endfor %} {{ 'Rauch – ' ~ alarm.room ~ '!' if alarm.room != '' else 'Kein Rauch' }}\n"
                },
                {
                  "type": "template",
                  "icon": "mdi:water-alert",
                  "icon_color": "{{ 'red' if is_state('binary_sensor.technikraum_wassermelder_water_leak','on')\n        or is_state('binary_sensor.wc_wassermelder_water_leak','on')\n        or is_state('binary_sensor.kuche_wassermelder_water_leak','on')\n   else 'green' }}\n",
                  "content": "{% if is_state('binary_sensor.technikraum_wassermelder_water_leak','on') %}\n  Wasser – Technikraum!\n{% elif is_state('binary_sensor.wc_wassermelder_water_leak','on') %}\n  Wasser – WC!\n{% elif is_state('binary_sensor.kuche_wassermelder_water_leak','on') %}\n  Wasser – Küche!\n{% else %}\n  Trocken\n{% endif %}\n"
                }
              ]
            }
          ],
          "sections": [
            {
              "type": "grid",
              "cards": [
                {
                  "type": "custom:mushroom-title-card",
                  "title": "🔥 Rauchmelder"
                },
                {
                  "type": "custom:mushroom-template-card",
                  "primary": "Büro",
                  "secondary": "{{ states('sensor.buro_rauchmelder_temperature') }}°C · {{ states('sensor.buro_rauchmelder_humidity') }}% · AQI {{ states('sensor.buro_rauchmelder_aqi') }}\n",
                  "icon": "mdi:smoke-detector-variant",
                  "icon_color": "{{ 'red' if is_state('binary_sensor.buro_rauchmelder_smoke','on') else 'green' }}\n",
                  "layout": "horizontal",
                  "fill_container": true,
                  "tap_action": {
                    "action": "more-info",
                    "entity": "binary_sensor.buro_rauchmelder_smoke"
                  }
                },
                {
                  "type": "custom:mushroom-template-card",
                  "primary": "Kinderzimmer",
                  "secondary": "{{ states('sensor.kinderzimmer_rauchmelder_temperature') }}°C · {{ states('sensor.kinderzimmer_rauchmelder_humidity') }}% · AQI {{ states('sensor.kinderzimmer_rauchmelder_aqi') }}\n",
                  "icon": "mdi:smoke-detector-variant",
                  "icon_color": "{{ 'red' if is_state('binary_sensor.kinderzimmer_rauchmelder_smoke','on') else 'green' }}\n",
                  "layout": "horizontal",
                  "fill_container": true,
                  "tap_action": {
                    "action": "more-info",
                    "entity": "binary_sensor.kinderzimmer_rauchmelder_smoke"
                  }
                },
                {
                  "type": "custom:mushroom-template-card",
                  "primary": "Schlafzimmer",
                  "secondary": "{{ states('sensor.schlafzimmer_rauchmelder_temperature') }}°C · {{ states('sensor.schlafzimmer_rauchmelder_humidity') }}% · AQI {{ states('sensor.schlafzimmer_rauchmelder_aqi') }}\n",
                  "icon": "mdi:smoke-detector-variant",
                  "icon_color": "{{ 'red' if is_state('binary_sensor.schlafzimmer_rauchmelder_smoke','on') else 'green' }}\n",
                  "layout": "horizontal",
                  "fill_container": true,
                  "tap_action": {
                    "action": "more-info",
                    "entity": "binary_sensor.schlafzimmer_rauchmelder_smoke"
                  }
                },
                {
                  "type": "custom:mushroom-template-card",
                  "primary": "Gästezimmer",
                  "secondary": "{{ states('sensor.gastezimmer_rauchmelder_temperature') }}°C · {{ states('sensor.gastezimmer_rauchmelder_humidity') }}% · AQI {{ states('sensor.gastezimmer_rauchmelder_aqi') }}\n",
                  "icon": "mdi:smoke-detector-variant",
                  "icon_color": "{{ 'red' if is_state('binary_sensor.gastezimmer_rauchmelder_smoke','on') else 'green' }}\n",
                  "layout": "horizontal",
                  "fill_container": true,
                  "tap_action": {
                    "action": "more-info",
                    "entity": "binary_sensor.gastezimmer_rauchmelder_smoke"
                  }
                },
                {
                  "type": "custom:mushroom-template-card",
                  "primary": "Wohnzimmer",
                  "secondary": "{{ states('sensor.wohnzimmer_rauchmelder_temperature') | default('–') }}°C · {{ states('sensor.wohnzimmer_rauchmelder_humidity') | default('–') }}% · AQI {{ states('sensor.wohnzimmer_rauchmelder_aqi') }}\n",
                  "icon": "mdi:smoke-detector-variant",
                  "icon_color": "{{ 'red' if is_state('binary_sensor.wohnzimmer_rauchmelder_smoke','on') else 'green' }}\n",
                  "layout": "horizontal",
                  "fill_container": true,
                  "tap_action": {
                    "action": "more-info",
                    "entity": "binary_sensor.wohnzimmer_rauchmelder_smoke"
                  }
                },
                {
                  "type": "custom:mushroom-template-card",
                  "primary": "Technikraum",
                  "secondary": "{{ states('sensor.technikraum_rauchmelder_temperature') }}°C · {{ states('sensor.technikraum_rauchmelder_humidity') }}% · AQI {{ states('sensor.technikraum_rauchmelder_aqi') }}\n",
                  "icon": "mdi:smoke-detector-variant",
                  "icon_color": "{{ 'red' if is_state('binary_sensor.technikraum_rauchmelder_smoke','on') else 'green' }}\n",
                  "layout": "horizontal",
                  "fill_container": true,
                  "tap_action": {
                    "action": "more-info",
                    "entity": "binary_sensor.technikraum_rauchmelder_smoke"
                  }
                },
                {
                  "type": "custom:mushroom-title-card",
                  "title": "💧 Wassermelder"
                },
                {
                  "type": "custom:mushroom-template-card",
                  "primary": "Küche",
                  "secondary": "{{ states('sensor.kuche_wassermelder_device_temperature') }}°C · Batterie {{ states('sensor.kuche_wassermelder_battery') }}%\n",
                  "icon": "mdi:water-alert",
                  "icon_color": "{{ 'red' if is_state('binary_sensor.kuche_wassermelder_water_leak','on') else 'green' }}\n",
                  "layout": "horizontal",
                  "fill_container": true,
                  "tap_action": {
                    "action": "more-info",
                    "entity": "binary_sensor.kuche_wassermelder_water_leak"
                  }
                },
                {
                  "type": "custom:mushroom-template-card",
                  "primary": "WC",
                  "secondary": "{{ states('sensor.wc_wassermelder_device_temperature') }}°C · Batterie {{ states('sensor.wc_wassermelder_battery') }}%\n",
                  "icon": "mdi:water-alert",
                  "icon_color": "{{ 'red' if is_state('binary_sensor.wc_wassermelder_water_leak','on') else 'green' }}\n",
                  "layout": "horizontal",
                  "fill_container": true,
                  "tap_action": {
                    "action": "more-info",
                    "entity": "binary_sensor.wc_wassermelder_water_leak"
                  }
                },
                {
                  "type": "custom:mushroom-template-card",
                  "primary": "Technikraum",
                  "secondary": "{{ states('sensor.technikraum_wassermelder_device_temperature') }}°C · Batterie {{ states('sensor.technikraum_wassermelder_battery') }}%\n",
                  "icon": "mdi:water-alert",
                  "icon_color": "{{ 'red' if is_state('binary_sensor.technikraum_wassermelder_water_leak','on') else 'green' }}\n",
                  "layout": "horizontal",
                  "fill_container": true,
                  "tap_action": {
                    "action": "more-info",
                    "entity": "binary_sensor.technikraum_wassermelder_water_leak"
                  }
                }
              ]
            },
            {
              "type": "grid",
              "cards": [
                {
                  "type": "custom:mushroom-title-card",
                  "title": "🌡️ Raumklima (via Rauchmelder)"
                },
                {
                  "type": "custom:apexcharts-card",
                  "header": {
                    "show": true,
                    "title": "Luftqualität (AQI) – 24 h",
                    "show_states": true,
                    "standard_format": true
                  },
                  "graph_span": "24h",
                  "series": [
                    {
                      "entity": "sensor.wohnzimmer_rauchmelder_aqi",
                      "name": "Wohnzimmer"
                    },
                    {
                      "entity": "sensor.buro_rauchmelder_aqi",
                      "name": "Büro"
                    },
                    {
                      "entity": "sensor.schlafzimmer_rauchmelder_aqi",
                      "name": "Schlafzimmer"
                    },
                    {
                      "entity": "sensor.kinderzimmer_rauchmelder_aqi",
                      "name": "Kinderzimmer"
                    },
                    {
                      "entity": "sensor.gastezimmer_rauchmelder_aqi",
                      "name": "Gästezimmer"
                    },
                    {
                      "entity": "sensor.technikraum_rauchmelder_aqi",
                      "name": "Technikraum"
                    }
                  ]
                },
                {
                  "type": "custom:apexcharts-card",
                  "header": {
                    "show": true,
                    "title": "Temperaturen – 24 h",
                    "show_states": true,
                    "standard_format": true
                  },
                  "graph_span": "24h",
                  "series": [
                    {
                      "entity": "sensor.wohnzimmer_rauchmelder_temperature",
                      "name": "Wohnzimmer"
                    },
                    {
                      "entity": "sensor.buro_rauchmelder_temperature",
                      "name": "Büro"
                    },
                    {
                      "entity": "sensor.kinderzimmer_rauchmelder_temperature",
                      "name": "Kinderzimmer"
                    },
                    {
                      "entity": "sensor.schlafzimmer_rauchmelder_temperature",
                      "name": "Schlafzimmer"
                    },
                    {
                      "entity": "sensor.gastezimmer_rauchmelder_temperature",
                      "name": "Gästezimmer"
                    },
                    {
                      "entity": "sensor.technikraum_rauchmelder_temperature",
                      "name": "Technikraum"
                    }
                  ]
                },
                {
                  "type": "custom:apexcharts-card",
                  "header": {
                    "show": true,
                    "title": "Luftfeuchtigkeit – 24 h",
                    "show_states": true,
                    "standard_format": true
                  },
                  "graph_span": "24h",
                  "yaxis": [
                    {
                      "min": 0,
                      "max": 100,
                      "decimals": 0
                    }
                  ],
                  "series": [
                    {
                      "entity": "sensor.wohnzimmer_rauchmelder_humidity",
                      "name": "Wohnzimmer"
                    },
                    {
                      "entity": "sensor.buro_rauchmelder_humidity",
                      "name": "Büro"
                    },
                    {
                      "entity": "sensor.kinderzimmer_rauchmelder_humidity",
                      "name": "Kinderzimmer"
                    },
                    {
                      "entity": "sensor.schlafzimmer_rauchmelder_humidity",
                      "name": "Schlafzimmer"
                    },
                    {
                      "entity": "sensor.gastezimmer_rauchmelder_humidity",
                      "name": "Gästezimmer"
                    },
                    {
                      "entity": "sensor.technikraum_rauchmelder_humidity",
                      "name": "Technikraum"
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "type": "sections",
          "max_columns": 1,
          "title": "experiments",
          "path": "experiments",
          "icon": "fa6-solid:flask",
          "sections": [
            {
              "type": "grid",
              "cards": [
                {
                  "type": "heading",
                  "heading": "Neuer Abschnitt"
                },
                {
                  "type": "history-graph",
                  "entities": [
                    {
                      "entity": "binary_sensor.technikraum_wasserticker_contact"
                    }
                  ],
                  "hours_to_show": 0.02
                }
              ]
            }
          ],
          "cards": []
        }
      ]
    }
  }
}