From 601c70ec5e9713bbdcd16e506627bc183602c74d Mon Sep 17 00:00:00 2001 From: reachableceo Date: Fri, 4 Sep 2026 16:11:31 -0500 Subject: [PATCH] =?UTF-8?q?fix(alerts):=20iOS=20data.url=20only=20?= =?UTF-8?q?=E2=80=94=20clickAction=20rejected=20by=20apns=20schema=20[#344?= =?UTF-8?q?=20#778]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Watchdog notify crash root-caused: iOS companion schema rejects data.clickAction; url is the iOS deep-link key. Suite updated to assert url presence per alert. https://projects.knownelement.com/issues/778 --- automations.yaml | 10 ---------- tests/test_sdlc.sh | 2 +- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/automations.yaml b/automations.yaml index d0f88cd..3a0c61e 100644 --- a/automations.yaml +++ b/automations.yaml @@ -16,7 +16,6 @@ - notify.allthes_ipad data: title: POWER OUTAGE - clickAction: /lovelace-pfv-server-room/ups url: /lovelace-pfv-server-room/ups message: '{{ state_attr(trigger.entity_id, ''friendly_name'') }} lost utility power and is ON BATTERY at {{ states(''sensor.'' ~ trigger.entity_id.split(''.'')[1] @@ -42,7 +41,6 @@ - notify.allthes_ipad data: title: UPS BATTERY LOW - clickAction: /lovelace-pfv-server-room/ups url: /lovelace-pfv-server-room/ups message: '{{ trigger.entity_id }} at {{ states(trigger.entity_id) }}% while on battery. Start graceful shutdown of VMs before hypervisors (#455 ordering).' @@ -64,7 +62,6 @@ - notify.allthes_ipad data: title: UPS COMMS LOST - clickAction: /lovelace-pfv-server-room/ups url: /lovelace-pfv-server-room/ups message: '{{ trigger.entity_id }} unreachable for 5 minutes (nut-server or network path down; tsys1 also hosts pfv-bms itself).' @@ -88,7 +85,6 @@ - notify.allthes_ipad data: title: UPS RUNTIME LOW - clickAction: /lovelace-pfv-server-room/ups url: /lovelace-pfv-server-room/ups message: On battery {{ states('sensor.pfv_ups_runtime_minutes') }} min left — start graceful shutdown now (#455 ordering). mode: single @@ -111,7 +107,6 @@ - notify.allthes_ipad data: title: Power restored - clickAction: /lovelace-pfv-server-room/ups url: /lovelace-pfv-server-room/ups message: '{{ state_attr(trigger.entity_id, ''friendly_name'') }} is back ONLINE.' mode: single @@ -189,7 +184,6 @@ - notify.allthes_ipad data: title: HIGH TEMPERATURE - clickAction: /lovelace-pfv-server-room/temps url: /lovelace-pfv-server-room/temps message: '{{ trigger.entity_id }} is {{ states(trigger.entity_id) }}°F (class threshold exceeded). Check cooling/airflow.' @@ -209,7 +203,6 @@ - notify.allthes_ipad data: title: SENSOR WATCHDOG - clickAction: /lovelace-pfv-server-room/overview url: /lovelace-pfv-server-room/overview message: >- {% set fleet = states.sensor | selectattr('entity_id', 'match', 'sensor\.pfv_') @@ -243,7 +236,6 @@ - notify.allthes_ipad data: title: TEMP RISING FAST - clickAction: /lovelace-pfv-server-room/temps url: /lovelace-pfv-server-room/temps message: '{{ trigger.entity_id }} climbing ~10F/15min — check cooling before the 104F threshold. (rate-of-change early warning)' @@ -519,7 +511,6 @@ - notify.allthes_ipad data: title: TEMPERATURE RECOVERED - clickAction: /lovelace-pfv-server-room/temps url: /lovelace-pfv-server-room/temps message: >- {{ state_attr(trigger.entity_id, 'friendly_name') | default(trigger.entity_id) }} @@ -599,7 +590,6 @@ - notify.allthes_ipad data: title: WATCHDOG - clickAction: /lovelace-pfv-server-room/temps url: /lovelace-pfv-server-room/temps message: >- Stale after auto-reload: {{ still_stale | join(', ') }}. diff --git a/tests/test_sdlc.sh b/tests/test_sdlc.sh index 725b5f5..db7b60a 100644 --- a/tests/test_sdlc.sh +++ b/tests/test_sdlc.sh @@ -26,7 +26,7 @@ ALERTS="POWER OUTAGE|UPS BATTERY LOW|UPS COMMS LOST|UPS RUNTIME LOW|Power restor DL_OK=1 IFS='|' read -ra ALERT_ARR <<< "$ALERTS" for a in "${ALERT_ARR[@]}"; do - if ! grep -A2 "title: $a$" automations.yaml | grep -q "clickAction:"; then + if ! grep -A2 "title: $a$" automations.yaml | grep -q " url: "; then echo " (missing deep link: $a)" DL_OK=0 fi