I set up Telegram to communicate messages out of my install of Home Assistant ( * Core 2025.3.4, Supervisor 2025.03.3, Operating System 15.0, Frontend 20250306.0) using this guide. While it all seems to work out OK I continue to get an error in the configuration.YAML.
duplicated mapping key (48:1)
45 | - -xxxxxxxxx
46 | # Notifier
47 |
48 | notify:
------^
49 | - platform: telegram
50 | name: “telegram_notifier”
My config looks like this:
Telegram Bot
telegram_bot:
- platform: polling
api_key: “MyBigLooooooongAPIKey”
allowed_chat_ids:
- -xxxxxxxxx
Notifier
notify:
- platform: telegram
name: “telegram_notifier”
chat_id: -xxxxxxxxx
I cannot figure out what I’ve done wrong can anyone point out my mistake?
A little while later…
I solved the problem! I checked the logs and I noticed that the error message in the log was a bit more useful. When I took the big picture of the configuration.yaml into view it was obvious that another notify
was defined under the SMTP
entry in the yaml. As I don’t use SMTP I commented that out and all is well with the universe once more.