feat(alerts): deep-link taps to UPS/Temps/Overview views [#344]

clickAction (Android) + url (iOS) on all 9 alert notifications;
explicit lovelace view paths for deterministic links.
https://projects.knownelement.com/issues/344
This commit is contained in:
2026-09-04 06:04:19 -05:00
parent d93f9c0264
commit 41116c7feb
2 changed files with 21 additions and 0 deletions
+18
View File
@@ -16,6 +16,8 @@
- notify.allthes_ipad - notify.allthes_ipad
data: data:
title: POWER OUTAGE 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 message: '{{ state_attr(trigger.entity_id, ''friendly_name'') }} lost utility
power and is ON BATTERY at {{ states(''sensor.'' ~ trigger.entity_id.split(''.'')[1] power and is ON BATTERY at {{ states(''sensor.'' ~ trigger.entity_id.split(''.'')[1]
| replace(''_status'', ''_battery_charge'')) }}% charge.' | replace(''_status'', ''_battery_charge'')) }}% charge.'
@@ -39,6 +41,8 @@
- notify.allthes_ipad - notify.allthes_ipad
data: data:
title: UPS BATTERY LOW 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 message: '{{ trigger.entity_id }} at {{ states(trigger.entity_id) }}% while
on battery. Start graceful shutdown of VMs before hypervisors (#455 ordering).' on battery. Start graceful shutdown of VMs before hypervisors (#455 ordering).'
mode: single mode: single
@@ -59,6 +63,8 @@
- notify.allthes_ipad - notify.allthes_ipad
data: data:
title: UPS COMMS LOST 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 message: '{{ trigger.entity_id }} unreachable for 5 minutes (nut-server or network
path down; tsys1 also hosts pfv-bms itself).' path down; tsys1 also hosts pfv-bms itself).'
mode: single mode: single
@@ -81,6 +87,8 @@
- notify.allthes_ipad - notify.allthes_ipad
data: data:
title: UPS RUNTIME LOW 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). message: On battery {{ states('sensor.pfv_ups_runtime_minutes') }} min left — start graceful shutdown now (#455 ordering).
mode: single mode: single
- id: pfv_plant_ups_power_restored - id: pfv_plant_ups_power_restored
@@ -102,6 +110,8 @@
- notify.allthes_ipad - notify.allthes_ipad
data: data:
title: Power restored 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.' message: '{{ state_attr(trigger.entity_id, ''friendly_name'') }} is back ONLINE.'
mode: single mode: single
- id: pfv_plant_high_temperature - id: pfv_plant_high_temperature
@@ -178,6 +188,8 @@
- notify.allthes_ipad - notify.allthes_ipad
data: data:
title: HIGH TEMPERATURE 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 message: '{{ trigger.entity_id }} is {{ states(trigger.entity_id) }}°F (class
threshold exceeded). Check cooling/airflow.' threshold exceeded). Check cooling/airflow.'
mode: single mode: single
@@ -196,6 +208,8 @@
- notify.allthes_ipad - notify.allthes_ipad
data: data:
title: SENSOR WATCHDOG title: SENSOR WATCHDOG
clickAction: /lovelace-pfv-server-room/overview
url: /lovelace-pfv-server-room/overview
message: >- message: >-
{% set fleet = states.sensor | selectattr('entity_id', 'match', 'sensor\.pfv_') {% set fleet = states.sensor | selectattr('entity_id', 'match', 'sensor\.pfv_')
| list %} | list %}
@@ -228,6 +242,8 @@
- notify.allthes_ipad - notify.allthes_ipad
data: data:
title: TEMP RISING FAST 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 message: '{{ trigger.entity_id }} climbing ~10F/15min — check cooling
before the 104F threshold. (rate-of-change early warning)' before the 104F threshold. (rate-of-change early warning)'
# Deploy pipeline [#734]: gitea repo webhook (master pushes) -> forced pull # Deploy pipeline [#734]: gitea repo webhook (master pushes) -> forced pull
@@ -502,6 +518,8 @@
- notify.allthes_ipad - notify.allthes_ipad
data: data:
title: TEMPERATURE RECOVERED title: TEMPERATURE RECOVERED
clickAction: /lovelace-pfv-server-room/temps
url: /lovelace-pfv-server-room/temps
message: >- message: >-
{{ state_attr(trigger.entity_id, 'friendly_name') | default(trigger.entity_id) }} {{ state_attr(trigger.entity_id, 'friendly_name') | default(trigger.entity_id) }}
back to {{ states(trigger.entity_id) }}°F and holding — was back to {{ states(trigger.entity_id) }}°F and holding — was
+3
View File
@@ -2,6 +2,7 @@
title: Server Room title: Server Room
views: views:
- title: Overview - title: Overview
path: overview
type: sections type: sections
sections: sections:
- type: grid - type: grid
@@ -59,6 +60,7 @@ views:
hours_to_show: 24 hours_to_show: 24
- title: UPS - title: UPS
path: ups
type: sections type: sections
sections: sections:
- type: grid - type: grid
@@ -148,6 +150,7 @@ views:
- binary_sensor.garage_temp_rising - binary_sensor.garage_temp_rising
- title: Temps - title: Temps
path: temps
type: sections type: sections
sections: sections:
- type: grid - type: grid