That’s something I’d like to do too, I don’t know how much time I have on this though
In the meantime you can: Install signal-cli on your machine, read the documentation and launch the registration process.
Once it’s done, simply copy the .signal folder inside your home assistant configuration folder and it’ll work
On your hassio system navigate to the hassio menu (left) and choose the tap far right (system) down the page you have your System log (needs manual refreshing with the button on the end to update).
You mean version 8
I’m trying to make signal faster. Apparently there is a problem with /dev/randow exhaustion, and I tried using /dev/urandom
What I’m working on is using dbus to let a signal daemon always running, and sending/receiving messages via dbus, it’ll be much faster that way, and use a lot less resources
I reworked on it a little, and I was able to speed messages sending by a lot.
I took 3-5 minutes on my machine to send a message, now it takes only 5-10 seconds.
I played with /dev/urandom a little and dbus instead of launching a new JVM for each message.
Added bonus, by using dbus i’ll be able to receive messages as well, and forward them to home assistant to query an intent_script for example, and retrieve the temperatures, or switch lights…
I added a README to help for the setup process, I hope it helps.
I also added the signalmessenger custom_component code in this repo, it’ll be much easier to update all at once.
In signal-cli’s current iteration, dbus is the way to go. I am curious though, what you are running that it was taking 3-5 minutes and now 5-10 seconds?
I am running on a Pi 3b+ and when I was testing it was around 8-10 seconds when I was not running in daemon/dbus mode and it had to fire up each JVM (using havged). Now that I am running in dbus it is near instant in testing (I have a script dumping dbus to a mqtt topic, and a node-red mqtt input flow just echoing the message back with a dbus-send wrapper script for testing).
I don’t really know, it’s super slow on my rpi 3b, I did not investigate further
I assumed it had something to do with the randomness exhaustion stuff.
Right now it’s still not instantaneous, it takes a couple of seconds before reaching my phone, whereas when I use signal-cli on my laptop the messages are blazing fast. Anyway I don’t think it needs to be blazing fast for the home automation system, right?
When I saw your post about dbus investigation I started looking at it for node-red stuff I am playing with and I am happy with the increased speeds. But yeah you are right - blazing speeds may not be needed, but it is always nice to see increased performance!
Question (as I couldn’t find the answer in this thread):
Is it (already) possible to attach pictures and videos to the signal message? I’m thinking of a notification of my $5 esp 32 camera when motion is detected and get a message with some pictures or a short video clip