Aus dem Hause Systembenachrichtigungen.
Tägliche Benachrichtigung über anstehende Updates.
alias: System - Update Check
description: ""
triggers:
- trigger: time
at: "10:00:00"
conditions: []
actions:
- variables:
update_liste: >
{% set updates = states.update | selectattr('state','eq','on') |
map(attribute='name') | list | join('\n') %} {{ updates }}
update_anzahl: |
{{ states.update | selectattr('state','eq','on') | list | count }}
- choose:
- conditions:
- condition: template
value_template: "{{ update_anzahl > 0 }}"
sequence:
- action: ntfy.publish
metadata: {}
data:
title: |
🚨 {{ update_anzahl }} Update{{ 's' if update_anzahl != 1 }}
verfügbar
message: |
Folgende Updates warten:
{{ update_liste }}
target:
entity_id: notify.sweethome
default:
- action: ntfy.publish
metadata: {}
data:
title: ✅ Alle aktuell
message: Keine Updates vorhanden
target:
entity_id: notify.sweethome
mode: single
Als Benachrichtigungsdienst verwende ich NTFY Ist ein selbst gehosteter Push Notification Dienst. Ggf. für den ein oder anderen Interessant.
Gruß Osorkon