Stumbled on this but I seem to be getting a 401 error when i click the action in ntfy is there something specific you did to get this working outside your home network? As I’m looking at the automation action I’m wondering if it’s a limitation of the action since it shows HTTP and not HTTPS?
I’m just not sure why the notification comes through and the click action doesn’t work (I did include a long-lived token).
Hello did you ever solve this issue?
My setup stop working and i can confirm is an authorization problem.
possibly this section:
–header ‘X-Actions: {{ actions | default(“”) | replace(“%ha%”,“URL_HA/api/events/ntfy,method=POST,headers.Authorization=Bearer LONG_LIFE_TOKEN”) }}’
thank you very much. I’ve seen it and I am able to send notifications with actions with the rest command I posted before.
The issue is the ‘actionable notifications’ do not work.
You can/could create an action button in the ntfy message and this button would trigger a script or whatever in home assistant.
This was facilitated using the “actions” argument (–header ‘X-Actions: {{ actions | default(“”) | replace(“%ha%”,“URL_HA/api/events/ntfy,method=POST,headers.Authorization=Bearer LONG_LIFE_TOKEN”) }}’).
It no longer works. ntfy is not able to pass the authorization token to home assistant. It’s probably something to do with the syntax of this command.
I’m not sure, dont know enough.
Hello, I also use the same integration as you to communicate with HA and NTFY. I don’t understand how you can close a garage door or gate with an action, for example.