From d9139e2693fcea67f9b46b9417d1bea9fddd0177 Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Fri, 28 Nov 2025 07:45:15 +0100 Subject: [PATCH] garaga page 5 --- apps/ui/templates/garage.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/ui/templates/garage.html b/apps/ui/templates/garage.html index 8e7e856..38a5f87 100644 --- a/apps/ui/templates/garage.html +++ b/apps/ui/templates/garage.html @@ -511,7 +511,8 @@ async function toggleOutlet(deviceId, newState) { try { - await window.apiClient.setDeviceState(deviceId, { power: newState }); + const device = devicesData[deviceId]; + await window.apiClient.setDeviceState(deviceId, device.type, { power: newState }); console.log(`Set ${deviceId} to ${newState}`); } catch (error) { console.error('Error toggling outlet:', error);