AlexD82
(Sascha)
September 13, 2023, 12:24pm
1
Hello,
Setup with one receiver worked flawlessly.
Then I wanted to add a second receiver.
This one has its own bot with a different API.
telegram_bot:
- platform: polling
api_key: API-One-ID
allowed_chat_ids:
ID-One
- platform: broadcast
api_key: API-Two-ID
allowed_chat_ids:
ID-Two
notify:
- platform: telegram
name: First
chat_id: ID-One
- platform: telegram
name: Second
chat_id: ID-Two
But unfortunately, every message is sent to ID-two. Even messages that were previously sent to the first ID.
What have I done wrong?
paddy0174
(Patrick)
September 13, 2023, 12:59pm
2
platform: polling
is different to platform: broadcast
. Set the first entry to broadcast
as well, and it should work.
Polling is for cases, where you want HA to receive a message (aka it polls Telegram), eg. for sending a command via Telegram to HA.
AlexD82
(Sascha)
September 13, 2023, 1:04pm
3
Oh sry.
This was a try.
Both platform:polling didn´t work as described
And i want Polling to trigger actions via Telegram
paddy0174
(Patrick)
September 13, 2023, 1:17pm
4
But that’s different as to what you describe in your first post. You said
A receiver is per definition the one who receives the data, thus if you want to send something to it, you need to broadcast. If you want polling as well, then you have to setup a broadcasting platform and a polling platform.
AlexD82
(Sascha)
September 13, 2023, 1:19pm
5
I tried both versions.
Both polling and both broadcast.
The fault is still there.
So i switched sthe Positions:
telegram_bot:
- platform: polling
api_key: API-Two-ID
allowed_chat_ids:
ID-Two
- platform: polling
api_key: API-One-ID
allowed_chat_ids:
ID-One
Now every message arrives at ID-One.
AlexD82
(Sascha)
September 13, 2023, 1:22pm
6
Sry, my english isnt good. I try with deepl ^^
I want to send text from HA to different Smartphones with different API Keys and trigger Aktions from different Smartphones in HA.