Files
battery-charging-optimizer/openems/legacy/v3/DASHBOARD_COMPARISON.md
felix.zoesch 0fa03a566a feat: Major update - Battery Optimizer v3.4.0 with comprehensive fixes
## 🎯 Hauptänderungen

### Version 3.4.0 - SOC-Drift & Charging Capacity
-  Sicherheitspuffer (20-50% konfigurierbar) für untertägige SOC-Schwankungen
-  Monatliche automatische Batterie-Kalibrierung
- 🐛 SOC-Plausibilitäts-Check (filtert 65535% Spikes beim Modus-Wechsel)
- 🐛 Zeitabhängige API-Abfrage (vor/nach 14:00 Uhr)

### Neue Features
- 🔋 **Safety Buffer**: Kompensiert SOC-Drift und Eigenverbrauch
- 🔋 **Auto-Calibration**: Monatlicher Vollzyklus für SOC-Genauigkeit
- 🔋 **Spike Protection**: 4-fach Schutz gegen ungültige SOC-Werte
- 🔋 **Smart API**: Verhindert HTTP 500 Errors bei fehlenden Tomorrow-Preisen

### Dokumentation
- 📚 SOC_CALIBRATION_GUIDE.md - Umfassender Kalibrierungs-Guide
- 📚 FIX_CHARGING_CAPACITY.md - Sicherheitspuffer-Dokumentation
- 📚 FIX_SOC_SPIKE_PROBLEM.md - Spike-Protection-Lösung
- 📚 FIX_API_TIMING.md - Zeitabhängige API-Abfrage
- 📚 DIAGNOSE_LADE_PROBLEM.md - Debug-Guide

### Neue Dateien
- battery_calibration_automation.yaml - 4 Automations für Kalibrierung
- battery_calibration_input_helper.yaml - Input Helper Config
- battery_optimizer_input_helper_safety_buffer.yaml - Puffer Config
- debug_schedule.py - Umfassendes Debug-Script

### Scripts
- battery_charging_optimizer.py v3.4.0
- hastrom_flex_extended.py v1.1.0
- debug_schedule.py v1.0.0

### Fixes
- 🐛 SOC springt auf 65535% beim ESS-Modus-Wechsel → Debounce + Plausibilitäts-Check
- 🐛 API-HTTP-500 vor 14:00 → Zeitabhängige Abfrage
- 🐛 Batterie nicht bis 100% geladen → Sicherheitspuffer
- 🐛 SOC driftet ohne Vollzyklen → Automatische Kalibrierung

## 🚀 Installation

1. Input Helper erstellen (siehe battery_optimizer_input_helper_safety_buffer.yaml)
2. Automations installieren (siehe battery_calibration_automation.yaml)
3. Scripts aktualisieren (battery_charging_optimizer.py v3.4.0)
4. PyScript neu laden

## 📊 Verbesserungen

- Präzisere Ladeplanung durch Sicherheitspuffer
- Robustheit gegen SOC-Drift
- Keine API-Fehler mehr vor 14:00
- Hardware-Stopp bei 100% wird respektiert
- Bessere Batterie-Gesundheit durch regelmäßige Kalibrierung

