Skip to content
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" actions #411

Open
sumnerboy12 opened this issue Sep 22, 2022 · 5 comments
Open

Add support for "mqtt" actions #411

sumnerboy12 opened this issue Sep 22, 2022 · 5 comments
Labels
enhancement New feature or request

Comments

@sumnerboy12
Copy link

Similar to "http", allow a notification action to send an MQTT message.

MQTT is a very common protocol for home automation. Having the ability to send an MQTT message from a ntfy notification action would allow all sorts of integrations.

I will also be looking to add support for ntfy to mqttwarn. This would allow for users to send notifications to an MQTT topic and mqttwarn will automatically forward it to ntfy.

With MQTT actions and mqttwarn integration, we would have bi-directional support for MQTT based systems.

@binwiederhier
Copy link
Owner

Related: #8

@binwiederhier binwiederhier added the enhancement New feature or request label Sep 23, 2022
@jpmens
Copy link
Contributor

jpmens commented Nov 2, 2022

MQTT support in ntfy would be grand.

@sumnerboy12 I've added an enhancement issue to mqttwarn here, so if you've nothing better to do ... :-)

@zoic21
Copy link

zoic21 commented Feb 1, 2023

Hello,
I think it's can be a awesome idea. MQTT is more and more used especially by iot, place where ntfy.sh is used a lot. With mqtt (api and action) we can used ntfy.sh to send message from ESP32 (it's possible in HTTP but the library is very heavy compared to MQTT, when there is only 4mb or even 1mb it is not negligible). And with the actions from the notification, you can imagine direct control scenarios without necessarily needing a home automation solution in the middle.

One can imagine when I open my garage door the module sends an MQTT frame to ask if I also need to open the gates. If I answer yes the portal module sees the request and executes

I don't see the work that it represents, especially in go, a language that I don't know, but on the other hand I can see the opening it gives in the home automation environment.

@osering
Copy link

osering commented Jan 26, 2024

MQTT (opensource standard as well) bridge/integration would be invaluable. It'll let connect thousands of ESP8266 boards (including with TASMOTA/ESPurna/ESPeasy/ESPhome firmware and MQTT) with ntfy gateway! Most of Sonoff gear and many of the Tuya gear can be Tasmotized!
Probably united ntfy/mqtt server/broker could be crafted...
Some relevant links:
https://github.com/arendst/Tasmota
https://templates.blakadder.com/howto.html
https://www.emqx.io/
https://github.com/eclipse/mosquitto

@xgpt
Copy link

xgpt commented Dec 28, 2024

Would love to come to the party and add that I came to find this issue by searching google for "mqtt ntfy bridge" for a similar low-spec IOT board project I'm working on! Would be so sweet to just mqtt with a ntfy token based auth to send stuff to my existing pipelines.

Edit Just saw the #8 post and why you are choosing not to implement this. I agree with your decision, and was looking for another library to link in with a ntfy server anyway. I think having an mqtt listener that pings ntfy is something that would be easy enough to implement. Ntfy being accessed via MQTT does seem like a good fit though, and I would add that since it already has email support, MQTT support wouldn't be expanding the scope past just HTTP, as that has already been done with an SMTP option. I respect the decision either way but would love to see it included if someone were to submit a PR. I'm personally not going to do it right now because I'm not using this for anything more than fun, but I might link to a repo soon if my homebrew solution works well.

I was looking online for inspiration on how to go about structuring my code more than expecting ntfy to actually have support for it already.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants