feat(dashboard-zuhause): add Glance tab as first view
Erste neue View "Glance" eingefügt vor den bestehenden 3 Views (Home, Einkaufsliste, music). Enthält: - Personen-Chips (Florian/Anne/Karolina) + Wetter + Sun - Sicherheits-Aggregat (6 Rauch + 3 Wasser, Farb-Logik) - Power-Flow-Card (PV/Speicher/Grid/Haus, kopiert aus bestehender Section) - NIBE-Quick (Vorlauf + Außen + WW) - Roborock-Quick (Status + Akku) - Quick-Actions (Nachtmodus + Spüler-Nacht) - Clock-Weather-Card - DWD-Warnung (conditional) - Trash-Card (Abfallkalender) max_columns: 1 für Tablet-Portrait, kein Scroll auf 11" erwartet. HA Core Restart durchgeführt, Lovelace neu geladen. ha core check exit 0.
This commit is contained in:
+218
-1
@@ -5,6 +5,223 @@
|
||||
"data": {
|
||||
"config": {
|
||||
"views": [
|
||||
{
|
||||
"title": "Glance",
|
||||
"path": "glance",
|
||||
"icon": "mdi:view-dashboard",
|
||||
"type": "sections",
|
||||
"max_columns": 1,
|
||||
"header": {
|
||||
"card": {
|
||||
"type": "custom:mushroom-title-card",
|
||||
"title": "🏠 Zuhause",
|
||||
"subtitle": "{{ now().strftime('%A, %d. %B') }}"
|
||||
}
|
||||
},
|
||||
"sections": [
|
||||
{
|
||||
"type": "grid",
|
||||
"cards": [
|
||||
{
|
||||
"type": "custom:mushroom-chips-card",
|
||||
"alignment": "justify",
|
||||
"chips": [
|
||||
{
|
||||
"type": "entity",
|
||||
"entity": "person.zuhause",
|
||||
"content_info": "name"
|
||||
},
|
||||
{
|
||||
"type": "entity",
|
||||
"entity": "person.anne",
|
||||
"content_info": "name"
|
||||
},
|
||||
{
|
||||
"type": "entity",
|
||||
"entity": "person.karolina",
|
||||
"content_info": "name"
|
||||
},
|
||||
{
|
||||
"type": "weather",
|
||||
"entity": "weather.wetter",
|
||||
"show_conditions": true,
|
||||
"show_temperature": true
|
||||
},
|
||||
{
|
||||
"type": "entity",
|
||||
"entity": "sun.sun"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "custom:mushroom-template-card",
|
||||
"primary": "Sicherheit",
|
||||
"secondary": "{% set smoke = expand(states.binary_sensor) | selectattr('attributes.device_class','eq','smoke') | rejectattr('state','eq','unavailable') | list %}{% set smoke_on = smoke | selectattr('state','eq','on') | list | length %}{% set water = expand(states.binary_sensor) | selectattr('attributes.device_class','in',['moisture']) | rejectattr('state','eq','unavailable') | list %}{% set water_on = water | selectattr('state','eq','on') | list | length %}{{ smoke|length }}× Rauch · {{ water|length }}× Wasser{% if smoke_on > 0 %} · ⚠️ RAUCH!{% endif %}{% if water_on > 0 %} · ⚠️ WASSER!{% endif %}",
|
||||
"icon": "mdi:shield-check",
|
||||
"icon_color": "{% set smoke_on = expand(states.binary_sensor) | selectattr('attributes.device_class','eq','smoke') | selectattr('state','eq','on') | list | length %}{% set water_on = expand(states.binary_sensor) | selectattr('attributes.device_class','eq','moisture') | selectattr('state','eq','on') | list | length %}{% if smoke_on > 0 %}red{% elif water_on > 0 %}orange{% else %}green{% endif %}",
|
||||
"fill_container": true,
|
||||
"tap_action": {
|
||||
"action": "navigate",
|
||||
"navigation_path": "/dashboard-system/sicherheit"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "custom:power-flow-card-plus",
|
||||
"entities": {
|
||||
"battery": {
|
||||
"entity": "sensor.powerocean_hj37zdh5zg5w0109_batterieleistung",
|
||||
"state_of_charge": "sensor.powerocean_hj37zdh5zg5w0109_ladezustand_der_batterie",
|
||||
"invert_state": true,
|
||||
"color_value": true,
|
||||
"state_of_charge_unit": "%"
|
||||
},
|
||||
"grid": {
|
||||
"entity": {
|
||||
"consumption": "sensor.powerocean_hj37zdh5zg5w0109_netz_zu_haus",
|
||||
"production": "sensor.powerocean_hj37zdh5zg5w0109_solar_zu_netz"
|
||||
},
|
||||
"color_value": true,
|
||||
"display_state": "two_way"
|
||||
},
|
||||
"solar": {
|
||||
"entity": "sensor.powerocean_hj37zdh5zg5w0109_solarertrag_mppt",
|
||||
"display_zero_state": true
|
||||
},
|
||||
"home": {
|
||||
"entity": "sensor.powerocean_hj37zdh5zg5w0109_hausverbrauch"
|
||||
}
|
||||
},
|
||||
"use_new_flow_rate_model": true,
|
||||
"min_flow_rate": 0.75,
|
||||
"max_flow_rate": 6,
|
||||
"max_expected_power": 4000,
|
||||
"kilo_threshold": 900,
|
||||
"kilo_decimals": 1,
|
||||
"base_decimals": 0,
|
||||
"tap_action": {
|
||||
"action": "navigate",
|
||||
"navigation_path": "/dashboard-energie/strom"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "custom:mushroom-template-card",
|
||||
"primary": "Heizung NIBE",
|
||||
"secondary": "Vorlauf {{ states('sensor.nibe_s1255_6_e_em_3x400v_supply_line_bt2') | float(0) | round(1) }}°C · Außen {{ states('sensor.nibe_s1255_6_e_em_3x400v_current_outdoor_temperature_bt1') | float(0) | round(1) }}°C · WW {{ states('sensor.nibe_s1255_6_e_em_3x400v_hot_water_top_bt7') | float(0) | round(0) }}°C",
|
||||
"icon": "mdi:heat-pump",
|
||||
"icon_color": "{% set v = states('sensor.nibe_s1255_6_e_em_3x400v_supply_line_bt2') | float(0) %}{% if v > 40 %}red{% elif v > 30 %}orange{% else %}blue{% endif %}",
|
||||
"fill_container": true,
|
||||
"tap_action": {
|
||||
"action": "navigate",
|
||||
"navigation_path": "/lovelace/klima"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "custom:mushroom-template-card",
|
||||
"primary": "Roborock Qrevo Curv",
|
||||
"secondary": "{{ states('sensor.roborock_qrevo_curv_status') }} · 🔋 {{ states('sensor.roborock_qrevo_curv_batterie') }}% · {{ states('sensor.roborock_qrevo_curv_gesamtzahl_reinigungen') }} Reinigungen",
|
||||
"icon": "mdi:robot-vacuum",
|
||||
"icon_color": "{% set s = states('sensor.roborock_qrevo_curv_status') %}{% if s in ['cleaning','returning'] %}blue{% elif s == 'charging' %}green{% elif s == 'error' %}red{% else %}grey{% endif %}",
|
||||
"fill_container": true,
|
||||
"tap_action": {
|
||||
"action": "navigate",
|
||||
"navigation_path": "/lovelace/sauger"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "horizontal-stack",
|
||||
"cards": [
|
||||
{
|
||||
"type": "custom:mushroom-entity-card",
|
||||
"entity": "input_button.nachtmodus",
|
||||
"name": "Nachtmodus",
|
||||
"icon": "mdi:weather-night",
|
||||
"icon_color": "indigo",
|
||||
"tap_action": {
|
||||
"action": "toggle"
|
||||
},
|
||||
"fill_container": true
|
||||
},
|
||||
{
|
||||
"type": "custom:mushroom-entity-card",
|
||||
"entity": "input_boolean.geschirrspuler_uber_nacht",
|
||||
"name": "Spüler Nacht",
|
||||
"icon": "mdi:dishwasher",
|
||||
"icon_color": "{% if is_state('input_boolean.geschirrspuler_uber_nacht','on') %}cyan{% else %}grey{% endif %}",
|
||||
"tap_action": {
|
||||
"action": "toggle"
|
||||
},
|
||||
"fill_container": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "custom:clock-weather-card",
|
||||
"entity": "weather.wetter",
|
||||
"show_humidity": true,
|
||||
"hide_clock": true
|
||||
},
|
||||
{
|
||||
"type": "conditional",
|
||||
"conditions": [
|
||||
{
|
||||
"condition": "state",
|
||||
"entity": "sensor.mitgliedsgemeinde_in_verwaltungsgemeinschaft_welden_aktuelle_warnstufe",
|
||||
"state_not": "0"
|
||||
}
|
||||
],
|
||||
"card": {
|
||||
"type": "markdown",
|
||||
"content": "⚠️ **DWD-Warnung aktiv** — Details auf System-Dashboard"
|
||||
}
|
||||
},
|
||||
{
|
||||
"event_grouping": true,
|
||||
"drop_todayevents_from": "10:00:00",
|
||||
"next_days": 14,
|
||||
"pattern": [
|
||||
{
|
||||
"icon": "mdi:flower",
|
||||
"color": "lime",
|
||||
"type": "organic",
|
||||
"pattern": "Bio"
|
||||
},
|
||||
{
|
||||
"icon": "mdi:newspaper",
|
||||
"color": "blue",
|
||||
"type": "paper",
|
||||
"pattern": "Altpapier"
|
||||
},
|
||||
{
|
||||
"icon": "mdi:recycle-variant",
|
||||
"color": "amber",
|
||||
"type": "recycle",
|
||||
"pattern": "Gelber"
|
||||
},
|
||||
{
|
||||
"icon": "mdi:trash-can-outline",
|
||||
"color": "grey",
|
||||
"type": "waste",
|
||||
"pattern": "Restmüll",
|
||||
"label": "Restmüll Tonne"
|
||||
}
|
||||
],
|
||||
"day_style": "default",
|
||||
"day_style_format": "yyyy.MM.dd",
|
||||
"card_style": "card",
|
||||
"alignment_style": "left",
|
||||
"color_mode": "icon",
|
||||
"items_per_row": 1,
|
||||
"refresh_rate": 60,
|
||||
"with_label": true,
|
||||
"type": "custom:trash-card",
|
||||
"entities": [
|
||||
"calendar.abfallkalender"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Home",
|
||||
"type": "sections",
|
||||
@@ -1189,4 +1406,4 @@
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user