From f6e83c244885c240091bdcd34fd69bc5161d875b Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Sun, 5 Feb 2023 15:43:19 +0100 Subject: [PATCH] Add notifications to discord --- configuration/automations/ups.yaml | 42 ++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/configuration/automations/ups.yaml b/configuration/automations/ups.yaml index b0d8135..b8d6481 100644 --- a/configuration/automations/ups.yaml +++ b/configuration/automations/ups.yaml @@ -11,6 +11,13 @@ data: title: "UPS Alert" message: UPS started discharging + - service: notify.home_assistant + data: + message: > + UPS Alert ⚠️ + UPS started discharging + @everyone + target: [ "1071801716070154240" ] - id: ups-charging alias: '[UPS] Charging' @@ -25,6 +32,13 @@ data: title: "UPS Alert" message: UPS is charging + - service: notify.home_assistant + data: + message: > + UPS Alert ✅ + UPS is charging + @everyone + target: [ "1071801716070154240" ] - id: ups-power-back alias: '[UPS] Power back' @@ -39,6 +53,13 @@ data: title: "UPS Alert" message: UPS power is back + - service: notify.home_assistant + data: + message: > + UPS Alert ⚠️ + UPS power is back + @everyone + target: [ "1071801716070154240" ] - id: ups-battery-under-100 alias: '[UPS] Battery Under 100%' @@ -53,6 +74,13 @@ data: title: "UPS Alert" message: UPS battery is below 100%, estimated time on battery 25 min + - service: notify.home_assistant + data: + message: > + UPS Alert ⚠️ + UPS battery is below 100%, estimated time on battery 25 min + @everyone + target: [ "1071801716070154240" ] - id: ups-battery-under-50 alias: '[UPS] Battery Under 50%' @@ -67,6 +95,13 @@ data: title: "UPS Alert" message: UPS battery is below 50%, estimated time on battery 12 min + - service: notify.home_assistant + data: + message: > + UPS Alert ⚠️ + UPS battery is below 50%, estimated time on battery 12 min + @everyone + target: [ "1071801716070154240" ] - id: ups-battery-under-10 alias: '[UPS] Battery Under 10%' @@ -81,3 +116,10 @@ data: title: "UPS Alert" message: UPS battery is below 10%, estimated time on battery 2 min + - service: notify.home_assistant + data: + message: > + UPS Alert ⚠️ + UPS battery is below 10%, estimated time on battery 2 min + @everyone + target: [ "1071801716070154240" ]