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);