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.