bbernhard / signal-cli-rest-api

Dockerized Signal Messenger REST API
https://bbernhard.github.io/signal-cli-rest-api/
MIT License
1.39k stars 161 forks source link

Send a message in a group with Home Assistant add-ons #298

Open 1YoP1 opened 2 years ago

1YoP1 commented 2 years ago

The problem

Hi,

After many tests on sending a message to one or more numbers. It works correctly But I try several synthaxes for sending to a group but it does not work

Example configuration.yaml entry for Signal Messenger

notify:

What should be put in place of "RECIPIENT1" for a group

"id":"group.XXXXXXX" Or "group.XXXXXXX" Or "XXXXXXX"

Thanks for help

Are you using the latest released version?

Have you read the troubleshooting page?

What type of installation are you running?

Home Assistant Signal Addon

In which mode are you using the docker container?

Normal Mode

What's the architecture of your host system?

arm64

Additional information

No response

alexhk90 commented 2 years ago

I just set up this integration in Home Assistant and sending to groups works for me - in "RECIPIENT1" I used the "group.XXXXXXX" value that was returned when I set up the group using the API, i.e. the value in "id" from this: https://bbernhard.github.io/signal-cli-rest-api/#/Groups/post_v1_groups__number_

One thing is that I'm using "native" mode in the Home Assistant add-on rather than "normal" mode, but I'm not sure that should make any difference.

Also, I made sure the group members accepted the invitation first - I'm not sure if it will send them messages if they don't.

bbernhard commented 2 years ago

It should work as @alexhk90 described (thanks btw for answering the question - very much appreciated :))

Johnson145 commented 1 year ago

From within Home Assistant, it worked only using the json-rpc mode for me. The native one yields an error, while normal doesn't give any response. Directly triggering the REST API via curl works for at least for the normal mode, too.