Standort-Kachel: Live-Fahrzeugposition auf der Übersicht

Neue Kachel oberhalb von "Zuletzt" mit echter Leaflet-Mini-Karte,
öffnet per Klick eine Vollbild-Standortansicht (Kartendarstellung
wählen, auf Fahrzeug/User zentrieren, beide zeigen) mit einem
ausziehbaren myAudi-Stil-Menü: Distanz zum Gerät, Adresse (Reverse-
Geocoding via Nominatim), fährt/steht/Letzter-Parkplatz-Status,
Tankfüllstand/Reichweite, Route- und Teilen-Aktionen.

Backend: STANDORT_TRACKER-Einstellung (device_tracker-Entity) plus
_standort()-Veröffentlichung, bewusst leer gelassen bis eine echte
GPS-Quelle (FMM003/flespi) angebunden ist - Kachel zeigt bis dahin
"kein GPS-Signal". Verifiziert in audi_ha_test mit einer manuell
gesetzten Test-Position.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-12 11:07:49 +02:00
parent b98d624359
commit dc4c1ff0bf
6 changed files with 487 additions and 1 deletions
+83
View File
@@ -645,6 +645,89 @@ button.tile, .tilebtn { transition: background .15s, transform .1s; }
.mapbox { border-radius: var(--r-tile); overflow: hidden; height: 210px; background: var(--tile); }
.mapbox #map { width: 100%; height: 100%; }
/* --------------------------------------------------------- Standort
Vorschau-Kachel (Übersicht) + Vollbildansicht + Fahrzeug-Menü. Höhen sind
bewusst fest statt prozentual/vererbt - eine relative Höhe wird von
panel_custom nicht zuverlässig durchgereicht (siehe audi-dashboard-
ios.css-Kommentar zur selben Falle). */
.standort-kachel { padding: 0; overflow: hidden; }
.standort-kachelbtn {
display: block; width: 100%; position: relative;
border: none; padding: 0; margin: 0; background: none; cursor: pointer;
}
.standort-vorschau { width: 100%; height: 190px; background: var(--tile); }
.standort-leer {
position: absolute; inset: 0;
display: flex; align-items: center; justify-content: center;
font-size: 13px; color: var(--fg3); text-align: center; padding: 0 30px;
background: var(--tile);
}
.fahrzeug-pin-wrap { background: none; border: none; }
.fahrzeug-pin {
width: 34px; height: 34px; border-radius: 10px;
background: var(--red); border: 2px solid #fff;
box-shadow: 0 3px 10px rgba(0,0,0,.35);
display: flex; align-items: center; justify-content: center;
}
.user-pin-wrap { background: none; border: none; }
.user-pin {
position: relative; width: 16px; height: 16px; border-radius: 50%;
background: #0A84FF; border: 3px solid #fff;
box-shadow: 0 2px 6px rgba(0,0,0,.3);
}
.user-pin::after {
content: ""; position: absolute; inset: -14px; border-radius: 50%;
background: rgba(10,132,255,.18);
animation: user-pulse 2.4s ease-out infinite;
}
@keyframes user-pulse { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1); opacity: 0; } }
.standort-vollbild { position: relative; height: min(640px, calc(100dvh - 190px)); border-radius: var(--r-tile); overflow: hidden; margin: 0 -20px; }
.standort-karte { width: 100%; height: 100%; }
.kartensteuerung {
position: absolute; z-index: 400; top: 16px; right: 16px;
display: flex; flex-direction: column; gap: 10px;
}
.kartensteuerung button {
width: 42px; height: 42px; border-radius: 50%;
display: flex; align-items: center; justify-content: center;
background: var(--tile); color: var(--fg);
border: none; box-shadow: 0 3px 10px rgba(0,0,0,.25);
cursor: pointer; padding: 0;
}
.kartensteuerung button:active { background: var(--tile-2); transform: scale(.94); }
/* Griffzone/Zug-Amplitude (STANDORT_PEEK_PX im Frontend) - beide Werte
müssen zusammenpassen, siehe Kommentar dort. */
.standortmenu {
position: absolute; z-index: 410; left: 0; right: 0; bottom: 0;
background: var(--tile-2);
border-radius: 20px 20px 0 0;
box-shadow: 0 -6px 24px rgba(0,0,0,.35);
padding: 0 20px max(18px, env(safe-area-inset-bottom));
transform: translateY(108px);
transition: transform .28s cubic-bezier(.22,.61,.36,1);
}
.standortmenu.offen { transform: translateY(0); }
.standortmenu-griffzone { padding: 10px 0 14px; touch-action: none; cursor: grab; position: relative; }
.standortmenu-griff { width: 36px; height: 4px; border-radius: 2px; background: var(--line-strong); margin: 0 auto; }
.standortmenu-schliessen {
position: absolute; top: 6px; right: 0; width: 30px; height: 30px; border-radius: 50%;
display: flex; align-items: center; justify-content: center;
background: none; border: none; color: var(--fg3); cursor: pointer; padding: 0;
}
.standortmenu-kopf { margin-top: 6px; }
.standortmenu-distanz { font-size: 12px; color: var(--fg3); }
.standortmenu-name { font-size: 17px; color: var(--fg); margin-top: 2px; }
.standortmenu-adresse { font-size: 13.5px; color: var(--fg2); margin-top: 3px; }
.standortmenu-status { display: flex; align-items: center; gap: 9px; margin-top: 16px; font-size: 14px; color: var(--fg); }
.dot.neutral { background: var(--fg3); }
.standortmenu-werte { display: flex; gap: 30px; margin-top: 16px; }
.standortmenu-aktionen { display: flex; gap: 10px; margin-top: 18px; padding-bottom: 4px; }
.standortmenu-aktionen .aktion { flex: 1; margin-top: 0; }
/* ------------------------------------------------------- Bilderverwaltung */
.bildgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); margin-top: var(--sp-4); }
.bildslot { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; }