🤖 Generated with Claude Code (claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-12 08:04:07 +01:00

213 lines
13 KiB
Markdown
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 📊 Dashboard-Varianten Vergleich
## 🎨 Visueller Aufbau
### 1⃣ STANDARD-VERSION (11KB)
```
┌─────────────────────────────────────────────────────┐
│ 🔋 Power Flow Card Plus (Energie-Visualisierung) │
└─────────────────────────────────────────────────────┘
┌─────────────────────────┬───────────────────────────┐
│ 🎛️ STEUERUNG │ 📅 AKTUELLER PLAN │
│ • Auto-Optimierung │ • Plan-Status │
│ • Manuelle Steuerung │ • Nächste Ladung │
│ • Parameter (6 Items) │ • Geplante Stunden │
└─────────────────────────┴───────────────────────────┘
┌─────────────────────────────────────────────────────┐
│ 📈 GRAPH: Strompreis & Ladeplanung (48h) │
│ - Preis-Linie mit Füllung │
│ - Geplante Ladungen als Marker │
└─────────────────────────────────────────────────────┘
┌─────────────────────────────────────────────────────┐
│ 📊 GRAPH: Batterie SOC & Leistung (24h) │
│ - SOC (linke Y-Achse) │
│ - Leistung (rechte Y-Achse) │
└─────────────────────────────────────────────────────┘
┌─────────────────────────────────────────────────────┐
│ ⚡ GRAPH: Energie-Flüsse (24h) │
│ - PV-Produktion │
│ - Netzbezug │
│ - Batterie │
└─────────────────────────────────────────────────────┘
┌─────────────────────────────────────────────────────┐
│ 📋 DETAILLIERTER PLAN (ausklappbar) │
│ - Statistiken-Tabelle │
│ - Stunden-Detail-Tabelle │
└─────────────────────────────────────────────────────┘
┌─────────────────────────────────────────────────────┐
SYSTEM-INFORMATIONEN (ausklappbar) │
│ - OpenEMS Status │
│ - Kapazitäten │
│ - PV-Prognosen │
│ - Automation-Status │
└─────────────────────────────────────────────────────┘
```
**Verwendete Cards:** 7 verschiedene Typen, 15+ Cards total
**Beste für:** Desktop, Detailanalyse, Monitoring-Station
**Scroll-Bedarf:** Hoch (6-7 Bildschirme)
---
### 2⃣ KOMPAKT-VERSION (8KB)
```
┌─────────────────────────────────────────────────────┐
│ 🔋 Power Flow Card Plus (Energie-Visualisierung) │
└─────────────────────────────────────────────────────┘
┌─────────────────────────┬───────────────────────────┐
│ 🎛️ STEUERUNG (Stack) │ 📅 PLAN (Stack) │
│ ┌─────────────────┐ │ ┌─────────────────┐ │
│ │ Auto Toggle │ │ │ Plan-Status │ │
│ │ Manuell Toggle │ │ │ Nächste Ladung │ │
│ │ SOC + Preis │ │ │ X Std geplant │ │
│ └─────────────────┘ │ └─────────────────┘ │
└─────────────────────────┴───────────────────────────┘
┌─────────────────────────────────────────────────────┐
│ 💶 Strompreis & Ladeplan (48h) - Plotly │
└─────────────────────────────────────────────────────┘
┌─────────────────────────────────────────────────────┐
│ 🔋 Batterie-Übersicht (24h) - Plotly │
│ - SOC + Leistung kombiniert │
└─────────────────────────────────────────────────────┘
┌─────────────────────────────────────────────────────┐
│ 📋 DETAILLIERTER PLAN (ausklappbar) │
│ ┌──────────┬──────────┬──────────┐ │
│ │ Xh Dauer │ X kWh │ X ct Ø │ (Bubble Cards) │
│ └──────────┴──────────┴──────────┘ │
│ Liste der Ladestunden (Markdown) │
└─────────────────────────────────────────────────────┘
┌─────────────────────────────────────────────────────┐
│ ⚙️ EINSTELLUNGEN (ausklappbar) │
└─────────────────────────────────────────────────────┘
```
**Verwendete Cards:** Stack-in-Card, Bubble Cards, Plotly
**Beste für:** Tablet, ausgewogene Darstellung
**Scroll-Bedarf:** Mittel (3-4 Bildschirme)
---
### 3⃣ MINIMAL-VERSION (6KB)
```
┌──────────────┬──────────────┬──────────────┐
│ 🔋 Batterie │ 💶 Preis │ ☀️ PV │
│ XX% │ XX ct/kWh │ XXXX W │
└──────────────┴──────────────┴──────────────┘
┌──────────────────────┬──────────────────────┐
│ 🤖 Auto │ ✋ Manuell │
│ [Toggle] │ [Toggle] │
└──────────────────────┴──────────────────────┘
┌─────────────────────────────────────────────┐
│ 🔋 Power Flow Card Plus │
└─────────────────────────────────────────────┘
┌─────────────────────────────────────────────┐
│ 📅 GEPLANTE LADUNGEN │
│ │
│ 🟢 JETZT 23:00 Uhr │
│ 5000W bei 12.5ct/kWh │
│ Niedriger Preis │
│ │
│ ⏰ 00:00 Uhr │
│ 5000W bei 11.8ct/kWh │
│ Günstigste Stunde │
│ │
│ ⏰ 01:00 Uhr │
│ 5000W bei 13.2ct/kWh │
│ Unter Schwellwert │
└─────────────────────────────────────────────┘
┌─────────────────────────────────────────────┐
│ 💶 Strompreis 48h (Mini-Graph) │
└─────────────────────────────────────────────┘
┌─────────────────────────────────────────────┐
│ 🔋 Batterie SOC 24h (Mini-Graph) │
└─────────────────────────────────────────────┘
┌─────────────────────────────────────────────┐
│ ⚙️ Schnelleinstellungen (nur wenn Auto=ON) │
│ - Min SOC, Max SOC, Ladeleistung │
└─────────────────────────────────────────────┘
┌─────────────────────────────────────────────┐
System (Mini) │
│ OpenEMS | Auto Plan | Auto Exec │
└─────────────────────────────────────────────┘
```
**Verwendete Cards:** Bubble Cards (hauptsächlich), Plotly (minimal)
**Beste für:** Smartphone, Quick-Check, Wall Panel
**Scroll-Bedarf:** Niedrig (2 Bildschirme)
---
## 🎯 Entscheidungshilfe
### Wähle STANDARD wenn:
- ✅ Du hast einen großen Bildschirm (Desktop, Laptop)
- ✅ Du möchtest alle Details auf einen Blick
- ✅ Du machst häufig Detailanalysen
- ✅ Du hast mehrere Monitore
- ✅ Scroll-Bedarf ist kein Problem
### Wähle KOMPAKT wenn:
- ✅ Du nutzt hauptsächlich ein Tablet
- ✅ Du möchtest Balance zwischen Detail und Übersicht
- ✅ Du magst moderne Card-Designs (Bubble)
- ✅ Du möchtest Stack-in-Card nutzen
- ✅ Du brauchst alle Features, aber platzsparend
### Wähle MINIMAL wenn:
- ✅ Du nutzt hauptsächlich ein Smartphone
- ✅ Du brauchst nur Quick-Status-Checks
- ✅ Du möchtest wenig scrollen
- ✅ Du hast ein Wall Panel/Tablet an der Wand
- ✅ Fokus auf nächste Ladungen, nicht auf Historie
---
## 📱 Responsivität
| Gerät | Standard | Kompakt | Minimal |
|-------|----------|---------|---------|
| **Desktop** (>1920px) | ⭐⭐⭐⭐⭐ | ⭐⭐⭐⭐ | ⭐⭐⭐ |
| **Laptop** (1366-1920px) | ⭐⭐⭐⭐ | ⭐⭐⭐⭐⭐ | ⭐⭐⭐⭐ |
| **Tablet** (768-1366px) | ⭐⭐⭐ | ⭐⭐⭐⭐⭐ | ⭐⭐⭐⭐⭐ |
| **Smartphone** (<768px) | ⭐⭐ | ⭐⭐⭐ | ⭐⭐⭐⭐⭐ |
| **Wall Panel** (1024px) | ⭐⭐⭐ | ⭐⭐⭐⭐⭐ | ⭐⭐⭐⭐⭐ |
---
## 🔄 Mix & Match
Du kannst auch **mehrere Dashboards kombinieren**:
```yaml
# In configuration.yaml oder dashboards.yaml
lovelace:
mode: yaml
dashboards:
# Für Desktop
battery-detail:
mode: yaml
filename: dashboards/battery_optimizer_dashboard.yaml
title: Batterie Detail
icon: mdi:chart-line
# Für Tablet/Mobile
battery-overview:
mode: yaml
filename: dashboards/battery_optimizer_dashboard_compact.yaml
title: Batterie
icon: mdi:battery-charging
show_in_sidebar: true
# Für Quick-Check
battery-quick:
mode: yaml
filename: dashboards/battery_optimizer_dashboard_minimal.yaml
title: Batterie Quick
icon: mdi:battery-lightning
```
Dann hast du alle Varianten verfügbar und kannst je nach Situation wechseln! 🎯