data_template:\r
title: "Home Assistant - Aggiornamento"\r
message: "E' disponibile un aggiornamento per Home Assistant {{ state_attr('binary_sensor.updater', 'newest_version') }}. {{now().strftime('%Y-%m-%d %I:%M %p')}}"\r
+ notification_id: "update"\r
enable_persistent: 1\r
\r
######################################################################\r
data_template:\r
title: "Shelly - Aggiornamento"\r
message: "Sono disponibili aggiornamenti per i dispositivi Shelly"\r
+ notification_id: "update"\r
enable_persistent: 1\r
\r
######################################################################\r
data_template:\r
title: "HACS - Aggiornamento"\r
message: "Sono disponibili aggiornamenti per i moduli HACS"\r
+ notification_id: "update"\r
enable_persistent: 1\r
# Inputs:
# - title
# - message
+# - notification_id
# - enable_persistent
#
# Operations:
data_template:
title: "{{ title }}"
message: "{{ message }}"
+ notification_id: >-
+ {# Check Null Input #}
+ {% if notification_id | length == 0 %}
+ {% set notification_id = 'generic' %}
+ {% endif %}
+ {{ notification_id }}
notify_text:
alias: Notifiche testuali
{% endif %}
{{ title }}
message: "{{ message }}"
+ notification_id: "{{ notification_id }}"
enable_persistent: "{{ enable_persistent }}"
######################################################################
# - volume_level
# _ language
# - message
+# - notification_id
# - enable_persistent
#
# Operations:
data_template:
title: "{{ title }}"
message: "{{ message }}"
+ notification_id: "{{ notification_id }}"
enable_persistent: "{{ enable_persistent }}"
- service: script.notify_voice