-
Notifications
You must be signed in to change notification settings - Fork 64
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 support for MQTT (Home Assistant) #86
Comments
MQTT messaging perhaps? |
As mentioned here... |
What would be the use case of this? For instance, which lovelace panel would you use to visualize the messages you receive? As a home assistant user myself, I kind of fail to figure out how this would be used. 😅 |
I use Home Assistant in a docker container and I use Watchtower to update HA and other containers. It would be nice to get notifications when there is an image update available. I use HA mobile companion for my notifications so it would be good to get it through that. I also have a lovelace panel for docker info, updating, etc. |
I'm also in the same boat as @Morphy99. I don't think MQTT is the right choice though. MQTT is no longer built in to Home Assistant core (as far as I recall) and adding another messaging protocol to this project that supports HTTP doesn't make much sense for maintenance, development, and direction (I will assume). If you wanted notifications from Creating a webhook is trivial and pairing that with a quick template to forward the webhook as an action to notify is also very simple and versatile. Once you get this If this is an internal service, then by default no authentication is required on the webhook which further simplifies things. I'm very fresh but I will be looking at how to pass a generic POST for the moment, but if a PR is required I will come back and give that ago. edit just read containrrr/watchtower#618 (comment) and it echos my sentiments. |
I would agree with @fanuch on this one. I have tried testing the generic method with shoutrrr, and it doesn't seem to do a post, which is where the enhancement would be needed for home assistant since GET requests do not work for their webhook automations |
@HeedfulCrayon Generic does use POST: shoutrrr/pkg/services/generic/generic.go Line 67 in a68a9b1
|
As this is already covered from what I can tell, I'm closing this issue. Feel free to open new ones if needed. |
As requested in containrrr/watchtower#618 (comment), we should consider adding support for sending notifications to home assistant. I'm not sure exactly how, or if, this will work, so some investigation will be needed unless someone has a clear idea.
The text was updated successfully, but these errors were encountered: