New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Signal Messenger integration #28537
Conversation
* allows to send a message (with an attachment) to one or more recipients
Hi @bbernhard, It seems you haven't yet signed a CLA. Please do so here. Once you do that we will be able to review and accept this pull request. Thanks! |
The issue with the Docker approach is that not all systems will support this, especially a Home Assistant installation. Dependency on a binary (speaking about At first glances it could works as a Hass.io Add-on. |
The main reason why I went for a dockerized approach was, that didn't want to "poison" my Home Assistant docker container. Furthermore, I had the issue that I couldn't get Not sure if it makes it any better, but the REST API wrapper around |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Besides @fabaff 's comment on the docker dependency, the interface code needs to move to a pypi package.
Thanks for your suggestions - very much appreciated! If I would add a PyPi package, is there any chance to get the PR merged into the release branch or is the docker stuff a block here? If so, what options do I have? Is a Hass.io Addon the only option, or is there something else I can do? |
I think it could be ok to rely on a docker container. We have precedence with eg deconz where it's the recommended way (besides the hass.io addon) to add deconz device support: What do you think @fabaff? The hass.io addon can come later to create support for the wider audience. |
I also use signal-cli, it's a great little tool. I currently use it to send messages from HA to signal messenger. A proper signal integration would be awesome. 👍 I found using DBus a nice way of getting messages to signal-cli, it runs in the background as a service, I just use The downside of this is that setting up signal-cli to use the DBus is a little more tricky, so a HassIO addon/docker image may be the way to go someone wants a '1 click install' without having to mess around with setting up a SystemD service. Also the API wrapper would be far better if you have signal-cli on a different machine to the one running HA, as Dbus is for the local system only. |
That would be awesome - would really appreciate that solution. Please let me know as soon as you guys have made a decision. I'll then start with the PyPi library for the service specific code.
totally agreed! Never had any issues with it, it's really well maintained!
totally agreed! :) |
From a user point of view there is not much difference between installing a binary or running a container. Thus, both are requirements and the users have to do some additional work. I see no problem with that and I just wanted to mention it because there is a much bigger user base here than deCONZ (I assume that). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
* re-ordered import statements * removed empty "requirements" list (not needed)
@bbernhard the error in FullCheck Pylint is unrelated to this PR. The tests need to be rerun manually or you can force a rerun by closing and reopening this PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good!
Should we rename the integration to |
For me both is fine. I could also rename it to Just let me know which one you prefer :) |
Only |
Hi, just a quick check (as this is my first PR in the HA repository): Is there anything that needs to be done from my side? |
Description:
Something that I would really like to see being supported by Home Assistant is the Signal Messenger. Unfortunately, there seems to be no official REST API (at least I haven't found any), that's why I started writing a small REST wrapper API around the excellent signal-cli command line tool.
The whole thing is working for almost 6 months without any problems (my Home Assistant instance sends signal messages on a daily basis) and I feel now confident enough to create a PR to get that whole thing into the Home Assistant release branch.
Unfortunately, I haven't found any info whether an external dependency (docker container) to an open source project is allowed or not?
Anyway, I've already created this PR request here. I tried to do my best to tick off all the items on the developer checklist, but can't rule out that I've missed something. So any code review is highly appreciated!
If a dependency to a docker container service is a no-go, please just decline this PR.
Pull request with documentation for home-assistant.io: home-assistant/home-assistant.io#11100
Example entry for
configuration.yaml
:Checklist:
tox
. Your PR cannot be merged unless tests passIf user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
python3 -m script.hassfest
.requirements_all.txt
by runningpython3 -m script.gen_requirements_all
..coveragerc
.