WhatsApp Integration with WhatsApp Groups

Hi all,

I´ve installed WhatsApp Addon for HomeAssistant and it works fine for me. But how can I send messages in Whatsapp groups? A group does not have a phonenumber and I am not sure how to address the group?

In the instructon thre is something mentioned with @g.us. does it mean: groupname@g.us?
Thanks for support,
Spartacus

Hi,

seems to be that the solution is not working with groups. I entered the group-id but it is not woring.
([email protected]).

If there is anyoune who has an idea , please let meknow!

I am using this adon: ```

Spartacus

Hi all,

is there noone who can help? I found out, that the grou-id needs a special format: [email protected]. The WhatsApp group ID is different, when you extract it from the groupinfo in Whatsapp. It looks like KOo12NwT7FT7I7d10djOjG and I do not understand to bring this in the expected format.

Thanks a lot, Spartacus

.

Did you manage to get anywhere with this?

Any news on how to send messages to a group?

Just found this:
sending message to group · Issue #14 · giuseppecastaldo/ha-addons · GitHub

1 Like

i found this… there is something about groups but i am not sure it works… just got my raspberry pi in the mail half an hour ago hahahah

FyI: this Add-On works for Groups. just use the provided example from the add-ons creator to send a message to a single recepient. The only difference is a different recipient.

There are two ways for identifying the group id:

  1. Go to development tools-> Events → in the section “record event” put the value “new_whatsapp_message”. push the record button. Once you have any received message in that group chat , you will see in this screen the event log containing something
  groupId: [email protected]

this is then the address for the group.

  1. The following is valid for Chrome. Log in in WhatsApp web on a computer and open the group chat by clicking it on the left navigation table to see it on the right side. Open the development tools and move to the tab called “Elements”. Use CTRL+F to open search. Enter “g.us”. Now you should find the groupId.
    you fill find something “[email protected]_[followed by some other thing, which looks like another id, but is unrelevant]”.

Hope that helps

I thought worth giving a shoutout. This has indeed worked and was what I was looking for. Thanks so much!

1 Like