From e5eb368dca656c9f0edd309f2b013efa1d512c1d Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Tue, 9 Dec 2025 13:00:47 +0100 Subject: [PATCH] started 3 --- apps/ui/templates/garage.html | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/apps/ui/templates/garage.html b/apps/ui/templates/garage.html index 174a44a..c285766 100644 --- a/apps/ui/templates/garage.html +++ b/apps/ui/templates/garage.html @@ -465,19 +465,10 @@ console.log(`Rendering feedback for ${device.device_id}:`, state); - const values = Object.values(state || {}); - const isActive = values.some(v => - v === true || - v === 'on' || - v === 1 - ); - - if (values.length === 0) { - label.textContent = 'Kein Status verfügbar'; + if (state.contact === 'closed') { + label.textContent = 'Strom an'; } else { - label.textContent = isActive - ? 'Fahrzeug verbunden' - : 'Kein Fahrzeug verbunden'; + label.textContent = 'Strom aus'; } controlGroup.appendChild(label);