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

@@ -6,6 +6,14 @@
*/
class HomeAutomationClient {
/**
* Get layout info for a specific device
* @param {string} deviceId - Device ID
* @returns {Promise<object>} Layout info
*/
async getDeviceLayout(deviceId) {
return await this.fetch(this.api(`/devices/${deviceId}/layout`));
}
constructor() {
this.eventSource = null;
this.eventListeners = [];