From eb1ae161ff1675d139cde9bcbbd896946739ca63 Mon Sep 17 00:00:00 2001 From: Striker72rus Date: Wed, 25 Mar 2026 15:54:07 +0300 Subject: [PATCH] - --- lib/config.php | 8 ++++++++ storage/popup_state.json | 4 ++-- wall_panel/config.yaml | 2 +- wall_panel/lib/config.php | 8 ++++++++ 4 files changed, 19 insertions(+), 3 deletions(-) diff --git a/lib/config.php b/lib/config.php index 6e18762..0a17765 100755 --- a/lib/config.php +++ b/lib/config.php @@ -307,6 +307,14 @@ function app_supervisor_ingress_url(): string } $ingressUrl = trim((string)($response['ingress_url'] ?? '')); + if ($ingressUrl === '') { + $ingressEntry = trim((string)($response['ingress_entry'] ?? '')); + if ($ingressEntry !== '') { + $ingressUrl = $ingressEntry; + app_log('Supervisor returned empty ingress_url, using ingress_entry'); + } + } + if ($ingressUrl === '') { $webui = trim((string)($response['webui'] ?? '')); if ($webui !== '') { diff --git a/storage/popup_state.json b/storage/popup_state.json index 0c60c62..0b9ecc6 100755 --- a/storage/popup_state.json +++ b/storage/popup_state.json @@ -1,6 +1,6 @@ { - "active": false, + "active": true, "sensor_entity_id": "binary_sensor.doorbell_all_occupancy", - "opened_at": 1774443085, + "opened_at": 1774443242, "expires_at": null } diff --git a/wall_panel/config.yaml b/wall_panel/config.yaml index 305aff3..2e6bfae 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.19" +version: "1.0.20" slug: wall_panel url: https://git.striker72rus.ru/PHP/wallpanell.git init: false diff --git a/wall_panel/lib/config.php b/wall_panel/lib/config.php index eab8334..880afbd 100755 --- a/wall_panel/lib/config.php +++ b/wall_panel/lib/config.php @@ -297,6 +297,14 @@ function app_supervisor_ingress_url(): string } $ingressUrl = trim((string)($response['ingress_url'] ?? '')); + if ($ingressUrl === '') { + $ingressEntry = trim((string)($response['ingress_entry'] ?? '')); + if ($ingressEntry !== '') { + $ingressUrl = $ingressEntry; + app_log('Supervisor returned empty ingress_url, using ingress_entry'); + } + } + if ($ingressUrl === '') { $webui = trim((string)($response['webui'] ?? '')); if ($webui !== '') {