signal-cli-rest-api
signal-cli-rest-api copied to clipboard
Send a message in a group with Home Assistant add-ons
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:
- name: signal
platform: signal_messenger
url: "http://127.0.0.1:8080/" # the URL where the Signal Messenger REST API is listening
number: "YOUR_PHONE_NUMBER" # the sender number
recipients: # one or more recipients
- "RECIPIENT1"
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?
- [X] Yes
Have you read the troubleshooting page?
- [X] Yes
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
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.
It should work as @alexhk90 described (thanks btw for answering the question - very much appreciated :))
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.