     }
            
            // Only show status if it exists
            const statusSpan = document.getElementById('deviceStatus');
            if (data.deviceInfo.status) {
                statusSpan.textContent = data.deviceInfo.status;
                statusSpan.style.display = 'inline-block';
            } else {
                statusSpan.style.display = 'none';
            }

            // Update metrics
            document.getElementById('deviceTotalRevenue').textContent = `€${Math.round(dat