Files
N22/include/automations/hacs_auto_update_kort.yaml

49 lines
1.8 KiB
YAML

# 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'