]> git.giorgioravera.it Git - homeassistant.git/commitdiff
Updated packages shelly & update
authorGiorgio Ravera <giorgio.ravera@gmail.com>
Tue, 19 Dec 2023 19:38:10 +0000 (20:38 +0100)
committerGiorgio Ravera <giorgio.ravera@gmail.com>
Tue, 19 Dec 2023 19:38:10 +0000 (20:38 +0100)
packages/shelly/shelly_customizations.yaml
packages/shelly/shelly_main.yaml [new file with mode: 0644]
packages/shelly/shelly_operations.yaml
packages/update/update_engine.yaml
packages/update/update_main.yaml [new file with mode: 0644]

index 66e8571b4fdbe27d0b80ec73f2a3c50e1dab5782..24e1bd4b9bdfd7a48c72a48ea576d41f3504979e 100644 (file)
@@ -4,12 +4,6 @@
 
 homeassistant:
   customize:
-    script.shelly_upgrade:
-      icon: mdi:package-up
-    script.shelly_reboot:
-      icon: mdi:restart
-    script.shelly_force_state_update:
-      icon: mdi:update
 
     # Shelly 1 - Tapparella Cucina (shellyswitch_55980f)
     sensor.tapparella_cucina_energy:
diff --git a/packages/shelly/shelly_main.yaml b/packages/shelly/shelly_main.yaml
new file mode 100644 (file)
index 0000000..21a4110
--- /dev/null
@@ -0,0 +1,34 @@
+######################################################################
+# Shelly Package - Customizations
+######################################################################
+
+homeassistant:
+  customize:
+
+    ######################################################################
+    # Shelly Package - Customizations - General Package Settings
+    ######################################################################
+
+    package.shelly:
+      customize: &customize
+        package: 'shelly'
+        version: 1.0.0
+
+    ######################################################################
+    # Shelly Package - Customizations - Entities
+    ######################################################################
+
+    group.shelly:
+      <<: *customize
+    script.shelly_upgrade:
+      <<: *customize
+      icon: mdi:package-up
+    script.shelly_reboot:
+      <<: *customize
+      icon: mdi:restart
+    automation.shelly_update_notification:
+      <<: *customize
+#    automation.shelly_startup_aggiornamento_stati:
+#      <<: *customize
+    shell_command.shelly_reboot:
+      icon: mdi:restart
index 0a0163ebb1bf3ab21f319cbd95739bd2479c1930..f1c0db11582ef99ad2b0849e90cc613a527c5a48 100644 (file)
@@ -50,8 +50,7 @@ automation:
   ######################################################################
   # Shelly: Update Notification
   ######################################################################
-  - id: "shelly_update_notification"
-    alias: "Shelly: Update Notification"
+  - alias: "Shelly: Update Notification"
     variables:
       pending_update_list: >
         {{ states.update
@@ -90,8 +89,7 @@ automation:
   ######################################################################
   # Shelly: Force State Update at Startup
   ######################################################################
-  #- id: "shelly_startup_aggiornamento_stati"
-  #  alias: "Shelly - Startup: Aggiornamento stati"
+  #- alias: "Shelly - Startup: Aggiornamento stati"
   #
   #  trigger:
   #    - event: start
index 08752ad072f932de4716b852fcf1114545052b6b..ba436c823e224975fef13c2f3db6f54c3c92e9ad 100644 (file)
@@ -14,7 +14,8 @@ automation:
   ######################################################################
   # Update Notification: HACS
   ######################################################################
-  - alias: "Update: HACS Notification"
+  - id: "update_hacs_notification"
+    alias: "Update: HACS Notification"
 
     trigger:
       - platform: numeric_state
@@ -56,12 +57,12 @@ automation:
   # Actions:
   # - persistent_notification.dismiss
   ######################################################################
-  - alias: "Update: Riconoscimento Aggiornamenti"
+  - id: "update_acknowledgment"
+    alias: "Update: Riconoscimento Aggiornamenti"
 
     trigger:
       platform: state
       entity_id:
-        #- input_boolean.update_homeassistant
         - input_boolean.update_hacs
         - input_boolean.update_shelly
       to: 'off'
diff --git a/packages/update/update_main.yaml b/packages/update/update_main.yaml
new file mode 100644 (file)
index 0000000..f8e2e29
--- /dev/null
@@ -0,0 +1,33 @@
+######################################################################
+# Update Package - Customizations
+######################################################################
+
+homeassistant:
+  customize:
+
+    ######################################################################
+    # Update Package - Customizations - General Package Settings
+    ######################################################################
+
+    package.update:
+      customize: &customize
+        package: 'update'
+        version: 1.0.0
+
+    ######################################################################
+    # Update Package - Customizations - Entities
+    ######################################################################
+
+    input_boolean.update_hacs:
+      <<: *customize
+      icon: mdi:alpha-h-box
+    input_boolean.update_shelly:
+      <<: *customize
+      icon: mdi:alpha-s-box
+    group.update:
+      <<: *customize
+      icon: mdi:update
+    automation.update_hacs_notification:
+      <<: *customize
+    automation.update_update_acknowledgment:
+      <<: *customize