FYI, you can know use the official signal component with my hassion addon.
I’m currently working on sending messages to homeassistant using signal, so I’ll be able to better interact with home assistant
FYI, you can know use the official signal component with my hassion addon.
I’m currently working on sending messages to homeassistant using signal, so I’ll be able to better interact with home assistant
I’m kind of stuck with the conversation service, I created a new topic here: [API] Calling conversation/process does not return the speech text if someone is willing to help
Nevermind, I found a solution.
For those who want to try it, update the addon.
Then configure your conversations:
conversation:
intents:
Test:
- Test
- This is a test
Then configure your Intents:
intent_script:
Test:
speech:
text: "Hello there"
And by sending Test
or This is a test
via signal, you should get Hello there
as a reply.
I’ll update the README soon, let me know if something does not work or if you spot limitations.
That looks like a great alternative to the java cli Thanks !
Does it provide the same functionalities or there are limitations ?
Is anyone already working on packaging that version as an addon ?
Not sure about the functionality, basically it does send messages
I need to have a look at the docs regarding HA addons, then i can probably think about creating builds for this too. But generally, the gateway is more flexible and HA usage is just one option.
Thanks Stefan
Installed “Signal Web Gateway” docker image and got it running quickly with your published detailed instructions.
What I like is that it is really lightweight (image is 22.4MB, RAM/CPU usage extremely low, do not require a jdk) and message are sent extremely fast.
Switched all my telegram notification to signal
What I meant is like for example the conversation service that Michael put together that seems very interesting.
Also does “Signal Web Gateway” allow to send picture using the post json method ? Tried with file: but does not go through.
On a side note:
After testing your api, I also tried the addon from Michael but unfortunately it didn’t yet work for me “Failed to install addon, [object Object]”. Then it did install. But I saw it required to install the java cli and do other preparation step, so I stopped there for the moment. I should try using the signal-cli that is in the underlying docker image but don’t want to mess up the signal registration I already did.
I went with the java version because it was the only I could find that allowed bidirectional communication, and I wanted to add the conversation service. IMHO, that explains why you see a higher load on my addon, because the service is always running and listening to messages. So it’s not really comparable to the go version, which “does stuff” only when you want to send messages.
Great! Now I can even talk to home assistant!
Hello,
Hope someone can help me out / I can help others out.
I initially struggled with the “User is not registered” error in the logs of the hassio addon.
It turns out, this error does not make clear whether the file generated by signal-cli has been found or not. In fact, it appears to simply be saying “cannot find this file in the specified directory”. As it turns out, assuming this is your configuration of the addon:
phone_number: 'NUMBER'
signal_config_path: /config/.signal
Then the actual expected path would be /config/.signal/data/NUMBER
Having sorted this out, when I send test messages to NUMBER from my personal number, I can see it coming through in the logs, and get a message in return - “Something bad happened”. edit: having configured an intent_script:
and conversation:
in configuration.yaml
, I get a successful Hello there!
back as expected.
This is all good and well, but I am unable to use notify.signal
successfully to send a message. I am also unable to run signalmessenger.get_groups
.
I get the following error when running notify.signal
:
HTTPConnectionPool(host='4a36bbd1-signal', port=5000): Max retries exceeded with url: /message (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xad892270>: Failed to establish a new connection: [Errno -3] Try again'))
Any tips?
edit: I have made an issue on GitHub, see here
Sorry, I did not get a notification about this message.
I replied to you on the github issue, it’s a better place anyway!
Having gotten it all working, I feel like I’m missing something obvious - is there a way to use, for example, AppDaemon to code responses (and actions) to messages from users?
Not knowing anything about the current state/capabilities of the plugins or the coversation integration - I am wondering if the inbound message is perhaps passed as an event you could perhaps capture with AppDaemon and write your intents/actions there? Just a thought.
-pd
I fixed the issue with the huge snapshot by the way! https://github.com/agileek/hassio-addons/issues/5
The message is sent directly to the conversation/process
intent. You can use the intent_script to trigger any action and do what you want with it no?
@mbitard I’m having issue with receiving the message on HA. I can send just fine (and can see in the Addon’s log that message is sent), but if I send message back to HA, I don’t see anything in the Addon’s log. Any idea? Thanks
Hello, can you open an issue here please: https://github.com/agileek/hassio-addons/issues it’ll be easier to track your problem and it could help other people
Put in the issue as many details as possible (version of the addon, of home assistant, …)
Thanks!
Is there anyway that an alert can be acknowledged via signal at the moment?
I had no idea an alert system existed in home assistant, I will look into it. I created an issue to track it down.
may be a dumb question here, but I’m getting my home assistant configuration up and running, and want to decide on the messaging platform. I used the standard notifications with the companion app on iOS, but it weirdly seems to stop sending notifications after some time, despite node-red saying they were sent. I tried Telegram as well, and that works fine.
given Signal’s reputation for security, I’d like to give it a go, but I’m not clear on the phone number requirement for the component in home assistant. does it have to be a different number than my cell number? can I just use a google voice number (security issues aside here)? what are others using for the phone number in their installations?
thank you!
As far as I know, you cannot register multiple devices under one number, so you would need a designated phone number.