From d541b331fdb843152b93cea74934413a06f8d1bf Mon Sep 17 00:00:00 2001 From: Claus Dethlefsen Date: Mon, 27 Jul 2026 11:43:34 +0200 Subject: [PATCH] Tilfoej automation: auto-opdater HACS frontend-kort dagligt (22 Lovelace-kort, integrationer ekskluderet) --- .../automations/hacs_auto_update_kort.yaml | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 include/automations/hacs_auto_update_kort.yaml diff --git a/include/automations/hacs_auto_update_kort.yaml b/include/automations/hacs_auto_update_kort.yaml new file mode 100644 index 0000000..82040c4 --- /dev/null +++ b/include/automations/hacs_auto_update_kort.yaml @@ -0,0 +1,48 @@ +# Auto-opdaterer HACS frontend-kort (Lovelace-plugins) dagligt kl. 04:30. +# Integrationer holdes BEVIDST ude af listen - de kan have breaking changes og +# opdateres manuelt. Tilfoej/fjern kort i listen 'kort' efter behov. +- id: hacs_auto_update_frontend_kort + alias: 'HACS - auto-opdater frontend-kort' + description: >- + Installerer automatisk tilgaengelige opdateringer til HACS Lovelace-kort. + Koerer dagligt kl. 04:30. Integrationer opdateres IKKE automatisk. + mode: single + trigger: + - platform: time + at: '04:30:00' + action: + - variables: + kort: + - update.apexcharts_card_update + - update.atomic_calendar_revive_update + - update.auto_entities_update + - update.battery_entity_row_update + - update.battery_state_card_entity_row_update + - update.bubble_card_update + - update.button_card_update + - update.config_template_card_update + - update.custom_gauge_card_update + - update.fold_entity_row_update + - update.layout_card_update + - update.lovelace_lock_card_update + - update.mini_graph_card_update + - update.mini_media_player_update + - update.multiple_entity_row_update + - update.mushroom_update + - update.scheduler_card_update + - update.slider_entity_row_update + - update.sonos_card_update + - update.vertical_stack_in_card_update + - update.weather_card_update + - update.xiaomi_vacuum_map_card_update + - repeat: + for_each: '{{ kort }}' + sequence: + - if: + - condition: template + value_template: "{{ states(repeat.item) == 'on' }}" + then: + - action: update.install + target: + entity_id: '{{ repeat.item }}' + - delay: '00:00:10'