This commit is contained in:
Striker72rus 2026-03-25 15:51:36 +03:00
parent 1e599fe221
commit 4b4551b4be
4 changed files with 20 additions and 7 deletions

View File

@ -308,8 +308,14 @@ function app_supervisor_ingress_url(): string
$ingressUrl = trim((string)($response['ingress_url'] ?? '')); $ingressUrl = trim((string)($response['ingress_url'] ?? ''));
if ($ingressUrl === '') { if ($ingressUrl === '') {
$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'); app_log('Supervisor returned empty ingress_url');
} }
}
return $ingressUrl; return $ingressUrl;
} }

View File

@ -1,6 +1,6 @@
{ {
"active": false, "active": true,
"sensor_entity_id": "binary_sensor.barn_all_occupancy", "sensor_entity_id": "binary_sensor.doorbell_all_occupancy",
"opened_at": 1774442799, "opened_at": 1774443085,
"expires_at": null "expires_at": 1774443122
} }

View File

@ -1,6 +1,6 @@
name: Wall Panel name: Wall Panel
description: Wall Panel PHP interface as a Home Assistant add-on description: Wall Panel PHP interface as a Home Assistant add-on
version: "1.0.16" version: "1.0.18"
slug: wall_panel slug: wall_panel
url: https://git.striker72rus.ru/PHP/wallpanell.git url: https://git.striker72rus.ru/PHP/wallpanell.git
init: false init: false
@ -12,6 +12,7 @@ arch:
- i386 - i386
startup: services startup: services
ingress: true ingress: true
ingress_panel: true
ingress_port: 8099 ingress_port: 8099
panel_title: Wall Panel panel_title: Wall Panel
panel_icon: mdi:view-dashboard panel_icon: mdi:view-dashboard

View File

@ -298,8 +298,14 @@ function app_supervisor_ingress_url(): string
$ingressUrl = trim((string)($response['ingress_url'] ?? '')); $ingressUrl = trim((string)($response['ingress_url'] ?? ''));
if ($ingressUrl === '') { if ($ingressUrl === '') {
$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'); app_log('Supervisor returned empty ingress_url');
} }
}
return $ingressUrl; return $ingressUrl;
} }