From: Giorgio Ravera Date: Sun, 14 Dec 2025 16:14:20 +0000 (+0100) Subject: Added fritz update module X-Git-Url: http://git.giorgioravera.it/?a=commitdiff_plain;h=edcdd57d484efd418fea0cb5043d158902c244a1;p=homeassistant.git Added fritz update module --- diff --git a/packages/fritz.yaml b/packages/fritz.yaml index 461ef13e..68a2920b 100644 --- a/packages/fritz.yaml +++ b/packages/fritz.yaml @@ -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 diff --git a/packages/update/update_engine.yaml b/packages/update/update_engine.yaml index f00fb092..38868982 100644 --- a/packages/update/update_engine.yaml +++ b/packages/update/update_engine.yaml @@ -67,6 +67,7 @@ automation: - input_boolean.update_hacs - input_boolean.update_shelly - input_boolean.update_bticino + - input_boolean.update_fritz to: 'off' action: diff --git a/packages/update/update_main.yaml b/packages/update/update_main.yaml index 1e39c9e4..68224976 100644 --- a/packages/update/update_main.yaml +++ b/packages/update/update_main.yaml @@ -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: diff --git a/packages/update/update_types.yaml b/packages/update/update_types.yaml index c414fb35..58b99dac 100644 --- a/packages/update/update_types.yaml +++ b/packages/update/update_types.yaml @@ -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