new endpoints 5

This commit is contained in:
2025-11-18 10:55:51 +01:00
parent 1f6fe134d5
commit 3e9e388ddd
4 changed files with 25 additions and 19 deletions

View File

@@ -195,8 +195,12 @@
try {
// Load layout and devices using API client
// NEW: Use device layout endpoint for each device
// Fallback: load all rooms as before
const layoutData = await window.apiClient.getLayout();
const devicesData = await window.apiClient.getDevices();
// Example: For each device, you could also fetch layout info via
// await window.apiClient.fetch(window.apiClient.api(`/devices/${device_id}/layout`));
// Create device lookup
const deviceMap = {};