From: Giorgio Ravera Date: Sat, 7 Nov 2026 12:03:57 +0000 (+0100) Subject: removed notify.telegram service X-Git-Url: http://git.giorgioravera.it/?a=commitdiff_plain;h=2b8587dd28d63838476a669c798cbd65d427b016;p=homeassistant.git removed notify.telegram service --- diff --git a/.secrets_dummy.yaml b/.secrets_dummy.yaml index d3b8590d..92e7c471 100644 --- a/.secrets_dummy.yaml +++ b/.secrets_dummy.yaml @@ -61,7 +61,6 @@ mb_vin: vin telegram_bot_name: "name_bot" telegram_bot_username: "telegram_bot" telegram_bot_access_token: token -telegram_bot_chat_id_group: 0 telegram_bot_chat_id_giorgio: 0 telegram_bot_chat_id_laura: 0 diff --git a/automations/nfc.yaml b/automations/nfc.yaml index 92ee99bd..9df63d25 100644 --- a/automations/nfc.yaml +++ b/automations/nfc.yaml @@ -35,7 +35,6 @@ 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 }}" @@ -45,7 +44,6 @@ 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 }}" @@ -55,11 +53,9 @@ 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 diff --git a/notify/telegram.yaml b/notify/telegram.yaml deleted file mode 100644 index cb0ec7a8..00000000 --- a/notify/telegram.yaml +++ /dev/null @@ -1,15 +0,0 @@ -###################################################################### -# 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 diff --git a/scripts/notify.yaml b/scripts/notify.yaml index 5ed15cbc..f922468a 100644 --- a/scripts/notify.yaml +++ b/scripts/notify.yaml @@ -8,18 +8,16 @@ # - 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' @@ -60,12 +58,6 @@ notify_text: {% 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: @@ -114,12 +106,6 @@ notify_text: default: false selector: boolean: - enable_telegram: - description: "Abilitare o meno la notifica su telegram" - example: "false" - default: false - selector: - boolean: sequence: - condition: state @@ -179,17 +165,6 @@ notify_text: 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: @@ -367,7 +342,6 @@ notify_voice: # - enable_persistent # - enable_browser # - enable_mobileapp -# - enable_telegram # # Operations: # - notify_text @@ -379,7 +353,7 @@ notify_all: 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' @@ -440,12 +414,6 @@ notify_all: {% 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: @@ -520,12 +488,6 @@ notify_all: 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 @@ -537,7 +499,6 @@ notify_all: enable_persistent: "{{ enable_persistent }}" enable_browser: "{{ enable_browser }}" enable_mobileapp: "{{ enable_mobileapp }}" - enable_telegram: "{{ enable_telegram }}" - action: script.notify_voice data_template: