]> git.giorgioravera.it Git - homeassistant.git/commitdiff
removed notify.telegram service
authorGiorgio Ravera <giorgio.ravera@gmail.com>
Sat, 7 Nov 2026 12:03:57 +0000 (13:03 +0100)
committerGiorgio Ravera <giorgio.ravera@gmail.com>
Sat, 7 Nov 2026 12:03:57 +0000 (13:03 +0100)
.secrets_dummy.yaml
automations/nfc.yaml
notify/telegram.yaml [deleted file]
scripts/notify.yaml

index d3b8590d72ef281321b752d4de9d249dec43c657..92e7c471aef648df9d3e74aace2bf4c6566aa7a9 100644 (file)
@@ -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
 
index 92ee99bd1d4daac8572e50d78ce33f06cc17dbd6..9df63d250aaec2a7dffb1bf207a0d6ef5656ebf9 100644 (file)
@@ -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 }}"
               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 (file)
index cb0ec7a..0000000
+++ /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
index 5ed15cbc2efd185869fac2f4ae77419dfa45e9e8..f922468a52480d8424fce301ba3428fc660807dd 100644 (file)
@@ -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: