From 905b54803d87c56a60a50929cd9a63ebc3c84e8a Mon Sep 17 00:00:00 2001 From: Mike Johnston Date: Mon, 6 Apr 2026 21:01:48 -0400 Subject: [PATCH] maybe now --- apps/desktop/resources/web/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/desktop/resources/web/index.html b/apps/desktop/resources/web/index.html index 8f70236..0c35a55 100644 --- a/apps/desktop/resources/web/index.html +++ b/apps/desktop/resources/web/index.html @@ -777,8 +777,8 @@ function renderDevices() { if (stateData.status === 'fulfilled') { const checkbox = document.getElementById('dchk-'+i); if (checkbox) { - // stateData.value is the response object, not the boolean - const actualState = !!stateData.value; + // stateData.value is an object {on: false}, need to access the 'on' property + const actualState = !!stateData.value.on; checkbox.checked = actualState; console.log(`[DWM] Device ${d.host}:${d.port} - BinaryState: ${actualState ? 'ON' : 'OFF'}, Last brightness: ${brightnessData.value?.brightness || 'N/A'}%`); console.log(`[DWM] Setting checkbox.checked to: ${actualState}`);