Hi, I receive successfully messages to my Telegram android app with notification from HASS.
But I receive message only from one user (I called it HASS). Since I setup many notifications I receive 2-300 messages a day making it a bit less useful.
I wish to establish more users and receive messages from different users like HASS-error-messages, HASS-sensor-values, HASS-important-alarms, and so on all of course from the same Home Assistant server.
I achieved this by creating multiple group chats. Iām still only using a single Telegram bot but one bot can join many different groups. Since a group does require more than two participants in order to be created, I just add my bot and IDBot to the group initially. Once I get the chat id, I remove IDBot from the group. So, i currently have one regular chat with my bot for my main notification channel, and one group called Hass-system that I use for lower-priority system status notifications. But you could create as many as you want in the same fashion.
Great thanks.
Still trying to understand how to make new groups.
I go in my Telegram android app, click on + then New groupā¦ then, if i put my name (which in settings is @ xxxxx) xxxxx its not thereā¦?
Edit got it, when you create a group the creator is part of the group by default.
I am curious how many groups you created and which type of messages for each group you use.
I really only have one group right now. My main chat with my bot is for my main notifications that I want to see. Right now, I get notifications when our mode changes to Home or Away. I also get an actionable notification when my alarm clock goes off in the morning, tied to a lighting routine on my bedside lamp.
My group, Hass-system, is for lower priority notifications. I have the android app configured to put notifications from that group at a low priority. Right now I get notifications for when my weekly snapshot runs and backs up to Google Drive, and when files get added to a folder Iām monitoring, as well as when Home Assistant updates are available.
Thatās all I have for now, but I still have more in mind. For example, Iām also going to have a group that includes my wife, so that the bot can remind us of daily/weekly tasks that either of us can do (feeding the dogs, getting the mail, putting the trash out). That way, whoever completes the task can use the inline keyboard to indicate this so that if my wife wakes up after me, she can already know if the dogs have been fed. Or when I get home from work, I can already know whether sheās brought in the mail or not.
the message does not go to the group HOME ALERT MESSAGES, but only to MYBOT
What am I missing here??
EDIT I found two problems in my installation
1 groups starts with minus: -1234567
2 the service notify.xxxxx sends the message only to my bot, in order to send messages to my groups I need to use
- service: telegram_bot.send_message
data_template:
message: 'John is home'
target: '-group_chat_id' # the group chat id (do not forget the minus)
The only other thing I see is that for the chat_id, it has a dash in front of it in the cURL example, but not in your configuration.yaml file. I know 12345 is not your actual chat id, but you may want to check and confirm what you have in configuration.yaml completely matches your Telegram chat_id. I donāt have my config in front of me, but Iām pretty sure users have a positive number for their chat_id and groups always have a negative number.
For important messages like: ALARM TRIGGERED, THIEVES IN THE HOUSE, CALL THE POLICE , I donāt think is enough receiving a simple text message, we are overwhelmed by text messages, I would prefer for important messages a ring or something
No, you canāt have it place a phone call, but you could do the following. Create a group for your highest priority messages. In Telegram, you can set up your notifications per conversation, so for your high priority group, you can set a particularly attention-getting notification sound.
You may also want to check out using the alert component, as it can work in tandem with your notification platform and do things like send notifications repeatedly at an interval. https://www.home-assistant.io/components/alert/
Anyone know what might be amiss? I get notifications from HA in Telegram, I get the keyboard and when I click the buttons the keyboard disappears but I never get an āOKā and I donāt get the delayed messages?
Not sure about iPhone, but if you have an Android I can walk you through the Android app settings. In the specific chat you want to modify, tap the chat name in the header. Then tap Notifications on the next screen, followed by Customize. That will allow you to set up custom notification settings for that conversation.