I’m new to HA (migrating from Domoticz to HA)
I’m trying to setup HA to sent me notifications/messages.
At this moment I still use Domoticz and migrating to HA.
In Domoticz I use 3 Telegram chatbots:
Notifications
Garage
Frontdoor
I sent different messages to the different chatbots.
Example:
chatbot Notification: Daily Solarpower production
chatbot Garage: automated snapshots when movement is detected by camera
chatbot Frontdoor: automated snapshots when movement is detected by an other camera, and also snapshot by camera when doorbell is pressed.
I have created (for now) 2 automations:
Sent solar production to chatbot Notifications
Sent picture from camera on movement to chatbot frontdoor
In config.yaml I have:
telegram_bot:
- platform: polling
api_key: "key of chatbot Notification"
allowed_chat_ids:
- 123456789 (example!)
- platform: polling
api_key: "key of chatbot frontdoor"
allowed_chat_ids:
- 123456789 (example!) (exactly the same as obove, I only have 1 chat ID)
notify:
- platform: telegram
name: "Notifications"
chat_id: 123456789
- platform: telegram
name: "Frontdoor"
chat_id: 123456789
So automation 1 should deliver message to chatbot Notifications
and automation 2 should deliver message (picture) to chatbot Frontdoor.
Automation 1 works but delivers messages to Frontdoor and notifications doesn’t work at all.
Ok. So in Telegram just 1 bot with 1 API key and then create groups and add the created bot to the group? Then in config.yaml the configuration of the groups with the groupID.
In my old chats I had for each chatbot an seperate chatID, but I can’t get/find the chatID’s anymore of the seperated chatbots anymore.Has Telegram stopped with ChatID’s of chatbots?
Honestly it’s ages since I set this up and can’t remember exactly how I did it, however I do remember this post being a great help: Telegram bot notifications and communication