From 6f930fec4c80cb9050e0acf9322fefe4891d3a5c Mon Sep 17 00:00:00 2001 From: Giorgio Ravera Date: Tue, 19 Dec 2023 20:38:10 +0100 Subject: [PATCH] Updated packages shelly & update --- packages/shelly/shelly_customizations.yaml | 6 ---- packages/shelly/shelly_main.yaml | 34 ++++++++++++++++++++++ packages/shelly/shelly_operations.yaml | 6 ++-- packages/update/update_engine.yaml | 7 +++-- packages/update/update_main.yaml | 33 +++++++++++++++++++++ 5 files changed, 73 insertions(+), 13 deletions(-) create mode 100644 packages/shelly/shelly_main.yaml create mode 100644 packages/update/update_main.yaml diff --git a/packages/shelly/shelly_customizations.yaml b/packages/shelly/shelly_customizations.yaml index 66e8571b..24e1bd4b 100644 --- a/packages/shelly/shelly_customizations.yaml +++ b/packages/shelly/shelly_customizations.yaml @@ -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 index 00000000..21a4110a --- /dev/null +++ b/packages/shelly/shelly_main.yaml @@ -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 diff --git a/packages/shelly/shelly_operations.yaml b/packages/shelly/shelly_operations.yaml index 0a0163eb..f1c0db11 100644 --- a/packages/shelly/shelly_operations.yaml +++ b/packages/shelly/shelly_operations.yaml @@ -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 diff --git a/packages/update/update_engine.yaml b/packages/update/update_engine.yaml index 08752ad0..ba436c82 100644 --- a/packages/update/update_engine.yaml +++ b/packages/update/update_engine.yaml @@ -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 index 00000000..f8e2e295 --- /dev/null +++ b/packages/update/update_main.yaml @@ -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 -- 2.47.3