This is my current configuration of the telegram notifier.
notify:
- name: telegram_alert
platform: telegram
chat_id: !secret telegram_chat_id
Then I use it, for example, from an alert.
notifiers:
- telegram_alert
However, I now get the following warning.
The Telegram notify service has been migrated. A new notify entity per chat ID is available now.
Update all affected automations to use the new notify.send_message action exposed by these new entities and then restart Home Assistant.
I don’t understand how I should change my configuration. The documentation shows an example of using a service, but it didn’t really help me configure my alert.
This is what I tried. First, I tried calling the service from the UI. It worked this way:
action: notify.send_message
data:
message: asdasdasdasdasdasdasd
target:
entity_id: notify.telegram_bot_xxxxxxxx
Now I put this into my alert config:
notifiers:
- telegram_bot_xxxxxxxx
It didn’t work. I got the following error in the log:
Failed to call notify.telegram_bot_xxxxxxxx, retrying at next notification interval
What’s wrong and how should I configure my alerts to work with the new kind of notifications?