From c81a6b2803a2b7208ee762ff1e0308c2882628f1 Mon Sep 17 00:00:00 2001 From: Carlo Costanzo Date: Sun, 22 Feb 2026 21:21:58 -0500 Subject: [PATCH] Update HA version to 2026.2.3 and enhance infrastructure observability YAML by refining command outputs and improving value templates for better error handling. --- config/.HA_VERSION | 2 +- config/packages/infrastructure_observability.yaml | 12 +++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/config/.HA_VERSION b/config/.HA_VERSION index 62ba7b51..fcba00b3 100755 --- a/config/.HA_VERSION +++ b/config/.HA_VERSION @@ -1 +1 @@ -2026.2.2 \ No newline at end of file +2026.2.3 \ No newline at end of file diff --git a/config/packages/infrastructure_observability.yaml b/config/packages/infrastructure_observability.yaml index 66a782dc..088e3837 100644 --- a/config/packages/infrastructure_observability.yaml +++ b/config/packages/infrastructure_observability.yaml @@ -16,20 +16,22 @@ command_line: unique_id: infra_wan_packet_loss command: >- ping -q -c 10 -W 1 1.1.1.1 2>/dev/null | - awk -F',' '/packet loss/ {gsub(/%| /, "", $3); print $3; found=1} + awk -F',' '/packet loss/ {gsub(/[^0-9.]/, "", $3); print $3; found=1} END {if (!found) print "unknown"}' scan_interval: 300 unit_of_measurement: "%" + value_template: "{{ (value | regex_replace('[^0-9.]', '')) or 'unknown' }}" - sensor: name: Infra WAN Latency Ms unique_id: infra_wan_latency_ms command: >- ping -q -c 10 -W 1 1.1.1.1 2>/dev/null | - awk -F'/' '/^rtt|^round-trip/ {print $5; found=1} + awk -F'/' '/^rtt|^round-trip/ {gsub(/[^0-9.]/, "", $5); print $5; found=1} END {if (!found) print "unknown"}' scan_interval: 300 unit_of_measurement: "ms" + value_template: "{{ (value | regex_replace('[^0-9.]', '')) or 'unknown' }}" - sensor: name: Infra External IP Fallback @@ -59,7 +61,7 @@ template: {% if ts is not none %} {{ ((now() - ts).total_seconds() / 3600) | round(1) }} {% else %} - unknown + {{ none }} {% endif %} - name: "Infra Domain Expiry Min Days" @@ -88,7 +90,7 @@ template: {% if ns.any %} {{ ns.min | round(0) }} {% else %} - unknown + {{ none }} {% endif %} - name: "Infra Cert Expiry Min Days" @@ -113,7 +115,7 @@ template: {% if ns.any %} {{ ns.min | round(0) }} {% else %} - unknown + {{ none }} {% endif %} - name: "Infra Cert Telemetry Count"