From 4b4551b4be00daae6fe8687362d0a2c47e4993b6 Mon Sep 17 00:00:00 2001 From: Striker72rus Date: Wed, 25 Mar 2026 15:51:36 +0300 Subject: [PATCH] - --- lib/config.php | 8 +++++++- storage/popup_state.json | 8 ++++---- wall_panel/config.yaml | 3 ++- wall_panel/lib/config.php | 8 +++++++- 4 files changed, 20 insertions(+), 7 deletions(-) diff --git a/lib/config.php b/lib/config.php index 4828f93..6e18762 100755 --- a/lib/config.php +++ b/lib/config.php @@ -308,7 +308,13 @@ function app_supervisor_ingress_url(): string $ingressUrl = trim((string)($response['ingress_url'] ?? '')); if ($ingressUrl === '') { - app_log('Supervisor returned empty ingress_url'); + $webui = trim((string)($response['webui'] ?? '')); + if ($webui !== '') { + $ingressUrl = $webui; + app_log('Supervisor returned empty ingress_url, falling back to webui'); + } else { + app_log('Supervisor returned empty ingress_url'); + } } return $ingressUrl; diff --git a/storage/popup_state.json b/storage/popup_state.json index 63dec22..55a61e0 100755 --- a/storage/popup_state.json +++ b/storage/popup_state.json @@ -1,6 +1,6 @@ { - "active": false, - "sensor_entity_id": "binary_sensor.barn_all_occupancy", - "opened_at": 1774442799, - "expires_at": null + "active": true, + "sensor_entity_id": "binary_sensor.doorbell_all_occupancy", + "opened_at": 1774443085, + "expires_at": 1774443122 } diff --git a/wall_panel/config.yaml b/wall_panel/config.yaml index a7344cd..a95d31e 100755 --- a/wall_panel/config.yaml +++ b/wall_panel/config.yaml @@ -1,6 +1,6 @@ name: Wall Panel description: Wall Panel PHP interface as a Home Assistant add-on -version: "1.0.16" +version: "1.0.18" slug: wall_panel url: https://git.striker72rus.ru/PHP/wallpanell.git init: false @@ -12,6 +12,7 @@ arch: - i386 startup: services ingress: true +ingress_panel: true ingress_port: 8099 panel_title: Wall Panel panel_icon: mdi:view-dashboard diff --git a/wall_panel/lib/config.php b/wall_panel/lib/config.php index ad1c28f..eab8334 100755 --- a/wall_panel/lib/config.php +++ b/wall_panel/lib/config.php @@ -298,7 +298,13 @@ function app_supervisor_ingress_url(): string $ingressUrl = trim((string)($response['ingress_url'] ?? '')); if ($ingressUrl === '') { - app_log('Supervisor returned empty ingress_url'); + $webui = trim((string)($response['webui'] ?? '')); + if ($webui !== '') { + $ingressUrl = $webui; + app_log('Supervisor returned empty ingress_url, falling back to webui'); + } else { + app_log('Supervisor returned empty ingress_url'); + } } return $ingressUrl;