From 03bbad45e60c985b6c84120204c7fcefb286b5ce Mon Sep 17 00:00:00 2001 From: Christian Duerr Date: Tue, 9 Apr 2024 11:28:59 +0200 Subject: [PATCH] Make status labels distinct from status values (#166) This is a pretty simple patch that arguably just works around limitations in other tools, but having distinct labels and values allows direct keyword search through the response to integrate into third-party status pages like Kumo (my motivation for this patch). Ideally the observer would expose a more machine-readable format too, perhaps json when the header `Accepts: application/json` is set, but this should still be useful either way and even in that json payload a distinct key makes sense. --- rootfs/usr/share/www/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rootfs/usr/share/www/index.html b/rootfs/usr/share/www/index.html index 37c386b..1819017 100644 --- a/rootfs/usr/share/www/index.html +++ b/rootfs/usr/share/www/index.html @@ -21,7 +21,7 @@

Home Assistant observer

{{if .SupervisorConnected}} - Supported: + Support: {{if .Supported}}Supported{{else if not .SupervisorResponse}}Processing...{{else}}Unsupported @@ -33,7 +33,7 @@

Home Assistant observer

- Healthy: + Health: {{if .Healthy}}Healthy{{else if not .SupervisorResponse}}Processing...{{else}}Unhealthy