data_template:
title: "Home Assistant - Lettura NFC"
message: "Letto tag NFC {{ allowed_tags[detected_tag].name }} dal dispositivo {{ allowed_devices[detected_device].name }}."
- enable_telegram: false
- conditions:
- "{{ detected_tag in allowed_tags }}"
data_template:
title: "Home Assistant - Lettura NFC"
message: "Letto tag NFC {{ allowed_tags[detected_tag].name }} da dispositivo non valido ({{ detected_device }})."
- enable_telegram: false
- conditions:
- "{{ detected_tag not in allowed_tags }}"
data_template:
title: "Home Assistant - Lettura NFC"
message: "Letto tag NFC non riconosciuto ({{ detected_tag }}) dal dispositivo {{ allowed_devices[detected_device].name }}."
- enable_telegram: false
default:
- action: script.notify_text
data_template:
title: "Home Assistant - Lettura NFC"
message: "Letto tag NFC non valido ({{ detected_tag }}) da dispositivo non valido ({{ detected_device }})."
- enable_telegram: false
+++ /dev/null
-######################################################################
-# Telegram Notifications
-######################################################################
-
-- platform: telegram
- name: telegram
- chat_id: !secret telegram_bot_chat_id_group
-
-- platform: telegram
- name: telegram_giorgio
- chat_id: !secret telegram_bot_chat_id_giorgio
-
-- platform: telegram
- name: telegram_laura
- chat_id: !secret telegram_bot_chat_id_laura
# - enable_persistent
# - enable_browser
# - enable_mobileapp
-# - enable_telegram
#
# Operations:
# - notify.mail
# - notify.html5
# - persistent_notification.create (if enable_persistent)
-# - notify.telegram (if enable_telegram)
######################################################################
notify_text:
alias: Notifiche testuali
- description: Invia notifiche testuali via mail oppure via telegram con la possibilità di notificarle direttamente sulla UI.
+ description: Invia notifiche testuali via mail con la possibilità di notificarle direttamente sulla UI.
variables:
defaultTitle: 'Home Assistant'
defaultId: 'generic'
{% set enable_mobileapp = false %}
{% endif %}
{{ enable_mobileapp }}
- enable_telegram: >-
- {# Check Null Input #}
- {% if enable_telegram | length == 0 %}
- {% set enable_telegram = false %}
- {% endif %}
- {{ enable_telegram }}
fields:
title:
default: false
selector:
boolean:
- enable_telegram:
- description: "Abilitare o meno la notifica su telegram"
- example: "false"
- default: false
- selector:
- boolean:
sequence:
- condition: state
message: "{{ message }}"
default: []
- - choose:
- - conditions:
- - condition: template
- value_template: "{{ enable_telegram }}"
- sequence:
- - action: notify.telegram
- data_template:
- title: "{{ title }}"
- message: "{{ message | regex_replace(find='_', replace='-', ignorecase=False) }}"
- default: []
-
######################################################################
# Script: Volume Manager
# Input:
# - enable_persistent
# - enable_browser
# - enable_mobileapp
-# - enable_telegram
#
# Operations:
# - notify_text
description: Invia notifiche sia vocali sia testiali.
Le notifiche vocali sono inoltrate verso un determinato dispositivo compatibile.
Si può selezionare il volume di riproduzione e la lingua.
- Quelle testuali possono essere inviate via mail oppure via telegram con la possibilità di notificarle direttamente sulla UI.
+ Quelle testuali possono essere inviate via mail con la possibilità di notificarle direttamente sulla UI.
variables:
defaultTitle: 'Home Assistant'
defaulMediaPlayer: 'media_player.google_home'
{% set enable_mobileapp = false %}
{% endif %}
{{ enable_mobileapp }}
- enable_telegram: >-
- {# Check Null Input #}
- {% if enable_telegram | length == 0 %}
- {% set enable_telegram = false %}
- {% endif %}
- {{ enable_telegram }}
fields:
title:
default: false
selector:
boolean:
- enable_telegram:
- description: "Abilitare o meno la notifica su telegram"
- example: "false"
- default: false
- selector:
- boolean:
sequence:
- action: script.notify_text
enable_persistent: "{{ enable_persistent }}"
enable_browser: "{{ enable_browser }}"
enable_mobileapp: "{{ enable_mobileapp }}"
- enable_telegram: "{{ enable_telegram }}"
- action: script.notify_voice
data_template: