From f37efb6ad161621f4470649595430b14daaf6d0f Mon Sep 17 00:00:00 2001 From: retr0 <42kdesigners@gmail.com> Date: Tue, 28 Apr 2026 22:20:40 +0200 Subject: [PATCH] Fix: Grid-Icon (Sinuswelle statt A), Batterie-Node immer sichtbar (v1.6.3) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Grid-Icon: Sinuswelle (AC-Symbol) statt A-förmiger Übertragungsturm - Batterie-Node: wird angezeigt sobald bat_* Aggregate vorhanden, nicht erst wenn bat_soc != null - batSub: SOC-Prozent nur wenn bat_soc nicht null Co-Authored-By: Claude Sonnet 4.6 --- haos-addon/config.yaml | 2 +- haos-addon/src/web/index.html | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/haos-addon/config.yaml b/haos-addon/config.yaml index bdf41ab..9bc5cdd 100644 --- a/haos-addon/config.yaml +++ b/haos-addon/config.yaml @@ -1,5 +1,5 @@ name: ShineBridge -version: "1.6.2" +version: "1.6.3" slug: shinebridge description: Growatt Wechselrichter lokal in Home Assistant — Modbus TCP via ShineLAN-X, MQTT Discovery, Web UI url: https://gitea.bitfire.work/retr0/shinebridge diff --git a/haos-addon/src/web/index.html b/haos-addon/src/web/index.html index 43a275d..ddeba53 100644 --- a/haos-addon/src/web/index.html +++ b/haos-addon/src/web/index.html @@ -377,7 +377,7 @@ function renderEnergy(inverters, aggregates) { const gridImport = Math.max(0, gridW); const gridExport = Math.max(0, -gridW); const houseW = Math.max(0, pvW + gridImport + batDchW - batChW - evW); - const hasBat = batSoc !== undefined && batSoc !== null; + const hasBat = Object.keys(aggregates).some(k => k.startsWith('bat_')); const T = 20; const pvOn = pvW > T; @@ -404,7 +404,7 @@ function renderEnergy(inverters, aggregates) { const ICONS = { solar:` `, - grid: ``, + grid: ``, house:` `, @@ -470,7 +470,7 @@ function renderEnergy(inverters, aggregates) { const gridVal = impOn ? gridImport : gridExport; const batVal = chOn ? batChW : dchOn ? batDchW : 0; const batLbl = chOn ? 'LADEN' : dchOn ? 'ENTLADEN' : 'BATTERIE'; - const batSub = hasBat ? Math.round(batSoc) + '%' : ''; + const batSub = batSoc != null ? Math.round(batSoc) + '%' : ''; const svg = ` ${defs}