]> git.giorgioravera.it Git - homeassistant.git/commitdiff
Added update notification files & hacs notifications
authorGiorgio Ravera <giorgio.ravera@gmail.com>
Sun, 12 Jan 2020 17:10:47 +0000 (18:10 +0100)
committerGiorgio Ravera <giorgio.ravera@gmail.com>
Sun, 12 Jan 2020 17:23:03 +0000 (18:23 +0100)
automation/home_assistant.yaml
automation/shelly.yaml [deleted file]
automation/update_notifications.yaml [new file with mode: 0644]

index d103521d8ff7658094cb0c703b21bbd8376efb10..e8788355fbe94a376f70310692832b1fd8124758 100644 (file)
       data:
         entity_id: input_boolean.speech_notifications
    
-######################################################################
-# Home Assistant: Update Available Notifications
-######################################################################
-
-- alias: "Home Assistant: Notifica aggiornamento"
-  initial_state: 'on'
-
-  trigger:
-    - platform: state
-      entity_id: binary_sensor.updater
-      to: 'on'
-
-  action:
-    - service: script.notify_text
-      data_template:
-        title: "Home Assistant - Aggiornamento"
-        message: "E' disponibile un aggiornamento per Home Assistant {{ state_attr('binary_sensor.updater', 'newest_version') }}. {{now().strftime('%Y-%m-%d %I:%M %p')}}"
-        enable_persistant: true
-
 ######################################################################
 # Home Assistant: Startup Automation
 # - Sync with Google Assistant
diff --git a/automation/shelly.yaml b/automation/shelly.yaml
deleted file mode 100644 (file)
index 2db456c..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-######################################################################
-# Shelly: Update Available Notifications
-######################################################################
-
-- alias: "Shelly: Notifica aggiornamento"
-  initial_state: 'on'
-
-  trigger:
-    - platform: state
-      entity_id: group.shelly
-      to: 'on'
-
-  action:
-    service: script.notify_text
-    data_template:
-      title: "Shelly - Aggiornamento"
-      message: "Sono disponibili aggiornamenti per i dispositivi Shelly"
-      enable_persistant: true
-
diff --git a/automation/update_notifications.yaml b/automation/update_notifications.yaml
new file mode 100644 (file)
index 0000000..d15a7c9
--- /dev/null
@@ -0,0 +1,57 @@
+######################################################################\r
+# Update Notification: Home Assistant\r
+######################################################################\r
+\r
+- alias: "Update Notification: Home Assistant"\r
+  initial_state: 'on'\r
+\r
+  trigger:\r
+    - platform: state\r
+      entity_id: binary_sensor.updater\r
+      to: 'on'\r
+\r
+  action:\r
+    - service: script.notify_text\r
+      data_template:\r
+      title: "Home Assistant - Aggiornamento"\r
+        message: "E' disponibile un aggiornamento per Home Assistant {{ state_attr('binary_sensor.updater', 'newest_version') }}. {{now().strftime('%Y-%m-%d %I:%M %p')}}"\r
+        enable_persistant: true\r
+\r
+######################################################################\r
+# Update Notification: Shelly\r
+######################################################################\r
+\r
+- alias: "Update Notification: Shelly"\r
+  initial_state: 'on'\r
+\r
+  trigger:\r
+    - platform: state\r
+      entity_id: group.shelly\r
+      to: 'on'\r
+\r
+  action:\r
+    service: script.notify_text\r
+    data_template:\r
+      title: "Shelly - Aggiornamento"\r
+      message: "Sono disponibili aggiornamenti per i dispositivi Shelly"\r
+      enable_persistant: true\r
+\r
+######################################################################\r
+# Update Notification: HACS\r
+######################################################################\r
+\r
+- alias: "Update Notification: HACS"\r
+  initial_state: 'on'\r
+\r
+  trigger:\r
+    - platform: numeric_state\r
+      entity_id: sensor.hacs\r
+      above: 0\r
+\r
+  action:\r
+    service: script.notify_text\r
+    data_template:\r
+      title: "HACS - Aggiornamento"\r
+      message: "Sono disponibili aggiornamenti per i dispositivi Shelly"\r
+      enable_persistant: true\r
+\r