One option might be to use an automation with an Event trigger to proxy notifications from your group to the notify.send_message or ntfy.publish actions.
First, you would create a new “old style” notification group…
notify:
- name: new_ntfy_alarm
platform: group
services: []
… that will stand in for your new notify entity where you used ntfy_alarm in the “notification_alarm” group.
OK, if that’s the old style, what is the new one?
I’m having a bit of trouble with the new syntax versus the old one… especially when the new syntax is more complex than the old one. Should I understand that group notifications are deprecated, maybe even notifications themselves, and that it’s better to use scripts with multiple actions instead?
The “new one” is Notify entity group Helpers, which are only useful for the new notify entities. AFAIK, there isn’t currently a way to create your own notify entity.
No, group notifications are not deprecated. But notifications, in general, are in transition.
Originally the plan seemed to be that all notifier integrations would be migrated from providing individual service/action end points to have all notifications provide entities as end point for a generic action, notify.send_message. That would have made it easier to send the same message through multiple notifiers with a single action. I may misunderstand the situation, but I think the transition has taken quite a bit longer than expected. I lost track of the discussions as progress seemed to have stalled about 6-8 months ago on how to deal with notifiers that have more complex service data. It seems some of the transitional concerns (like how to handle groups containing a mix of “old” and “new”) were neglected based on the idea that they would only be short-term inconveniences.
Based on what has recently been allowed for ntfy and Telegram, it looks like the decision has been made to abandon “one action to rule them all”… In both these cases the notifier integrations will provide a notify entity that can be targeted by notify.send_message for basic messages and, additionally, the integrations can provide actions under their own domain for notifications that require complex data.
So I’m having trouble figuring out the right approach today to create notification groups that rely on the ntfy action.
Automation seems like a possible solution, but is it a long-term one?
Depending on the specifics of what you’re doing, I don’t know that there are any other options. Even if all the notifiers you are using have moved to the new methods (currently unlikely) it looks like the new groups will only be useful for basic notifications, since the custom domain-based actions will only work for their own entities. I can envision using a script with Repeat For Each to handle complex data notifications across a group of notifiers, but it would need to be customized for the specific mix of notifiers being used.