]> git.giorgioravera.it Git - homeassistant.git/commitdiff
Added fritz update module
authorGiorgio Ravera <giorgio.ravera@gmail.com>
Sun, 14 Dec 2025 16:14:20 +0000 (17:14 +0100)
committerGiorgio Ravera <giorgio.ravera@gmail.com>
Sun, 14 Dec 2025 16:14:20 +0000 (17:14 +0100)
packages/fritz.yaml
packages/update/update_engine.yaml
packages/update/update_main.yaml
packages/update/update_types.yaml

index 461ef13e7a18c0b8b452c78f30f0618fec4dc6c2..68a2920ba3f990498978918515f0ab8168fad435 100644 (file)
@@ -47,6 +47,18 @@ homeassistant:
 #      <<: *customize
 #      icon: mdi:led-off
 
+######################################################################
+# Fritz Package - Group
+######################################################################
+
+group:
+  fritz:
+    name: FRITZ!Box Devices
+    icon: mdi:alpha-s-box
+    entities:
+      - update.fritz_box_7530_ax_fritz_os
+      - update.fritz_box_7590_fritz_os
+
 ######################################################################
 # Fritz Package - Switch
 ######################################################################
@@ -83,7 +95,7 @@ shell_command:
   #ap1_led_off: 'bash /config/shell_scripts/fritzBox.sh ap1 LED 0'
 
 ######################################################################
-# Netatmo Package - Logbook
+# Fritz Package - Logbook
 ######################################################################
 
 logbook:
@@ -108,7 +120,7 @@ logbook:
     - sensor.fritz_box_7590_ultimo_riavvio
 
 ######################################################################
-# Netatmo Package - Recorder
+# Fritz Package - Recorder
 ######################################################################
 
 recorder:
@@ -131,3 +143,46 @@ recorder:
     - sensor.fritz_box_7530_ax_velocita_massima_di_scaricamento_della_connessione
     # 7590
     - sensor.fritz_box_7590_ultimo_riavvio
+
+automation:
+
+  ######################################################################
+  # Fritz: Update Notification
+  ######################################################################
+  - alias: "Fritz: Update Notification"
+    id: "fritz_update_notification"
+
+    variables:
+      pending_update_list: >
+        {{ expand('group.fritz')
+          | selectattr('state','eq','on')
+          | map(attribute='entity_id')
+          | list
+        }}
+
+    trigger:
+      - trigger: state
+        entity_id: group.fritz
+        to: 'on'
+      - trigger: homeassistant
+        event: start
+
+    condition:
+      condition: state
+      entity_id: group.fritz
+      state: 'on'
+
+    action:
+      - delay: '00:00:10'
+      - action: script.notify_text
+        data_template:
+          title: "FRITZ!Box - Aggiornamento"
+          message: >
+            Sono disponibili {{pending_update_list | count }} aggiornamenti per i dispositivi FRITZ!Box:
+            {% for entity_id in pending_update_list %}
+                -> {{ state_attr(entity_id, 'friendly_name')|replace(" - Aggiornamento Firmware", "") }}: {{ state_attr(entity_id, 'latest_version') }}
+            {%- endfor -%}
+          notification_id: "update"
+          enable_persistent: true
+      - action: input_boolean.turn_on
+        entity_id: input_boolean.update_fritz
index f00fb09211d9b00d07b9ddc2a047a73d5f64d068..388689822daa60578b8d396a15dbd6be1d6cd226 100644 (file)
@@ -67,6 +67,7 @@ automation:
         - input_boolean.update_hacs
         - input_boolean.update_shelly
         - input_boolean.update_bticino
+        - input_boolean.update_fritz
       to: 'off'
 
     action:
index 1e39c9e4aefb765571f3fb7d8f63b7c1a47982c6..682249766cf05df770997bcc18716c2b8a31fa84 100644 (file)
@@ -26,6 +26,8 @@ homeassistant:
       <<: *customize
     input_boolean.update_bticino:
       <<: *customize
+    input_boolean.update_fritz:
+      <<: *customize
     automation.update_hacs_notification:
       <<: *customize
     automation.update_update_acknowledgment:
index c414fb35d1576ae8825ee12b7d315c7fe45e37c7..58b99dacc1531937e195fa0df2de347d589572db 100644 (file)
@@ -21,6 +21,12 @@ input_boolean:
     initial: false
     icon: mdi:package-up
 
+  # FRITZ!Box
+  update_fritz:
+    name: Aggiornamenti FRITZ!Box
+    initial: false
+    icon: mdi:package-up
+
 ######################################################################
 # Update Package - Types - Group
 ######################################################################
@@ -37,6 +43,7 @@ group:
       - input_boolean.update_hacs
       - input_boolean.update_shelly
       - input_boolean.update_bticino
+      - input_boolean.update_fritz
 
   hacs:
     name: HACS modules
@@ -48,6 +55,7 @@ group:
       - update.browser_mod_update
       - update.button_card_update
       - update.card_mod_update
+      - update.clear_theme_dark_update
       - update.clock_weather_card_update
       - update.darkish_theme_update
       - update.electrolux_care_integration_v2_not_official_update
@@ -67,5 +75,6 @@ group:
       - update.reeder_dark_theme_update
       - update.shutter_card_update
       - update.tabbed_card_update
+      - update.vehicle_info_card_update
       - update.vertical_stack_in_card_update
       - update.zigbee2mqtt_networkmap_card_update