agileek / hassio-addons

Some home assistant addons I manage
21 stars 5 forks source link

Signal: Cannot send message to self #51

Open kevdliu opened 2 years ago

kevdliu commented 2 years ago

Describe the bug Not sure if this is a bug or by design, but according to https://github.com/AsamK/signal-cli/issues/397, signal-cli should support sending messages to itself. I've been trying to create a signal self-test automation in home assistant, which entails sending a signal message using the addon to the same number it was registered as. However the addon is not receiving messages sent from itself. I don't see any errors in the addon's logs. Wondering if anyone has tried this before.

To Reproduce Steps to reproduce the behavior:

  1. Add signal receipt using the same number the addon uses to send messages
  2. Send test message to self

Expected behavior Signal addon receives message sent from self

Actual behavior Signal addon does not receive test message. No errors in logs.

Runtime (please complete the following information):

MichaelBitard commented 2 years ago

That's weird, I have the same behavior :)

I don't really know how I could debug this though

MichaelBitard commented 8 months ago

I just saw this new release --> https://github.com/AsamK/signal-cli/releases/tag/v0.13.0

It just added something interesting:

Sending to the self number (+XXXX) now behaves the same as the --note-to-self parameter. To get the previous behavior with notification, the --notify-self parameter can be added

So I guess I had to do some code in the python part to add some parameters when sending to mysef, but it will not be needed anymore in the next version.

I think it'll take some time to upgrade though, because java 21 is needed and I'm not sure these versions are in all the repositories/