Tutorial - Notifications with NTFY

Here is a tutorial to receive notifications on Android / iOS / Web with the NTFY service.

NTFY is a service that lets you publish messages to channels (topics) and subscribe from multiple consumers (mobile/web).
The free plan limit is 250 messages/day.

:warning: Channels are all public. Anyone can subscribe to your channel, so choose a name that no one can easily find.

Go to ntfy web and click on S'abonner au sujet. Enter a personal channel name.

Next, go to Gladys and open a scene where you need a notification. Create an action of type Faire une requête HTTP with method POST.

In URL, enter https://ntfy.sh/\u003cchannel_name\u003e like https://ntfy.sh/gladys_notification_56JQ8N2TVuAMOw43

In the Body, you can put a simple message like Hey, c'est Gladys 🎉

Test the scene; you should receive a notification like this

You can now install the app on your phone and subscribe to the same topic.

You can explore the NTFY documentation to send more complex messages (Sending messages - ntfy)

And don’t forget to use variables from previous devices with {{

If you have any questions, don’t hesitate.

5 Likes

And a very interesting discussion here explaining the differences between messaging and notifications and reminding that NTFY is a third-party service.

2 Likes

Thanks for the tutorial @cicoub13, I’m sure it will help a lot of people :slight_smile:

1 Like

With the tool available as a container (and maintained by its author), it becomes super easy and super convenient to self-host :heart: Thank you so much @cicoub13 for this discovery :star_struck:

2 Likes